Is Trim working?

polive

[H]ard|Gawd
Joined
Sep 28, 2005
Messages
1,283
Samsung 840 Pro 256 here.

Had the drive for a while now.

Anyway, I wanted to defrag a different hard drive. I know not to defrag SSD's. So in W7 64 my standard defrag tool isn't responding. Restart the machine, still not responding.

So I got this program O&O Defragmenter. It's working with my drive that I originally wanted to defrag currently.

Out of curiosity I did the "analyze" on my SSD C drive. It shows up as over 50% fragmented! There is an option to "optimize with TRIM". I get a WARNING: This drive is not TRIM supported bla bla bla.

What gives?
 
Check your BIOS to see if your SSD is in AHCI mode or not. If that is off, it will prevent TRIM from working.

NOTE: DO NOT just change this if it is currently off. From what I have read it will cause a boot loop error. Your only fix is to reinstall Windows with the AHCI on, so you'd better back-up your data before you proceed!

Do not worry about fragmentation level of your drive. The files are accessed at the same speed no matter their location in the file table (this is an issue for physical disks ONLY). Thus Windows 7 (and higher) disables background defrag on SSDs by default (note that is still will automatically defrag hard drives by default once a week as well)!

There is no need to purchase a separate defrag utility anymore. Windows will automatically handle this task weekly when you are not using the computer, and it's a much better tool than ever before. If your defrag utility reports that the hard drive is heavily fragmented, it's likely just because the two tools use different methods to manage the disk (and of course the company also wants you to buy their product, and reporting "everything fine" generates zero revenue!)
 
Last edited:
Check your BIOS to see if your SSD is in AHCI mode or not. If that is off, it will prevent TRIM from working.

NOTE: DO NOT just change this if it is currently off. From what I have read it will cause a boot loop error. Your only fix is to reinstall Windows with the AHCI on, so you'd better back-up your data before you proceed!

You can't just turn it on and have it work but you can turn it on after you enable the ahci driver, instructions can be found here. You'll probably want to install the Intel RST driver after that but the win ahci driver will let you boot with ahci on.
 
AHCI mode is set in the BIOS. I just wonder why that utility (O&O Defrag) is giving an error. Is there anything else I should check to verify that TRIM is working properly?

The only reason I got another program was because my Win 7 defrag isn't responding. Just wanted to defrag an older drive that has movies and stuff on it, and then I get this error on my main SSD which irks the hell outta me!
 
You can't just turn it on and have it work but you can turn it on after you enable the ahci driver, instructions can be found here. You'll probably want to install the Intel RST driver after that but the win ahci driver will let you boot with ahci on.

I have always had the notification that "RST service is not running". I remember trying to fix that a while back and forgot about it. Yes I know that sounds plain lazy.
 
command prompt...run as administrator...type in the command: Fsutil behavior query disabledeletenotify...Hit Enter...If this returns the result “= 0″, you’re good to go!
 
command prompt...run as administrator...type in the command: Fsutil behavior query disabledeletenotify...Hit Enter...If this returns the result “= 0″, you’re good to go!

Yes, I return 0 there.
 
But what's up with that damn program? BTW I didn't pay the 30 bucks for it. I'm using it as a "trial" since my normal Win7 defrag quit on me.
 
I would run chkdsk on the drive you are trying to use. Could be a file system error that's causing the defrag program to error out.
 
NOTE: DO NOT just change this if it is currently off. From what I have read it will cause a boot loop error. Your only fix is to reinstall Windows with the AHCI on, so you'd better back-up your data before you proceed!

Don't worry about this at all. There is a very easy fix. Rather, a Fixit.

http://support.microsoft.com/kb/922976

Run this fixit before rebooting and switching to AHCI and you will have no problems. No Reinstall needed.
 
Well it's my main W7 OS on the Samsung drive. I'll see about checking it. I almost want to reformat everything and start over with W8.1. I'll wait til this other program finishes first I guess though.
 
Out of curiosity I did the "analyze" on my SSD C drive. It shows up as over 50% fragmented! There is an option to "optimize with TRIM". I get a WARNING: This drive is not TRIM supported bla bla bla.

1) TRIM stuff detection - probably some stupid thing in the app itself, if Windows says you are using TRIM, then you are using TRIM.
2) fragmentation - it is ok to have huge fragmentation on SSD. See, in case of a mechanical hard drive it does make sense not to have fragmented files, because of the seek time, which is usually around 15 miliseconds, and if the files aren't fragmented, the drive can read them in sequence without seeking elsewhere. Now with SSD, it doesn't matter at all - fragmented or not, the firmware still needs to switch from one memory block to a different one, but with sub-1ms seek time no one cares.
 
^ ^ Glad I didn't pay for this rip off app. :D

I haven't had problems with the machine, just wondering why it was telling me there was a problem.
 
Oh yeah, does the RST service have to be running? It always says it's not running. Has for a long time. Task Mgr won't let me start it.
 
Oh yeah, does the RST service have to be running? It always says it's not running. Has for a long time. Task Mgr won't let me start it.

That's for a RAID array.

Just uninstall or disable the service if you don't need it.
 
am using a AsusTek Sabertooth 9900FX motherboard, and Crucial SSD 64 GB Sata 3.
Am finding my BIOS does not detect my SSD when I turn on my computer but will detect it and boot up after pressing my reset button.
I have looked for updates for the SSD and its up to date and checked for updates for my BIOS and again up to date.
Any ideas?
 
Back
Top