Questions tagged [trim]
An SSD command that tells the drive which blocks of memory are no longer in use, allowing it to erase blocks containing deleted data.
63 questions
2 votes
2 answers
125 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 ...
0 votes
1 answer
105 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 ...
0 votes
1 answer
91 views
How to prevent data loss when using blkdiscard on NetBSD
On Linux, this command fstrim -av I will remove all unused blocks (particularly interesting on VM disks and necessary on SSD to preserve/get a longer duration). NetBSD has a similar command called ...
1 vote
1 answer
71 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 ...
3 votes
1 answer
16k views
Correct way to enable TRIM on recent Debian/Ubuntu
It used to be that properly enabling TRIM for SSDs on Linux involved two steps: Running fstrim once, to take care of all the "untrimmed" blocks to date, then Setting the discard flag in ...
0 votes
1 answer
407 views
Using a sed command to trim extra spaces,characters, and decimals stuck
Currently working on a command in AppleScript to trim weight data we receive from a scale. We receive the weight in the following format X.XXX. lb. The Xs representing numbers. We're ...
0 votes
0 answers
421 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] ├...