Run fstrim from LiveCD
Posted
by
CharlesW
on Ask Ubuntu
See other posts from Ask Ubuntu
or by CharlesW
Published on 2012-12-01T22:00:50Z
Indexed on
2012/12/01
23:20 UTC
Read the original article
Hit count: 357
A few years ago I installed Ubuntu 10.04 with LVM + LUKS on a system with SSD, TRIM was not enabled. Now I want to install Ubuntu 12.04 on the same SSD.
I have found a guide explaining how to enable TRIM on Ubuntu 12.04 with LVM + LUKS, but before installing the new system, I want to clean out all the "marked for deletion" data generated under Ubuntu 10.04, to make the disk fast as new.
My plan is to boot a Ubuntu 12.04 LiveCD and create a new ext4 filesystem on the SSD, then mount the filesystem and run fstrim on it. After rebooting the LiveCD I will install the system as normal, and enable TRIM. Can anybody say if this will work?
© Ask Ubuntu or respective owner