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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
28 views

Does Windows send TRIM command with every delete?

I understand the concept behind TRIM. I know you can schedule TRIM through the "optimization schedule" part of "defragment and optimize drives". But does Windows send a TRIM ...
user avatar
  • 399
0 votes
0 answers
36 views

what is wrong with the spaces in this string?

i have following string (a version number): 2.2.0 (15). but the problem is, I can't trim the whitespaces. are there some curious whitespaces in bash? because if I do this: local test=" ${var} ...
user avatar
  • 125
0 votes
0 answers
68 views

ffmpeg trim X seconds from both the beginning and the end of a video

Is there a way to trim the first X seconds and end X seconds from a video with the one code in one step I mean ? I use the following to cut the start 10 seconds ffmpeg -i name_of_movie.mp4 -vcodec ...
user avatar
0 votes
2 answers
559 views

How long does TRIM take on NVMe SSD / Difference between TRIM applications & Optimize drives

I have set TRIM to be done weekly using the program that is used for WD BLACK SSDs: This schedule should be fine since I don't really write that often to the drive, and I read that some I/O or OS ...
user avatar
2 votes
2 answers
88 views

Bring worn out (?) USB stick back to old performance

I've got a USB stick (SanDisk Cruzer Facet 64G) which seems to be worn out. I had filled it to the brim with a lot of small-ish files (500kB each), which went well, no performance issues; and when I ...
user avatar
0 votes
1 answer
81 views

Defrag on SSD when DisableDeleteNotify

What does the scheduled defragmentation really do on a SSD when DisableDeleteNotify is manually set to 1 on recent Windows versions like Win 10? Assuming that the SSD is properly detected by ...
user avatar
  • 338
1 vote
0 answers
38 views

Multiple Audio Trim with multiple channels of audio ffmpeg

I am looking for a way to trim a single video with 4 channels of audio in multiple places and then concat the pieces together maintaining the 4 audio channel trims as well. I have the following ffmpeg ...
user avatar
0 votes
2 answers
144 views

How to tell whether zeros originate from trim or from actually writing zeros on an SSD

Say if I write zero to a certain range of LBAs of a drive, then I TRIM those logical blocks (say, with blkdiscard or even hdparm). Given the drive has the Read Zero After TRIM behavior, is there a way ...
user avatar
2 votes
2 answers
281 views

Does a windows 10 quick format still send a TRIM command on SSD?

A little while ago I used the "Reset this PC" feature on windows 10 with my samsung 850 EVO. I chose remove my files but I cant quite remember if I chose to fully clean the drive or just ...
user avatar
0 votes
0 answers
166 views

Linux LUKS encrypted root: fstrim always trims all empty space

I have a Manjaro system with a LUKS encrypted root filesystem on an NVME SSD. It is set up to decrypt / on boot via the kernel. $ cat /proc/cmdline initrd=\amd-ucode.img initrd=\initramfs-5.11-x86_64....
user avatar
  • 333
0 votes
0 answers
152 views

Boot SSD Already At 86% Health?

In late November I started using a new SSD, the Sabrent Rocket 4 Plus 2TB, as my boot drive. The drive is rated for 1400 TBW but is already saying it's at 86% health despite only having 12TB written ...
user avatar
  • 1
0 votes
1 answer
287 views

Cut off start and end of mp3 file with ffmpeg - without having to specify file duration? Windows batch

I have hundreds of mp3 files, all random lengths. I want to cut 10 seconds off the beginning and 10 seconds off the end of each file - without having to tell ffmpeg the duration of each file. Here's ...
user avatar
  • 395
1 vote
1 answer
1k views

How to use file path stored in a cell in another cell to refer to a value in excel

I have a macro that loads the path of a file to a cell dynamically, Let's say the cell is C1. C1 contains File Path: "/a/x/c/s" How do I use the value stored in C1 in other cells to get the ...
user avatar
  • 113
2 votes
1 answer
985 views

Does TRIM instantly deletes files deleted in on SSD?

If i deleted something from recycle bin, is it instantly gone when i have TRIM enabled? I deleted a file and i’d like to get it back but i don’t know if it’s even worth to try.
user avatar
  • 89
0 votes
0 answers
33 views

Is it possible to dissable TRIM on selected partition?

I want to install dualboot Win10+Ubuntu on same 2TB SSD. My idea is to leave each OS 250GB and remaining 1.5TB will be left for media, which both OS will have access to. I want to make the 1.5TB ...
user avatar
  • 167
0 votes
0 answers
50 views

How does the FTL handle TRIM requests, and how do flash drives work when they don't support it?

