7
votes
6answers
6k views

How to TRIM/DISCARD a whole SSD partition on Linux?

My partition /dev/sda3 on an SSD drive doesn't contain any filesystem, but it contains garbage. How do I do a TRIM/DISCARD operation on the whole partition?