Skip to main content
Share Your Experience: Take the 2024 Developer Survey

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
1 answer
67 views

Can any data be recovered from an SSD after you reset windows?

If you reset your PC (windows reset), and you have a SSD, can anything be recovered? What difference does choosing the “clean the drive” option make in terms of recovery? Also, if you quickly turn off ...
CrazyBongo692's user avatar
1 vote
0 answers
102 views

Windows Server Scheduled Drive Optimization (defrag/TRIM) drives list is empty

I want to setup scheduled drives optimization on Windows Server 2019 (defrag HDDs and TRIM SSDs). The Optimize Drives main window lists my drives properly. But when I want to select the drives that I ...
Darxis's user avatar
  • 111
3 votes
3 answers
929 views

How do you TRIM unallocated/unformatted space after partition shrinking on an SSD in Windows?

How do you TRIM completely unused, unallocated, unformatted, unpartitioned space (but other volumes still exist) on an SSD in Windows 11, that used to contain data, for over provisioning? (For note: ...
CmdrShepardsPie's user avatar
15 votes
2 answers
2k views

Could a low quality SSD enclosure prevent the TRIM functionality on my SSD?

I'm about to purchase an external SSD enclosure (case) for my Samsung 860 QVO. Some case manufacturers mention "supports TRIM" in the description, some don't. Reading online, I only could ...
J13C's user avatar
  • 190
1 vote
1 answer
368 views

FFMpeg - Trim and concatenate in one step

In this question gyan responded that it is possible to trim and concatenate in one step. This seems like a straight-forward and common function but I've not been able to find how to do that in my ...
marco's user avatar
  • 13
0 votes
1 answer
342 views

Triming, xfade and concat videos from timeline with FFMPEG

I'm trying to build a command to output a video with some data provided with a json, sort of timeline. In my example, I have 3 videos: video1.mp4 (43s), video2.mp4 (28s), video3.mp4 (16s) I'm trying ...
Jorge Mendes's user avatar
0 votes
1 answer
413 views

How to trim a video by 8 frames from the start and 8 frames from the end

I needed a single ffmpeg command that will trim a video by 8 frames from beginning and 8 frames from the end of the video. Is there a way to do this. I'm on windows 10 If there is a single command to ...
Abraham Thomas's user avatar
9 votes
6 answers
4k views

TRIM disabled but it behaves like enabled though

I disabled TRIM option and filled my SSD with random files so that there whould be no free space. However, when I deleted these files from bin and downloaded something else, I did it with no problem. ...
Maciaz99's user avatar
  • 147
0 votes
2 answers
852 views

Does TRIM option in SSD always work?

Recently I used Disk Drill on my laptop with SSD and it showed that some deleted data can be recovered, but I checked if the trim option in my SSD is turned on, so how it is possible? Is it because ...
Maciaz99's user avatar
  • 147
7 votes
1 answer
3k views

No TRIM/DISCARD with a SATA SSD connected through an UASP-enabled USB adapter?

I just bought a SATA SSD and a USB-SATA adapter. I chose an adapter with UASP support, because I thought it would make it possible to run a TRIM/DISCARD command, and I think it is important for the ...
user2233709's user avatar
1 vote
2 answers
1k views

How often do windows and mac run the trim command and therefore when will a deleted file become unrecoverable?

I am trying to determine the security of an SSD drive and comparing Windows vs Mac for a project. Reading online, I understand all about trimming and how that process works, however I can’t determine ...
Richard C's user avatar
  • 113
1 vote
2 answers
1k 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 ...
HTWingNut's user avatar
  • 499
0 votes
0 answers
157 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} ...
m1well's user avatar
  • 135
2 votes
3 answers
6k 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 ...
ShangWang's user avatar
2 votes
2 answers
241 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 ...
Yang Xiao Long's user avatar
0 votes
1 answer
357 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 ...
JCM's user avatar
  • 348
1 vote
0 answers
157 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 ...
Kent Loomis's user avatar
0 votes
3 answers
973 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 ...
Bodo Thiesen's user avatar
2 votes
2 answers
1k 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 ...
Thelegend27's user avatar
0 votes
0 answers
763 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....
microbug's user avatar
  • 553
0 votes
0 answers
361 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 ...
mma17's user avatar
  • 1
0 votes
1 answer
2k 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 ...
bat_cmd's user avatar
  • 541
1 vote
1 answer
12k 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 ...
user45524's user avatar
  • 113
2 votes
1 answer
3k 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.
heilo's user avatar
  • 89
0 votes
0 answers
71 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 ...
JZK's user avatar
  • 185
0 votes
0 answers
136 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
2k 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?
klutt's user avatar
  • 243
0 votes
1 answer
866 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 ...
Maarten Bodewes's user avatar
3 votes
0 answers
384 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 ...
Mona the Monad's user avatar
0 votes
2 answers
531 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 ...
ZHMMY's user avatar
  • 11
7 votes
1 answer
5k 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? ...
rrauenza's user avatar
  • 275
1 vote
2 answers
268 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&...
AndroidAtomicSkills's user avatar
0 votes
0 answers
153 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
Preeti Solanki's user avatar
2 votes
0 answers
265 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 ...
pipe's user avatar
  • 190
1 vote
1 answer
5k 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 ...
Yak O'Poe's user avatar
  • 113
1 vote
1 answer
778 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....
vy32's user avatar
  • 3,391
3 votes
1 answer
2k 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 ...
anonymous's user avatar
5 votes
2 answers
3k 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[...
Gideon's user avatar
  • 181
2 votes
2 answers
3k 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 ...
jw_'s user avatar
  • 852
2 votes
1 answer
1k 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 ...
sohnman's user avatar
  • 23
1 vote
1 answer
783 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) ...
wfjm's user avatar
  • 123
0 votes
2 answers
694 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 ...
Kodeeo's user avatar
  • 446
0 votes
2 answers
3k 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 ...
Toto's user avatar
  • 115
3 votes
1 answer
5k 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 (...
Valentin Lorentz's user avatar
6 votes
1 answer
1k 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:...
Martin Seitl's user avatar
21 votes
3 answers
20k 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 ...
iBug's user avatar
  • 11.1k
1 vote
1 answer
298 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 ...
Kevin's user avatar
  • 11
2 votes
1 answer
2k 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 ...
newapartment's user avatar
1 vote
2 answers
792 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 ...
lx07's user avatar
  • 2,958
2 votes
0 answers
821 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 ...
anse's user avatar
  • 21