(Moved from a question on StackOverflow. TL;DR: I would like to know how modern flash drives and SSDs (the Samsung T5 doesn't seem to support TRIM, for instance) handle deleted data. Do they have a ...
user avatar
0 votes
3 answers
137 views

Does it matter when I activate trim on SSD?

Activating trim can boost an SSD, but does it has any impact when I do it? Can it be "too late"? Or can I wait until the SSD gets slow? Does the waiting have any permanent drawbacks?
user avatar
  • 183
0 votes
1 answer
211 views

Does all the data get TRIM-ed when you delete a file, and if so, when is it TRIM-ed?

I do understand that file system implementations issue TRIM commands (queued or not) to a drive when a file is deleted. However, I don't know if blocks of data can for instance be shared by other ...
user avatar
2 votes
0 answers
122 views

fstrim always trims a certain amount when run after boot

For some reason, if I run fstrim -v / immediately after booting up, it will always trim at least a certain amount regardless of what was done on the disk prior (even if I never really did anything but ...
user avatar
0 votes
2 answers
199 views

Is TRIM safe for a Samsung 860 on an early 2009 Mac Pro?

I'm receiving a Samsung 860 evo tomorrow. I've heard conflicting advice on whether to enable TRIM so I went to Terminal and did a trial run even though I don't have the SSD. Here is the warning from ...
user avatar
  • 11
2 votes
1 answer
861 views

Manually trimming unused NTFS SSD blocks in windows after imaging drive

I upgraded my SSD by dd'ing the old drive to a new drive under Linux. This has the side effect of also copying "empty space." Is there a way to ask Windows to trim the NTFS unused blocks? ...
user avatar
  • 175
0 votes
2 answers
126 views

Video Concatenation results Output with second part Fast farword

I am Have an issue while concatenation of videos. First Trimming chunks from different videos using Following command val cmd = arrayOf("-ss", start, "-i", inputFile.ts,"-c:v&...
user avatar
0 votes
0 answers
95 views

app crashed while trim audio in react native error - video:0kB audio:476kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead:

I'm trying to trim audio file, don't get any error but app is crashed. Last line of process is video:0kB audio:476kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: Please help
user avatar
2 votes
0 answers
116 views

Does the queued TRIM support in SATA 3.1 require support from the SATA controller, or just from the OS and the SSD?

I am contemplating expanding the storage on my home server with a SATA expansion card and wonder if the card has to support queued TRIM to use it or if it is just an OS+SSD thing. Hardware example My ...
user avatar
  • 197
1 vote
1 answer
3k views

SSD Trim on Archlinux

I heard a lot of different opinions about SSD Trim and normally it's not very important to know how that is handled because you know that is handled unless I use systems where most of the installation ...
user avatar
  • 113
0 votes
0 answers
283 views

Does AWS support the TRIM command for EBS volumes that are SSD-backed?

I've gone over Amazon's documentation and it seems that the TRIM command is only implemented for some instance types that have internal SSDs (specifically, the C5d, G4, I3, I3en, F1, M5ad, M5d, p3dn....
user avatar
  • 3,113
1 vote
1 answer
842 views

Is ssd wear confined to a partition?

Orig. posted on StackExchange, closed as off topic. Suppose I have a SSD with a heavily-used 2GB swap partition, trimmed daily. Will the wear be confined to 2GB, or spread out over the entire ...
user avatar
4 votes
1 answer
2k views

Buffer error during multiple trim (audio) ffmpeg

Am trying to trim and concatenate multiple sections of an audio file. After a number of searches, this seemed to work. ffmpeg -i dd.3gpp -filter_complex "[0]atrim=start=00:00:00.060:end=00:00:46.580[...
user avatar
  • 163
2 votes
2 answers
2k views

Is WesternDigital Dashboard needed to trim a SSD?

Based on this question Why do we need Intel SSD Toolbox for TRIM? it seems that there is no need to use vendor's application to trim. But although I'm sure Windows 10 trim is not disabled but in WD ...
user avatar
  • 650
2 votes
1 answer
763 views

how to trim SSD cache drive in zfs 0.8

I have upgraded zfs to kmod-0.8.2-1 for SSD trim and trim function works well for normal zfs SSD drive but does not work for SSD cache drive(sdc in the below log). How can I trim it? Thanks in ...
user avatar
  • 23
0 votes
1 answer
383 views

Why does fstrim trim more space than df reports as available

I'm using KUbuntu 18.04 with 4.15.0-58-generic and a SanDisk SD8SBAT256G1122 SSD When doing a sudo fstrim -av I see /opt: 63.1 GiB (67707994112 bytes) trimmed /home: 68 GiB (72999329792 bytes) ...
user avatar
  • 113
0 votes
2 answers
438 views

Power failure during ssd TRIM: did it break my SSD?

I was doing a TRIM of my new 480gb SSD with Piriform's Defraggler. It was taking some time so I let it run for some hours while AFK, but a storm happened and my home had a power-failure. All my ...
user avatar
  • 407
0 votes
1 answer
2k views

How to TRIM ssds in RAID 1 on Windows 10 (1903)?

I use 2 Samsung 860 pro 1TB disks in RAID 1 (Intel RST ver. 17.2.4.101) on a Dell Precision 3620 (i7-6700). The write performances have degraded terribly. Blanking and reinstalling everything is a ...
user avatar
  • 113
2 votes
1 answer
3k views

TRIM support on an USB-attached SSD

I have an SSD (Samsung 860 EVO) attached via an USB-SATA adapter (I tried both this one and this one) to an ARM computer (Odroid N2) running Armbian (Linux 4.9.180). I partitionned it with LVM (...
user avatar
6 votes
1 answer
914 views

ZFS - HDD performance strongly varies in 3-way-mirror among vendors

Prerequisite We have a FreeNAS System with a Pool consiting of 5x"3-way-mirror". The disks per mirror are from different vendors but with the same "on-paper" performace-characteristics. Pool-Layout:...
user avatar
14 votes
3 answers
11k views

What does TRIM on an HDD mean?

I was examining a new hard drive when I noticed something peculiar: It's a 1 TB HDD from Seagate, and CrystalDiskInfo shows that it supports TRIM! AFAIK, TRIM is some SSD feature that allows the ...
user avatar
  • 8,716
1 vote
1 answer
188 views

How to TRIM a pre Windows 2008 server with boot CD?

I need to TRIM some NTFS disks where the OS itself is not capable. The disks are served by a ceph cluster to KVM, where Server 2008 is running. Why? This server is going out of business and I will ...
user avatar
  • 11
2 votes
1 answer
1k views

Using an external SSD without TRIM, mainly for read operations

For audio production involving DAWs and orchestral sample libraries, it is recommended that one use a dedicated SSD to store the sample libraries (I don't understand all the details of why this is ...
user avatar
1 vote
2 answers
438 views

Do I need to enable TRIM in all OS if multibooting?

I multiboot. Does one OS issuing TRIM to my SSD cover all partitions or not? I have a MacBook Pro (Core2Duo version 2.1 - late 2007) with the HDD replaced with a SSD. I am multi-booting it with ...
user avatar
  • 2,246
2 votes
0 answers
586 views

SSD overprovisioning and encrypted LVM

I have a SSD with an encrypted (cryptsetup/luks) LVM partition. Since I'm not yet into that ssd stuff I offhandedly left approx. 10% unpartitioned for overprovisioning. Just because I was told that ...
user avatar
  • 21
1 vote
1 answer
1k views

Samsung 860 pro / evo - do they report deterministic trim?

Regardless of the kind - DRAT or RZAT. While all the modern ssds should behave in RZAT fashion, quite a few of them don't bother reporting such feature. And some controllers (in my case - old LSI2308 ...
user avatar
3 votes
1 answer
4k views

Are there UASP flash drives with TRIM/UNMAP support? [closed]

It seems that most of the high-end external SSD enclosures and external SSDs support UASP and TRIM/UNMAP. Wikipedia does mention thumb drives but provides no further details: USB Attached SCSI (...
user avatar
  • 133
2 votes
1 answer
360 views

fstrim not remembering trmmed blocks after reboot

I use LUKS + LVM full disk encryption (/boot included). However, after every reboot, the system will trim all by free space, not remembering which blocks were trimmed. I'm afraid this will wear out ...
user avatar
  • 111
1 vote
2 answers
1k views

fstrim trimming all the free space after reboot

I just upgraded to a SSD. Performance has been great. However, after every reboot, when I do a fstrim to the partitions, it will trim all the free space. And as I understand, trimming writes to all ...
user avatar
  • 111
0 votes
2 answers
751 views

How can SSD's perform well when encrypted, or without TRIM?

As I understand SSD's, they internally manage the numbered "hard drive" sectors expected by an operating system into interior pages, which are grouped into blocks. The SSD firmware is responsible for ...
user avatar
  • 111
3 votes
1 answer
2k views

Btrfs on SSD, "no space left on device"; catch-22 with `fstrim` and `btrfs balance`; how to recover?

The root filesystem of my Kubuntu (mounted under /) is Btrfs. I don't use -o discard as a mount option. This means I need to run fstrim on demand. In the past I hit this problem: btrfs, no diskspace ...
user avatar
-1 votes
1 answer
188 views

If This Is TRIM, DBAN Should Work

I am informed that drive wiping tools do not work reliably on SSDs due to such features as wear leveling. Here, for example, a quote from MakeUseOf: [T]o comply with wear levelling, the SSD must ...
user avatar
0 votes
1 answer
294 views

Would overwriting a file with the same exact content have an negative impact on an SSD lifetime?

We are developing a piece of software that does a lot of file overwrites. For the sake of simplicity/performance, we currently don't compare the old file content with the new content that will be ...
user avatar
  • 103
2 votes
1 answer
38 views

Remove middle number from multiple files and copy

I have the multiple PDF files in the specific format in a specific folder and for those particular files I need to trim the middle number using bat file and move to the destination folder with the new ...
user avatar
  • 21
1 vote
2 answers
2k views

How to trim text before specifc character using notepad++

I have a file each line look like "J001.C1086" "JH001.Blend 10-111". I need to remove the leter/number before each . after remove, it look like "C1086" "Blend 10-111" Thanks!!
user avatar