For a hard drive supporting ATA TRIM, SCSI UNMAP, or NVMe Deallocate, is it possible to report on the amount of unallocated space?
For example, we take a 1TB drive, then write 500GB data to it, then delete 300GB. Is there any command to show that the drive itself (not the filesystem) has 200GB used / 800GB free?
On my nvme ssd,
smartctl -a /dev/nvme0n1
reportsI couldn't find a way to see this for sata ssds.