Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [fstrim]

A tool that "trims" (discards) the unused blocks in a filesystem. It is part of util-linux suite.

4
votes
1answer
122 views

Does VirtIO storage support discard (fstrim)?

$ uname -r 5.0.9-301.fc30.x86_64 $ findmnt / TARGET SOURCE FSTYPE OPTIONS / /dev/vda3 ext4 rw,relatime,seclabel $ sudo fstrim -v / fstrim: /: the discard operation is not supported Same VM, ...
1
vote
0answers
66 views

Unable to enable discard/fstrim on a luks encrypted lvm-volume with Siduction (Debian Unstable)

i'm to get discard/fstrim enabled on my Siduction-System on a thinkpad x250. I use Siduction (Debian Unstable) with LVM 2.03.02(2). I have a big partition /dev/sda2 which is LUKS-Encrypted and in it ...
2
votes
0answers
77 views

Find all blocks on device not used by the filesystem

How can I list all blocks on a device that are currently not being used by the filesystem? The filesystem in question is a btrfs RAID1 with two LUKS encrypted harddrives an Arch Linux. I have tried ...
2
votes
2answers
372 views

nvme fstrim causing crash on linux, disabling with systemctl doesn't help

I have a Linux (Ubuntu 18, kernel 4.15) desktop booting from an M2 nvme disk. Once a week, it will crash around midnight. The relevant log file output from /var/log/syslog.* is below: Jul 16 00:00:...
-1
votes
1answer
153 views

Fstrim version and usage [closed]

I have one fstrim executable file and need a way of finding that executable file version.
1
vote
0answers
309 views

How does fstrim keep finding bytes to trim on a Xen PV dom0?

I have a Xen PV node running RHEL6 on the 3.10 kernel. This node has mdadm RAID1 and the following partitions: [root@node ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/md1 ...
2
votes
1answer
875 views

Sensible mount options for SSD that does not support trim?

I've got an older SSD drive in a secondary computer (operating system is Void Linux, ext 4 file system, no swap) that doesn't see a whole lot of use. I want to take reasonable steps to extend the life ...
1
vote
1answer
194 views

SSD: trim on different filesystems

Some days ago I've bought an SSD: Samsung 850 EVO 250 GB; on this drive I made two 125 GB partitions: on the first partition I installed Windows 7 on NTFS; on the second partition I installed Haiku (...
13
votes
4answers
1k views

independently verify that TRIM indeed works on SSD

I have a LUKS partition /dev/sda1 which I luksOpen with --allow-discards: cryptsetup --allow-discards luksOpen /dev/sda1 root I then mount the ext4 filesystem with discard option: grep /dev/mapper/...
2
votes
1answer
732 views

Why fstrim appears not to trim data blocks on btrfs (+ecrypts)?

I have an SSD disk with several partitions. One of them is has a btrfs volume, mounted as /home, which holds an ecryptfs home directory. When I trim the volumes, it seems that fstrim doesn't trim ...
7
votes
1answer
2k views

fstrim doesn't seem to trim a partition that uses lvm and dm-crypt

I try to setup Fedora 25 with dm-crypt and LVM, but struggle to make TRIM work. $ sudo fstrim -av /boot: 28.6 MiB (30003200 ...
1
vote
0answers
313 views

How to perform fstrim on a loop device?

I have LVM with thin-provisioning enabled. I have two almost identical thin logical volumes with ext4 file systems that slightly differs. The first volume is used entirely for storing file system. On ...
3
votes
2answers
9k views

How do I check TRIM?

I have Linux installed on a Dell XPS 9343 with an Samsung PM851 SSD. I recently read that many SSDs don't support TRIM operations. So I'd like to check if discard option effectively works on my system....
1
vote
1answer
463 views

fstrim cronjob not working on Linux Mint 17.2

My /etc/cron.daily/fstrim looks like this: #!/bin/sh # call fstrim-all to trim all mounted file systems which support it set -e # This only runs on Intel and Samsung SSDs by default, as some SSDs ...
2
votes
1answer
3k views

fstrim “the discard operation is not supported” with ext4 on LVM

Attempting to run fstrim on my root partition (which is ext4 on a LVM logical volume, single physical volume—an SSD supporting TRIM) produces an error: fstrim -v / fstrim: /: the discard operation is ...