The trim command is only used on SSDs (Solid State Drives); it must be supported by the host OS as that informs the drive to perform safe 'garbage collection' on blocks of data that are unused and so can be wiped.

learn more… | top users | synonyms

14
votes
2answers
13k views

Do I need to enable TRIM if I have a non-Intel/Samsung

I read in one of the webupd8 articles that TRIM support, which was introduced in Ubuntu 14.04, by default only works for Intel and Samsung SSDs. What about other? I am using Dell XPS 13 Dev Edition ...
3
votes
0answers
37 views

Why does fstrim not seem to be thorough?

I tried the command fstrim to manually TRIM my SSD drive, i.e. to discard unused blocks. I know this is done automatically by a weekly cronjob, but I wanted to try it myself once. However, running ...
0
votes
1answer
18 views

LVM encrypted LUKS on SSD - issue reverting to snapshots

Ubuntu 14.04.4 LTS SSD is only drive (/dev/sda) /dev/sda1 is boot partition /dev/sda5 is encrypted LUKS partition logical volumes sit on top of the LUKS partition Reverting to snapshots seems to ...
3
votes
1answer
2k views

Does the mpt2sas driver support TRIM?

I'm running Ubuntu 13.10 with an LSI 9211-8i SAS adapter with Samsung 840 EVO SSDs. Doing some performance testing I noticed the write speed dropping off significantly so I've been attempting to get ...
0
votes
0answers
92 views

How to use TRIM on encrypted home folder

I've installed Ubuntu 16.04 LTS. During the installation, I've checked 'encrypted home' but home folder is in the same partition as the root (i.e in '/'). I know that the usage of TRIM on LUKS devices ...
0
votes
0answers
92 views

Encrypted home partition (btrfs) and trim stories

I am a new Linux user, i downgraded from 16.04 to 15.10 yesterday. I am using 4 partitions (efi,swap,/,/home) / and /home are formatted with btrfs. NAME FSTYPE SIZE MOUNTPOINT LABEL sda ...
4
votes
2answers
3k views

A command which checks that trim is working?

I have installed Ubuntu 14.04 LTS 64bit, and would like to make sure that TRIM is enabled (as much as I know - it is enabled by default). Is there some sort of command which would help me to find out ...
0
votes
0answers
124 views

Can I enable TRIM for SD card as if it was a SSD?

I have two old laptops that run Ubuntu / Arch (I am not an expert linux user, just learning), and they have: 1) 1.8 inches hard drive with a (flat thin) ZIF connector. 2) 2.5 inches IDE hard drive. ...
0
votes
1answer
93 views

Very large TRIM amounts

Something is wrong with my system setup on SSD. During the installation of Ubuntu 14.04 I selected "use entire disc" for my 256 GB SSD. Now after reload fstrim shows 200 GB trimmed and just after ...
0
votes
1answer
91 views

Large amount of data trimmed after running fstrim

Each time after I restart my computer I run fstrim. And each time this is the output I receive: emil@emil-Lenovo-G580 ~> sudo fstrim -v / [sudo] password for emil: /: 84.2 GiB (90372820992 bytes) ...
0
votes
0answers
29 views

SSD trim support… Do i have to do anything? [duplicate]

