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

0
votes
1answer
22 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 ...
1
vote
1answer
23 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 ...
0
votes
0answers
48 views

Problem enabling TRIM on SSD on Ubuntu 14.04/Dell Power Edge T620 workstation

I have problem activating TRIM on INTEL SSDs in a Dell PowerEdge T620 workstation. The SSDs are handled by BIOS and not behind the HW RAID controller. The symptoms are the following: fstrim -v /ssd ...
1
vote
0answers
52 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 ...
1
vote
2answers
91 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 ...
0
votes
0answers
19 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
15 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 ...
0
votes
1answer
227 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 ...
0
votes
1answer
139 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
202 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
56 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, ...
0
votes
1answer
151 views

TRIM and file fragmentation on an SSD

I ran the TRIM test proposed by frostschutz and also found here. The result 1MB file is highly fragmented. How can that be ? My one and only storage device /dev/sda is a Samsung 500GB SSD. It is ...
1
vote
1answer
107 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 ...
0
votes
1answer
51 views

Trim for SDD in Trusty

I have 4 partitions in Trusty: on SDD there are 3: 'boot/EFI', Swap & one mounted at / which contains all other directories except /home; on HDD there is one mounted at /home containing /john ...
3
votes
1answer
197 views

Can I 'reset' an SSD to improve its performance?

I think my SSD is getting a bit slower with time. I think it just might be the case, if TRIM is not supported by my version of Ubuntu. I have an Intel 520 SSD in a Thinkpad laptop. I am using Ubuntu ...
4
votes
1answer
534 views

anacron not working

I have a clean install of Xubuntu 14.04 32-bit, and anacron doesn't seem to be working. I read that it's better to use a cron job to trim SSDs, and that Ubuntu has a cron job to do that, so I removed ...
2
votes
1answer
601 views

A command which checks that trim is working?

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

Does Ubuntu 14.04 support SSD TRIM on Software RAID? [duplicate]

I'm using the softwareraid (mdraid) RAID1 on 2 Intel SSD DC S3500 and I found there's a fstrim job on cron.weekly. Does it mean Ubuntu supports it? I could not find any article saying that SSD mdraid ...
0
votes
1answer
75 views

Tell fstrim to ignore mount?

I've just enabled fstrim cron job on my new build in ubuntu 14 as it wasn't turned on by default. My question is, how do i tell it to ignore certain mounts? ie my SSD is my boot drive but I have a ...
2
votes
0answers
158 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 ...
14
votes
2answers
11k 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 ...
0
votes
3answers
2k 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
92 views

Enable TRIM on the windows partitions?

Do I need to enable TRIM for the windows 8.1 partition on my dual boot ultrabook if I will be reading/writing to the windows partition while booted into Ubuntu? Also do I need to enable it for a ...
1
vote
1answer
2k views

USB: Enable Trim (FITRIM ioctl failed: Operation not supported)

First of all, I am pretty surprised my usb flash device supports trim: sudo hdparm -I /dev/sdb | grep 'Model\|TRIM' gives me: Model Number: SanDisk SSD CZ80 32GB ...
1
vote
1answer
985 views

SSD TRIM Support and Block Limits?

I'm running Ubuntu 13.10. In this situation, I have two questions? I have 4 drives on my desktop, two of which are SSD's with TRIM supported. However the two have different block limits. I am trying ...
3
votes
1answer
1k 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 ...
2
votes
1answer
573 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
2answers
374 views

Unable to get TRIM to work on Ubuntu 12.10

I am trying to use the fstrim command on my machine. The configuration is as follows : ubuntu@ip-172-16-10-56:~/test$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: ...
2
votes
1answer
2k 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
443 views

Will be TRIM enabled by default?

I heard that Ubuntu 14.04 will feature TRIM by default on SSDs. What I would like to know is that if in the current daily builds it is already activated. Also, it would be appreciated a way to verify ...
4
votes
2answers
1k 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
1answer
421 views

get error when try fstrim

Below is my /etc/cron.daily/fstrim file: #! /bin/sh # By default we assume only / is on an SSD. # You can add more SSD mount points, separated by spaces. # Make sure all mount points are within ...
1
vote
1answer
634 views

