October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk3 min

Linux fstrim: How to Enable It and Optimize SSD Lifespan

Enable Linux’s systemd fstrim timer where available, verify its schedule, and learn why weekly trimming is generally sufficient without guaranteeing a specific SSD lifespan gain.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

On a Linux system that provides systemd’s fstrim timer, enable and start it with sudo systemctl enable --now fstrim.timer, then check it with systemctl status fstrim.timer. The util-linux manual says once-weekly trimming is sufficient for most desktop and server systems. fstrim helps storage reclaim filesystem blocks that are no longer in use, but available sources do not establish a specific increase in SSD lifespan.

What fstrim does

fstrim asks a mounted filesystem to tell supported storage which blocks the filesystem no longer uses. This discard information can help SSDs and thin-provisioned storage manage unused space. Whether the request reaches the storage device depends on support through the filesystem and the entire storage path.

As an Amazon Associate I earn from qualifying purchases.

With the -v option, fstrim reports a potential discard amount passed down the block stack. That figure is not proof that the same amount of newly erased data was processed on each run: the manual notes that repeated runs may report the same potential amount, while only sectors written since the previous discard would actually be discarded by the device. Linux man-pages: fstrim(8)

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Enable the systemd timer

If your distribution provides fstrim.timer, these commands enable it for future boots, start it now, and show its status:

#1 Best Overall
Sandisk 2TB Extreme Portable SSD, Up to 1050MB/s, USB-C, USB 3.2 Gen 2, IP65 Water and Dust Resistance, Updated Firmware, External Solid State Drive, SDSSDE61-2T00-G25
  • Get NVMe solid state performance with up to 1050MB/s read and 1000MB/s write speeds in a portable, high-capacity drive(1) (Based on internal testing; performance may be lower depending on host device & other factors. 1MB=1,000,000 bytes.)
  • Up to 3-meter drop protection and IP65 water and dust resistance mean this tough drive can take a beating(3) (Previously rated for 2-meter drop protection and IP55 rating. Now qualified for the higher, stated specs.)
  • Use the handy carabiner loop to secure it to your belt loop or backpack for extra peace of mind.
  • Help keep private content private with the included password protection featuring 256‐bit AES hardware encryption.(3)
  • Easily manage files and automatically free up space with the SanDisk Memory Zone app.(5). Non-Operating Temperature -20°C to 85°C
  1. sudo systemctl enable --now fstrim.timer
  2. systemctl status fstrim.timer

The status output can show whether the timer is loaded and active and when it is expected to run next. These commands are documented for Red Hat Enterprise Linux 8; package availability, defaults, and presets vary by distribution and release. Check your local system rather than assuming the timer is installed or needs enabling. Red Hat Enterprise Linux 8: Discarding unused blocks

The upstream util-linux timer currently specifies a weekly schedule with persistent activation and a randomized delay. Timer status confirms scheduling, not that every filesystem or underlying device accepted discard. util-linux fstrim.timer source

Rank #2
Sandisk 1TB Portable SSD, Up to 800MB/s Read Speeds, Black (Old Model)
  • Solid state performance with up to 800MB/s read speeds in a portable drive. (Based on internal testing; performance may be lower depending on host device, interface, usage conditions and other factors. 1MB=1,000,000 bytes.)
  • Back up your content and memories on a storage solution that fits seamlessly into your mobile lifestyle.
  • Take it with you on your adventures—up to two-meter drop protection means this durable drive can take a beating. (Based on internal testing.)
  • Secure it to your belt loop or backpack for extra peace of mind thanks to the tough rubber hook.
  • From Sandisk, a brand professional photographers trust to take on assignments.

How often should fstrim run?

The util-linux fstrim(8) manual says once a week is sufficient for most desktop and server systems. That is a general recommendation, not a guarantee for every storage device or workload. Linux man-pages: fstrim(8)

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The common choices are periodic trimming and continuous discard at mount time. Periodic fstrim is easy to inspect through the systemd timer where available. Continuous discard can issue requests as blocks become unused, but the manual cautions that frequent trimming or mount -o discard might negatively affect the lifetime of poor-quality SSDs. Some devices also lack queued trim, so each trim command can impose a performance penalty on other disk activity. These are cautions, not a claim that continuous discard harms every SSD.

Rank #3
Sale
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400)
  • Easily store and access 2TB to content on the go with the Seagate Portable Drive, a USB external hard drive
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

Confirm that discard can pass through your storage

For fstrim to be useful, discard requests must be supported through the filesystem and underlying block-storage path. Encryption, virtualization, and other storage layers can affect that support. Fedora’s documentation notes that virtual-machine block devices need discard support exposed by the host; a successful command does not by itself prove the request reached physical flash. Fedora Project: EnableFSTrimTimer

If you use a virtual machine, check its storage configuration as well as the guest’s timer. For physical systems, support still depends on the filesystem and device stack rather than on the timer alone.

Rank #4
Sale
Sandisk 1TB Extreme Portable SSD, Up to 2000MB/s Transfer Speeds-New Model
  • NEARLY 2X FASTER THAN OUR PREVIOUS GENERATION(8) – move 1,000 high-res photos in under 60 seconds(6) with up to 2000MB/s transfer speeds(2).
  • IP65 RATING AND UP TO 3M DROP PROTECTION(3) – protects against spills and drops.
  • POCKET-SIZED – fits easily in pockets and small bags.
  • SPACE TO OWN YOUR AI CONTENT – speed and capacity to download your high-res clips and photo edits.
  • 256-BIT AES ENCRYPTION(4) – helps keep private files secure with password protection.

Does fstrim extend SSD lifespan?

fstrim communicates which filesystem blocks are unused; that is its concrete role. The cited documentation provides no quantified durability gain from enabling it, so there is no supported number of extra years, write cycles, or percentage improvement to promise. Treat weekly fstrim as a supported maintenance practice, not a measurable lifespan guarantee.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Do not substitute blkdiscard

fstrim works through a mounted filesystem to discard blocks the filesystem identifies as unused. blkdiscard operates directly on a block device and can destroy data in the selected region; it is not a routine replacement for filesystem trimming. Linux man-pages: fstrim(8)

Quick Recap

Bestseller No. 2
Sandisk 1TB Portable SSD, Up to 800MB/s Read Speeds, Black (Old Model)
Sandisk 1TB Portable SSD, Up to 800MB/s Read Speeds, Black (Old Model)
From Sandisk, a brand professional photographers trust to take on assignments.
$188.90
SaleBestseller No. 3
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400)
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400)
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$129.99
SaleBestseller No. 4
Sandisk 1TB Extreme Portable SSD, Up to 2000MB/s Transfer Speeds-New Model
Sandisk 1TB Extreme Portable SSD, Up to 2000MB/s Transfer Speeds-New Model
IP65 RATING AND UP TO 3M DROP PROTECTION(3) – protects against spills and drops.; POCKET-SIZED – fits easily in pockets and small bags.
$249.17
Bestseller No. 5
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$229.99
Best Value
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
  • Easily store and access 5TB of content on the go with the Seagate portable drive, a USB external hard Drive
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.