Score:1

Show free SSD space after TRIM / UNMAP / Deallocate?

ru flag

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?

Score:2
us flag

On my nvme ssd, smartctl -a /dev/nvme0n1 reports

Number of Namespaces:               1
Namespace 1 Size/Capacity:          2.048.408.248.320 [2,04 TB]
Namespace 1 Utilization:            352.739.127.296 [352 GB]
Namespace 1 Formatted LBA Size:     512
Namespace 1 IEEE EUI-64:            002538 b211b408d5

I couldn't find a way to see this for sata ssds.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.