First i must state that i am totally new in Linux world. I totally ditched the operating system that i used for about 20 years now. So here i am with my first question... My laptop has an SSD inside (...
0
votes
0answers
119 views

How does Ubuntu cope with SSDs?

Edit: Not a duplicate. I've got a Samsung 850 EVO SSD I'm gonna use as my main drive (OS and a few programs) and I'd love to try some linux distro on it. As far as I know Arch requires quite a lot of ...
1
vote
0answers
22 views

I Keep Getting DIfferent Large Numbers When Trimming SSD

Each time I type the command "sudo fstrim / -v", I keep getting large numbers like 9 digits. It should say 0, since I haven't deleted anything? Are my deleted files actually trimmed? Blossom
0
votes
1answer
780 views

How is trim enabled in Ubuntu 15.04? [duplicate]

Does it work once a week or does it continually trim the system? I have seen answers for this but they refer to Ubuntu 14.04 but not to Ubuntu 15.04
36
votes
5answers
25k views

What is the recommended way to empty a SSD?

I've just received my new SSD since the old one died. This Intel 320 SSD supports TRIM. For testing purposes, my dealer put malware, err, Windows on it. I want to get rid of it and install Kubuntu on ...
1
vote
0answers
447 views

Ubuntu 14.04 installed on Samsung 850 Pro 512GB results in data corruption

In short: Does anybody know why running Ubuntu 14.04.3 LTS on Samsung 850 Pro 512GB drive results in corrupted file system and random files disappearing? Here is the long story: In 2013 I got ...
0
votes
0answers
50 views

fstrim on ntfs trims EiB instead of GiB

Why fstrim on 30 GB ntfs partition says 16 EiB (18446744073709551615 bytes) trimmed. Why so much ?
3
votes
1answer
507 views

TRIM and encrypted home folders

I have enabled TRIM for my root partition by adding discard in /etc/fstab, following How to enable TRIM? They mention that special steps are needed if I have an encrypted partition. I have encrypted ...
1
vote
0answers
106 views

14.04 LTS Trim problem on an SSD

I own a Lenovo laptop with an M.2 NGFF slot. I put a 128 GB ZTC SSD card. This card is GPT partitioned and seen as sdb. I use it for the / which is EXT4 formated. Then I did a fresh install of Ubuntu ...
2
votes
1answer
261 views

What is so dangerous about --trim-sector-ranges?

I have an SSD that I want to TRIM before installing Ubuntu on it. It has been suggested to me, that I leave some unpartitioned space, such that the wear leveling will have free blocks to work with. ...
1
vote
0answers
136 views

SSD - Trim - trimmed a lot of data

I have a Xubuntu distribution and a new SSD (Plextor 128GB) Partitions scheme: 16GB / 52GB home rest free Every day Cron runs script: #!/bin/sh LOG=/var/log/trim.log echo "*** $(date -R) ***" &...
159
votes
2answers
179k views

How to enable TRIM?

I know that the Linux kernel supports TRIM as of version 2.6.33, so there should be TRIM support in ubuntu. Is TRIM enabled by default or do I need to change some settings or install additional ...
8
votes
2answers
11k views

How to set up SSD raid and TRIM support?

I am looking to set up a new server. I can only use Intel 520 Series 240gb MLC ssds or standard Seagate 7200rpm disks. These are the non negotiable options. Naturally, as this is going to be running ...
0
votes
0answers
45 views

Intel 330 Series SSD Trim Compatability

Hi guys I'm rebuilding a eMachines eM350 Netbook and I'm going to be using an Intel SSD as mentioned above, checking the BIOS has AHCI enabled, I was wondering if Ubuntu Post-14.10.5 Has the TRIM ...
0
votes
0answers
117 views

Hardware raid 0 SSD with TRIM

I currently use 1 SSD with discards enabled in my fstab, but I am looking to move to 2 SSD's in RAID 0. If I hardware raid 0 the drives using my motherboard, would trim still work using the discard ...
1
vote
1answer
701 views

FSTrim, how to check if it was succesful in the last run

I recently installed an SSD and AFAIK Ubuntu makes a weekly FSTrim on SSD's that support it. Is there a log file of this Trims ?
0
votes
0answers
424 views

How to enable TRIM on Crucial BX100 SSD?

Changing back from Windows to Ubuntu after a good 5 years or so on windows and can't rememer much. 1) Do I need to enable TRIM or any other ssd features for a crucial BX100 on Ubuntu 15.04? Will the ...
11
votes
4answers
13k views

Automatic TRIM vs. manual TRIM

I am currently trying to find out how to trim with my new TP and was wondering about the difference of manual/online trimming. Here is my setup: ThinkPad T430s with SSD Samsung 830, 128GB and ...
0
votes
0answers
2k views

Enable TRIM for Kingston SSDNow v300 on Ubuntu 15.04? [duplicate]

Although Ubuntu 14.04 enables TRIM out-of-the-box, it only does so on Intel and Samsung SSDs. I bought a Kingston SSDNow v300, not knowing that Kingston wasn't supported, and now I'm rather lost. How ...
1
vote
2answers
895 views

Disable TRIM to avoid file system corruption

I read the following article on a problem with TRIM and Samsumg. I am running Ubuntu 14.04.1 and I have a Samsung PRO 850 of 250GB. I am worried to get my file system damaged due to same firmware ...
1
vote
1answer
144 views

Ubuntu 14.10 does trim SSD RAID 0 discs?

I've got Ubuntu 14.10 in a RAID 0 set up with 2 x Samsung Evo 840 SSD 256Mb, for performance reasons while acessing/modificating very large files. I've also got a schedule backup to another HDD for ...
0
votes
1answer
146 views

TRIMming shared partition in dual-boot on SSD

In a couple of days, I'm going to buy a new notebook (Asus N551, should it matter), tending to replace the HDD with a Samsung EVO 500GB SSD. I'll set it up in a dual-boot configuration of Windows 8/...
8
votes
4answers
10k views

Do you recommend LUKS encryption on a SSD (TRIM support)?

I have a laptop (Dell Inspiron 11z) and and SSD (Samsung 128GB) on order. On my current laptop, I have a spinning HDD and use LVM and LUKS encryption. I would like to use LUKS on the SSD but from ...
6
votes
3answers
7k views

Trim and SSD with usb 3.0 enclosure does not work - UASP not supported?

I have installed one SSD disk (Micron C400-MTFDDAC128MAM) in an external usb 3.0 enclosure. Now I want use this disk as second disk in my laptop with Ubuntu 12.04. Disk is working, but I want to use ...
3
votes
0answers
2k views

Samsung SSD, TRIM and Ubuntu 15.04

In light of a recent issue raised in regards to Samsung SSD firmware relating to TRIM and the related launchpad bugs for Ubuntu.. Bug# 1465663 'libata Samsung SSD 8 series TRIM blacklist' and the ...
3
votes
1answer
7k views

On ubuntu 14.04 how do you check if TRIM is on for an SSD drive

On ubuntu 14.04 how do you check if TRIM is on for an SSD drive? Other settings worth verifying for an SSD drive?
0
votes
1answer
99 views

About TRIM command execution

I have some question about TRIM command for SSDs. First of all, mounting partitions with discard option vs. trim in crontab. I'm aware discard option forces immediate trim after every single file ...
0
votes
3answers
3k views

Can Ubuntu TRIM another (NTFS) partition?

I have three questions for Ubuntu and TRIM/SSD experts. I've got SSD drive (SanDisk SDSSDP128G 128Gb). Currently, it is the only hard drive. Connected via SATA cable however in BIOS using IDE mode ...
1
vote
1answer
54 views

Is it possible to use a dedicated parity drive without striping?

I'm setting up a log server. I'd like to set them up so that each disk is independent of the next, but the last disk is parity of all the rest. The reason why I want this is because: You can't ...
4
votes
2answers
2k views

Does TRIM work with FAT32?

I used this webupd8 guide to help me Trim my SSD on Ubuntu 13.10. The guide says that "you must make sure the partition(s) are EXT4 or BTRFS". Unfortunately, I stupidly assumed the HD was formatted to ...
1
vote
2answers
482 views

convert with bash - trim/crop and center

i need a fast and reliable way to modify a lot of images. There is a lot of white around my pictures i want to get rid about. The problem is, it is a number of similar pictures, but they have ...
1
vote
1answer
176 views

TRIM on encrypted device with Precise

I have migrated the main data to a new SSD. (That is Samsung 840 EVO, 120GB.) My ~ is an encrypted partition automounted by pam_mount. That is, there is a record in /etc/security/pam_mount.conf.xml ...
2
votes
1answer
1k views

fstrim is taking too long?

I'm running manual SSD TRIM fstrim -v /, and it's added to my /etc/rc.local. Recently I realized that the command is taking too long to finish execution. It finishes after I login by average 10 ...
0
votes
0answers
20 views

enable trim for mounted ntfs partition on dual boot system [duplicate]

I have a dual boot that I set up following this great manual on lifehacker (http://lifehacker.com/5403100/dual-boot-windows-7-and-ubuntu-in-perfect-harmony). So I have just like the author 4 sda ...
0
votes
0answers
16 views

full disk encryption on SSD with trusty [duplicate]

I am about to install a new SSD into my laptop and I have to do full-disk encryption due to regulations where I work. Since this is a new install I can get it right from the outset. How can I install ...
1
vote
1answer
1k views

fstrim not supported on USB flashdrive?

Not sure this has already been properly sorted (but I am a noob) New install of 14.04 server installed on a brand new SanDisk 16Gb USB stick mounted on the internal USB connector of a HP Proliant ...
2
votes
1answer
3k views

Encrypted home partition + encrypted swap + working hibernate

I would like to set up disk encryption on Ubuntu 13.10 such that I have plain / encrypted /home partition encrypted swap partition working hibernation and resume As these requirements suggest, ...
0
votes
1answer
417 views

fstrim does not work (Ubuntu 14.04, ext4, Intel SSD 520)

I've been googling around for hours without having found an answer. I've found some hints, but they don't correlate with each other. $ sudo hdparm -I /dev/sda | grep TRIM * Data Set ...
1
vote
0answers
88 views

large amount of data TRIMMed on SSD

I just recently set up a new PC with an SSD/HDD combo; my linux partition on my SSD is mounted as / with /home mounted on my HDD. I have the noatime and discard flags set for my SDD in /etc/fstab, ...
2
votes
0answers
190 views

full disc encryption with SSD

I'm about to reinstall Ubuntu onto my laptop. If I use full encryption, which I desire, how will this impact performance of the SSD and FSTRIM? Will I still be able to use it or will it be ...