Questions tagged [fstrim]
A tool that "trims" (discards) the unused blocks in a filesystem. It is part of util-linux suite.
34 questions
9
votes
2
answers
622
views
How filesystem blocks relate to NVMe blocks
I recently got a curious error, whereby my system locked up, needing a power reset. The various logs had no errors (but ALL logs had a bunch of 0x00 at the end).
Eventually after several reboots and ...
2
votes
2
answers
129
views
How can I see how much space was freed by trim on an SSD?
In my current setup, I have three different filesystems on two different SSDs: A FAT partition and a BTRFS partition on one drive, and ext4 on a second drive. When running fstrim, the output is ...
-1
votes
1
answer
88
views
Does periodic trim work on SSD connected via USB 2.0?
It looks like my OS is set to periodically trim portable SSD drives, and TRIM is supported by my portable SSD. I connect this SSD via its usbc cable, attached to the usbc to usb3 adapter that came in ...
0
votes
1
answer
106
views
Are portable USB-connected SSD automatically trimmed by Fedora?
After reading online I was under the impression that TRIM is not automatically (periodically) sent over to my USBconnected SSD by Fedora; but some discussions on this forum make me doubt this. Anyone ...
1
vote
1
answer
72
views
How to copy partition with trimming?
I want to clopy a partition between SSD devices. Normally I could do it simply with the "dd" or "buffer" commands.
However, now that I have SSDs, I also would like to miss the ...
1
vote
0
answers
63
views
Raspberry Pi CM4. Is it possible fstrim deleted/corrupted needed files?
I have a problem. On my device (Raspberry Pi CM4) my programm uses /var/opt directory (files created/downloaded manually). After some hard reset my program cant see couple of files, I go into the log ...
1
vote
1
answer
686
views
fstrim doesn't appear to have any timers, how do I make sure it works?
"The util-linux package provides fstrim.service and fstrim.timer systemd unit files. Enabling the timer will activate the service weekly. The service executes fstrim(8) on all mounted filesystems ...
0
votes
0
answers
422
views
How do fstrim and BTRFS SSD optimizations work for both SSD's in a RAID1?
First apologies if this has been asked before, but I could not find any link with any combination of keywords.
My question is - How do SSD optimisations work in BTRFS in a RAID1 where both devices are ...
2
votes
1
answer
1k
views
Disable allow-discards on encrypted partition
I have the following partition table:
NAME
nvme0n1
├─nvme0n1p1 part /boot
└─nvme0n1p2 part
└─crypt crypt
├─crypt-swap lvm [SWAP]
├...
1
vote
1
answer
2k
views
fstrim: /: FITRIM ioctl failed: Structure needs cleaning
On my Debian sid with custom 5.17.0-rc1 kernel
installed on my new (< 1 month) SSD nvme WD SN850
my root partition is formatted as f2fs(v 1.14)
I get fstrim: /: FITRIM ioctl failed: Structure needs ...
1
vote
1
answer
3k
views
How to disable TRIM on SSD(s) under Linux Mint?
I rarely ever write anything (large) to SSDs on many machines of my own, an example could be the use of one laptop as a TV viewer only, another my mother's laptop, which she uses just for banking. (If ...
1
vote
0
answers
496
views
LVM SSD cachepool how to trim (Debian 10)
I was playing with LVM and I was setting up a volume with ext4 on an HDD and I want to use an SSD as a cache.
What I first done was
lvcreate --type cache-pool -l 100%FREE -n datacache SSD /dev/sda3
...
1
vote
1
answer
402
views
fstrim.service blocks trim of /home in Ubuntu/Mint v20, but not in v18
In troubleshooting why my /home partition (ext4, luks-encrypted) wasn't being trimmed by the weekly fstrim service, I discovered that Ubuntu made a major change in the service file:
On Ubuntu/Mint 18
[...
-1
votes
1
answer
4k
views
"systemctl start fstrim.timer" for ssd optimization not working on Debian 10
i just installed a 1TB kingston SSD, i cloned my HDD (with Debian 10) so nothing changed besides the performance, i want to set up TRIM for this SSD.
So i've done this:
$ sudo hdparm -I /dev/sda | ...
2
votes
0
answers
178
views
Does Linux fstrim.service conflict with Windows 10 optimization?
I have the following disk setup, a dual-boot with Windows 10 and Linux Mint 19.3:
NAME LABEL SIZE FSTYPE MOUNTPOINT UUID
sda 477G ...