Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

If I defragment my 8 GB Kingston flash drive, will it decrease its lifetime?

share|improve this question

4 Answers

up vote 11 down vote accepted

You should not defrag flash media.

First off, there is no benefit. Defragging a traditional magnetic hard drive is beneficial as the actuator arm has to move the heads around the platter to find the data. Defragmenting orders the data on the hard drive, and the actuator arm has to seek (move around) less. However, flash media has no moving parts, therefore is has virtually no seek time.

Flash media does wear out though. It takes a long time, with lots of writes to the same location repeatedly. Modern flash drives have a technology called TRIM that minimizes writes to the same location by spreading them around the entire drive. TRIM basically does the exact opposite of what you are trying to do - it fragments the data.

In addition to that, most OSs will not let you defragment flash media (for the reasons mentioned above). There may be some 3rd party tools that will bypass the restriction, but it is not a good idea.

share|improve this answer
I don't know of a single USB FLash Drive on the market in 2012 or 2011 that supports TRIM. The solid state flash memory used in SSD HDDS and USB Flash Devices are honestly different. – Ramhound Sep 12 '12 at 17:30
whether the media supports TRIM or not, you still shouldnt defrag it. – Keltari Sep 12 '12 at 17:33

The Diskeeper program, which has been the best defrag utility, has a optimization module for SSDs, called Hyperfast. It doesn't defrag your SSD-type drives, it optimizes them.

share|improve this answer
I know this is a necropost, being a year later, but I was looking at some of my old answers and saw this and had to throw my 2 cents in. Although I know nothing of this Hyperfast, I dont believe for a second it is useful. Im sure there is a mathematically proven best method for ordering data on a SSD. However, with the speed of random seeks on SSDs, the benefit of this would probably take dayss to accumulate a second of saved time. – Keltari Jul 16 '12 at 6:57
@Keltari - I would have to agree. My guess its one of this features that don't actually do anything and can even do more harm then good. – Ramhound Sep 12 '12 at 17:28

It depends on what is on the drive. You will not get any performance increase by defragging a flash-drive, but it will have an impact on data-recovery.

On the one hand, flash-memory has a limited number of write cycles, so doing a lot of writing will eventually wear it out. Flash drives, memory cards, and SSDs use tricks like wear-leveling and TRIM to extend the life of the media, but defragmentation tends to cause a large number of writes, which will cause it wear out all the faster.

On the other hand, fragmented files are infinitely harder to recover when accidentally deleted, hit by a virus, etc. so keeping your files in a contiguous state (e.g., by defragmenting) will greatly increase the chances of recovery.

Therefore, like I said at the start, it depends on what is stored on the drive, how important the files are, how likely you are to need to perform data-recovery, and how frequently the files are changed (frequent deletions and copies will lead to fragmentation faster as well as eat up more write cycles).

share|improve this answer

If you have not yet done it, the answer is, "yes it does, don't do that". However, most likely one defragmentation cycle consumes just 1-5% of the lifespan of the USB stick, so you're hard pressed to notice. The exact amount of wear depends on the controller on the drive, and how badly it was fragmented before defragmenting.

The 1-5% estimate comes from assuming defragmenting a badly fragmented drive writes each block 1-5 times, write amplification for cheap NAND flash solutions is around 10-30 and MLC NAND is typically rated at 5-10k cycles.

share|improve this answer
5  
1-5% ?! where is your source? – Keltari Sep 5 '11 at 18:15
In light of @Keltari's answer, I would say instead "how well it was fragmented" since it is a desired state. :) – Ben Richards Sep 5 '11 at 18:43
The state of being fragmented is not desired, it's just irrelevant. – Zds Sep 6 '11 at 7:20
@Keltari, sorry, I thought it was not really crucial to get exact numbers, just the ballpark, so I just estimated it in my head. Added some of the numbers the estimate was based on now. – Zds Sep 6 '11 at 7:26

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.