FG

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

Fresh3 days ago
Mar 15, 202650618 views
Confidence Score0%
0%

Problem

My partition 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?

Error Output

/dev/sda3

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

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

Low Risk

If your version of util-linux is new enough (September 2012), there is actually a purpose-built tool, , that is the best way to do this: But if you need compatibility to older Linux distro versions, read on... There are cases where / refuse to touch…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment