Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [trim]

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.

0
votes
1answer
288 views

Installing Ubuntu 18.04 on NVMe SSD and using SATA SSD for storage

I'm building a deep learning desktop and will be using Ubuntu 18.04. I currently have a Crucial MX500 2TB SATA SSD. I may get a Samsung 970 NVMe SSD to install the system on for faster loading (if ...
1
vote
0answers
195 views

How to properly TRIM an ssd (18.04)

I want to do what follows: set (via systemctl) a trim timer which would trim more than once a week but less than daily. Say every three days. I want to be sure that if the system is turned off or ...
0
votes
0answers
164 views

fstrim fails with “thediscard operation is not supported”

I am running ubuntu 18.04. No lvm or encryption. I am attempting to run trim on a brand new external sdd, western digital wd green 120 gb in a usb external case ADATA ED600 that shows trim available ...
18
votes
1answer
12k views

Is TRIM enabled on my Ubuntu 18.04 installation?

I know that weekly TRIM is enabled by default from 14.10 onwards. Source: How to enable TRIM? But running sudo nano /etc/cron.weekly/fstrim returns an empty file. Also tail -n1 /etc/cron.weekly/fstrim ...
5
votes
1answer
2k views

Why does Ubuntu enable TRIM for certain brands only?

So I've been reading that for SSDs, weekly TRIM is enabled by default only for some brands like Samsung and Intel,but not others like Hynix. What's the rationale for this? Should I not enable TRIM on ...
1
vote
0answers
437 views

Trim supports for Kington SSD is in default or not? [duplicate]

I have just installed Ubuntu 17.10 on a Kington SSD. I heard that Ubuntu enables Trim by default, but it is only for some brands like Intel and Samsung while Sandisk and Kingston are not included in ...
0
votes
0answers
2k views

Ubuntu 17.10 SSD Trim [duplicate]

Will Ubuntu 17.10 include SSD trim function by default? If not, how will we turn the trim on? Thanks!
4
votes
1answer
369 views

SSD features (rotational/discard) not detected properly via USB

I am using Ubuntu 16.04 on a Thinkpad W520, with kernel 4.10.0-20-generic (hwe-edge). I have two SSD drives: a flash USB 3.0 stick, and a SATA Samsung 850 EVO SSD. When I connect them to USB (the ...
3
votes
1answer
4k views

Are features like Trim for SSD's Included for 16.04?

I am new to Ubuntu and I am wondering what to do for Sandisk SSDs? Questions I have looked up are from many years ago and I am wondering if things like Trim are now included in 16.04 and I should not ...
0
votes
1answer
2k views

Can I use a Samsung 840 EVO with Ubuntu 16.04?

From some internet research, it looks like the TRIM command has bugs with the Samsung 8 series SSDs. I don't know if this info is still current or if it was specific to 14.04. Can I use the 840 as my ...
0
votes
1answer
342 views

Run e2fsck automatically to fix all errors during boot with Samsung SSD 850 EVO 500GB

Almost each time that I switch from Windows 10 to Ubuntu 16.10 which I installed on a dual boot laptop Ubuntu wants me to e2fsck -b 32768 /dev/sdb5 Can I automate this during startup? If yes, how? ...
4
votes
1answer
7k views

On Ubuntu 16.04, with Samsung 850 EVO SSD, is any post configuration needed?

The Samsung Evo 850 http://www.samsung.com/semiconductor/minisite/ssd/product/consumer/850evo.html The following post suggests that with Ubuntu 16.04 and the 850 EVO, TRIM is enabled by default. ...
5
votes
1answer
1k views

fstrim on external SSD drives don't work

I have two external USB 3.0 SSD drives from Samsung (one is Model T1, other T3). I would like to trim them with my Ubuntu 16.04.1 LTS. While doing that I receive a error message. Here an example: ...
6
votes
4answers
6k views

Ubuntu SSD - Was fast, is now extremely slow

This is what I'm getting now, with a Crucial MX300 750GB SSD (with latest firmware [there are no firmware updates yet]). lptp [ blah ]: sudo hdparm -Tt /dev/sda /dev/sda: Timing cached reads: ...
1
vote
1answer
74 views

How do I disable Trim so I may have a shot at recovering a doc on my SSD?

I had a libre document that autosaved when my computer shut off unexpectedly. Later someone exited from it and hit don't save. I checked the backup folder located in .config/libreoffice/4/user/backup ...
0
votes
1answer
45 views

Notebook with two hard disk (SSD and mechanical)

I have a Notebook with two hard disk (one SSD and other mechanical). How can I divide partition? I think swap could go on mechanical one. Will Ubuntu see that one is SSD and other no? I know SSD has ...
6
votes
1answer
557 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
430 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 work ...
1
vote
1answer
463 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 ...
1
vote
0answers
2k 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
357 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
637 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) ...
1
vote
0answers
36 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
2
votes
0answers
795 views

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

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 ...
1
vote
0answers
277 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
1k 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
261 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) ***" >...
0
votes
1answer
2k 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
3
votes
1answer
3k views

Where can the last FSTrim be seen as successful or not? (log files)

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
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 ...
0
votes
1answer
384 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/...
1
vote
2answers
3k 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 ...
3
votes
0answers
3k 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 ...
0
votes
1answer
191 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 ...
5
votes
0answers
974 views

fstrim for SSD in Ubuntu 15.04, --no-model-check no longer necessary?

I have SSD on my computer. before when I use Ubuntu I always do : sudo nano /etc/cron.weekly/fstrim And add this command: exec fstrim-all --no-model-check The description in this file states that ...
1
vote
1answer
165 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 enable ...
1
vote
1answer
249 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
1k 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
25 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 ...
3
votes
1answer
2k 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 ...
9
votes
1answer
19k 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
608 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
151 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
667 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
258 views

TRIM on encrypted device with Precise

I have migrated the main data to a new SSD. (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 for this ...
0
votes
1answer
65 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 (i.e....
3
votes
1answer
361 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
1k 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 ...
4
votes
3answers
6k 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 ...
3
votes
0answers
2k 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 ...