Does Windows 8.1 prevent defragmentation from a SSD even in the event of running by mistake defrag on command prompt?

4

Hope you can me with this. I am concerned about a possible defragmentation on my SSD.

I have a laptop running Windows 8.1 preinstalled and further equipped with a SSD. Windows 8.1 has detected the SSD, which is scheduled to be optimised on a weekly basis.

To make sure that TRIM was enabled, I run fsutil behaviour query disabledeletenotify and the result was '0'. By accident, I also run defrag C: on command prompt. I immediately checked out the Defrag history on Event Viewer and noticed that "The storage optimizer successfully completed retrim on (C:) while the Recovery partition had been successfully "defragmented".

I had a look at the rest of the log entries and defragmentation on the Recovery partition happened only on that occasion (when I run defrag by mistake) as both the C: drive and the Recovery partition had been successfully retrimmed on the other occasions, so I am not sure about the extent of the damage.

I just want to make sure that my SSD has not been defragmented, so I would be grateful if you could answer these questions for me, since I am really concerned about this:

  • Is it possible that Event Viewer shows the defrag entry (because the defrag command has actually been run) but a “real” or “traditional” defragmentation has not really taken place since Windows 8.1 uses the TRIM command with SSDs?

  • Does Windows 8.1 prevents a SSD from being defragged through cmd even in the event of running the defrag command by mistake?

I have done some research online but I could not find any reliable information on this and Windows Answer Tech service did not clarify anything at all. find below the event viewer details regarding the two entries for the same event registered at the same time: (1) the storage optimizer successfully completed "defragmentation"; and (2) the storage optimizer successfully completed "retrim" on Recovery ( see details below). I had a look at the rest of the log entries and the (potential) "defragmentation" on the Recovery partition had actually been registered only on that occasion (when I run defrag C: by mistake) as the Recovery partition had been successfully retrim on the other occasions, so I am not sure about the extent of the damage.

I just want to make sure that my SSD (or the Recovery partition) has not been defragmented.

Event Viewer – Defrag (Windows Log/Application, event ID 258) Details tab/XML view “The storage optimizer successfully completed defragmentation on Recovery”

   Provider Name: Microsoft-Windows-Defrag
   EventID 
   Qualifiers: "0" 258 
   Level: 0 
   Task: 0
   Keywords>0x80000000000000
   TimeCreated SystemTime: 2014-04-03T14:49:41.000000000Z
   EventRecordID: 1777
   Channel: Application
  Computer: VAIO
  Security:
  EventData:
  Data: defragmentation 
  Data: Recovery 
  Binary: 00000000D5010000C10100000000000022B651A2296BEDD85E9C8D030000000000000000

Event Viewer – Defrag (Windows Log/Application, event ID 258) Details tab/XML view “The storage optimizer successfully completed retrim on Recovery”

  Provider Name "Microsoft-Windows-Defrag"
  EventID 
  Qualifiers "0" 258 EventID 
  Level 0 
  Task 0 
  Keywords: 0x80000000000000 
  TimeCreated SystemTime: 2014-04-03T14:49:41.000000000Z 
  EventRecordID: 1776 
  Channel: Application
  Computer: VAIO 
  Security: 
  System:
  EventData:
  Data: retrim 
  Data: Recovery 
  Binary: 00000000190200000B0200000000000022B63823DBB1BD381B0700000000000000000000

Andrea23

Posted 2014-08-09T14:29:01.597

Reputation: 41

2Defragging your SSD once is going to do 0 damage, you're worrying about nothing. – Ƭᴇcʜιᴇ007 – 2014-08-09T14:35:32.723

3fragmentation on a SSD does not actually exist in the traditional sense, because the SSD is already going to write blocks where it wants to, so trying to defrag a SSD is counter productive for that reason. SSD prevent overuse of a single cell to extend the lifespan of a single cell. a single defrag attempt wouldn't hurt, not sure how you run a command, accidently thouhg – Ramhound – 2014-08-09T14:48:24.727

@Ramhound is correct. SSDs intentionally fragment the data on drives in the effort to write across all cells evenly – Keltari – 2014-08-11T13:47:13.310

Rather than continue your question in an answer you should use the contact form to have your accounts merged. You'll then be able to edit this question.

– Mokubai – 2014-08-17T20:39:54.550

Answers

3

Quote from technet forum:

"Hello, In Windows 7 - we turned off defrag for SSDs as you mention in your entry; but in Windows 8, we have changed the defrag tool to do a general optimization tool that handles different kinds of storage, and in the case of SSD's it will send 'trim' hints for the entire volume;" 'Microsoft employee'

However, there was a BUG in Win8 RTM: 'answers.microsoft.com', so I'd have to look at the patch history to see if a fix is ever mentioned.

user165568

Posted 2014-08-09T14:29:01.597

Reputation: 421