How to apply TRIM to an NTFS partition on an SSD drive?

I have Ubuntu 13.10 and Windows 7 installed in dual boot on a single SSD. In addition they share an NTFS partition where I put all my data and documents. How can I apply TRIM to this partition?
3
votes
1answer
335 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 ...
2
votes
1answer
2k views

Is TRIM on by default in 13.04?

I've just installed the Ubuntu Raring (with Sandisk Extreme) and I know there're multiple articles over the internet (and here) about TRIM, but I suspect it's a native resource on Ubuntu Raring. PS: ...
0
votes
1answer
2k views

Does Ubuntu 13.04 conclusively support TRIM? [duplicate]

I'm getting ready to install (dual boot) Ubuntu, but I have heard conflicting information on how well supported TRIM is. I'm solely using an Intel 330 and would not install it if I don't know whether ...
3
votes
1answer
1k views

SSD tweaks for Ubuntu 12.04 cause Texmaker to compile a lot slower

I added these tweaks from Ubuntu SSD Tweak and Ubuntu Tweaks but now Texmaker is compiling slowly. Does someone know what tweak would be causing this? Or could I edit something unrelated to the ...
7
votes
2answers
7k 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 ...
8
votes
2answers
5k views

fstrim does not work

I have a Thinkpad X60s with an OSZ agility SSD. I use ext2. I read that I should execute the trim command from time to time, however, this command doesn't work on my machine: ...
4
votes
3answers
4k 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 ...
10
votes
1answer
2k views

What exactly do the 'allow-discards' and 'root_trim' Linux parameters do?

A lot of SSD-related instructions online currently say you should add allow-discards and root_trim=yes to your GRUB_CMDLINE_LINUX. I have yet to find one that says why you should do that, i.e. what ...
1
vote
1answer
938 views

How to enable TRIM on LVM on Ubuntu 12.10?

When I reinstalled Ubuntu 12.10 64-bit on my SSD, I chose the option to use LVM in Ubiquity. I am trying to find out how to enable TRIM for my SSD. I came across this article: ...
1
vote
1answer
389 views

Run fstrim from LiveCD

A few years ago I installed Ubuntu 10.04 with LVM + LUKS on a system with SSD, TRIM was not enabled. Now I want to install Ubuntu 12.04 on the same SSD. I have found a guide explaining how to enable ...
2
votes
1answer
170 views

Was TRIM support backported into the 2.6.32 kernel that is in 10.04?

I have found conflicting answers to this around the web, even a link to a launchpad bug: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/571476 which is kind of left hanging. So I'm curious, was ...
0
votes
1answer
364 views

How to enable the trim on Transcend 320 Ultra-fast 256GB SSD?

I got a new TS256GSSD320, I'd like to put on the trim. I have edited /etc/fstab with discard on the boot partition but the trim is still off.
8
votes
1answer
6k views

Is SSD TRIM support still automatic in 12.10?

Folks I had automatic TRIM working on my laptop running Ubuntu Precise. As in the TRIM guide I added discard to mount options in /etc/fstab, and hdparm --read-sector read 0s immediately after a rm ...
9
votes
3answers
9k 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 ...
7
votes
3answers
6k views

How should I configure TRIM Support for LVM logical volumes?

I am setting up a notebook for software demo purpose. The machine has a Intel Core i7 CPU, 8GB RAM, a 128GB SSD, and runs Ubuntu 12.04 LTS 64bit desktop. As it is, the SSD is configured to have a ...
2
votes
2answers
1k views

Does upgrading a kernel automatically enable trim?

Simple question, I have some servers that were running 10.04 that I upgraded to 12.04. So they were installed using 10.04 (kernel 2.6.32* I believe) and the version of ext4 that shipped then. By ...
0
votes
1answer
720 views

Fresh install on SSD with Ubuntu and Windows Vista, using whole disk encryption for Ubuntu

I would like to do a fresh install on a OCZ Vertex Plus R2 SSD 60GB drive I purchased on the cheap. Since the AES-encryption looks like it may not work optimally for this drive, I would like to set ...