You are not logged in.
Pages: 1
Dear forum,
I have bought an ssd several days ago and I've wiped the whole drive to prepare for system encryption.
I now realized that it may not be really good to keep that random data on the ssd due to performance reasons. So now I would like to discard all unsed space except the space used by my partitions.
How could I easily accomplish this?
I have tried with hdparm and the trim option, but I do not think that worked quite well.
I am uncertain what values to use for the initial sector and sector count. I'd be very happy if someone could explain me how to use this properly or even show me another way to accomplish this in case there is one.
-szt
Offline
I am not sure if this applies to what you are asking about encryption, but you can use tune2fs to apply the dicard option to the parition (maybe disk, I havenot tried). See the wiki on SSD's.
Edit: BTW, welcome to the forums. You probably do not need to start your posts with "Dear Forums," but it is up to you.
Last edited by WonderWoofy (2012-10-07 02:23:24)
Offline
If the unused space on the SSD is continuous, the easiest & safest is probably to create a partition in the unused space and then wipe it with /dev/zero again (man shred).
Using tune2fs on it should do it also (once the 'unused' partition is setup), but then you have to mount it with the discard option also. With a partition setup temporarily for it, you get away without getting hdparm parameters correct.
Offline
Pages: 1