Linked Questions

3
votes
0answers
38 views

Determine whether TRIM commands are being sent [duplicate]

I've configured multiple SSDs in a RAID-0 array in AHCI mode. I'd like to determine whether TRIM commands are being sent to the disks. Is there a way to monitor these commands in the kernel somewhere? ...
5
votes
2answers
20k 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....
13
votes
4answers
3k 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/...
12
votes
1answer
1k views

Read past end of file to recover data

A very old .swp file reverted a file I was editing, so it is now significantly shorter. I haven't done anything in that directory since, so the bytes immediately following the end of the file should ...
6
votes
1answer
3k views

Configuring a mdadm RAID-1 on SSD and HDD

I need to configure a RAID-1 on one SSD and one HDD. Both SSD and HDD has some preinstalled software, which I don't need so both can be fully wiped if that is any advantage. My research so far lead ...
4
votes
1answer
1k 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 ...
4
votes
1answer
2k views

Can't enable TRIM on SSD

I can't enable TRIM on my newly-installed SSD. Ubuntu Server 12.04, Linux 3.11.0-15-generic. I turned TRIM on through discard setting in /etc/fstab. Also TRIM doesn't work with fstrim command. Here ...
8
votes
0answers
1k views

extracting the data block pointed to by an inode fails to correspond to the data in the file [closed]

This question is a spinoff from the following: How to extract raw ext3 inode data from disk? I have a file /tmp/foo, whose contents are a simple text string "AAA". I would like to locate the disk ...
1
vote
1answer
568 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
518 views

Fastest way to count zero bytes on a partition

My root and home partitions are LUKS-encrypted. I wish to have discard/TRIM enabled on them (I'm aware of security implications). If my understanding is correct, this should result in discarded areas ...