On 20/11/2026 17:29, R.Wieser wrote:
>> If you leave parts unpartitioned but still containing data from >> the last time it was used, the SSD is still contractually obliged >> to keep the data in case you need it another time
> > That doesn't make any sense. The data in blocks not part of any partition > (or file!) needs to be kept ? For what reason ?
It's complicated. The SSD controller maintains a mapping between the physical blocks of flash memory and the logical block addresses used by the (e.g. SATA) interface. It also keeps a record of which blocks contain data and which do not. [The situation is further complicated by the fact that the logical and physical blocks are different sizes, and that physical blocks may not be erasable individually -- but I'm ignoring that for simplicity.] A block contains data if it has ever been written to, unless it has since been identified as unused using the TRIM command. The controller doesn't know anything about filesystems or partitioning. If a block has been written to and the disk has then been repartitioned so that that block lies outside any partition the controller will still remember it as a "used" block (and as it lies outside any current partition the filesystem will never TRIM it). So, it's not that there is any reason to keep the data in those blocks, just that there is no way to tell that there is no reason.
>> but also zeroing the SSD and then leaving 10% (or whatever) >> unpartitioned works too.
> > Again, I do not understand. The blocks in the unpartitioned area might be zeroed out, but the moment the wear-leveling mechanism swaps such a block out with one inside a partition that swapped-out block now in the unpartitioned area is going to contain data.
Remember the mapping between the actual physical flash blocks and the logical sector numbers used by the interface. That mapping is dynamic: There is no permanent 1:1 correspondence between the logical and physical addresses. When a block is written the controller will select the least-used free block available, regardless of its address, and map that to the logical block that the OS/filesystem has asked for. The logical address remains within the partition as it has always been.
-- Cheers, Daniel.