Hacker News new | ask | show | jobs
by riobard 1828 days ago
So over-provisioning has to be done before any writes to the drive? What if I want to over-provision a used drive? Discard all blocks first?
1 comments

With most SSDs, there's no special explicit step necessary to overprovision a device. Just trim/unmap/discard a range of logical block addresses, and then never touch them again. The drive won't have any live data to preserve for those LBAs after they've been wiped by the trip operation, and the total amount of live data it is tracking will stay well below the advertised capacity of the drive.

The easiest way to achieve this is to create a partition with no filesystem, and use blkdiscard or similar to trim the LBAs corresponding to that partition.