Helping people with computers... one answer at a time.
Leaving a flash drive or USB thumbdrive plugged in all the time can run a risk of prematurely wearing it out. We'll look at why, and what to do.
Some time ago I think I read on your site that flash drives can wear out. Now, I keep my flash drive in all the time because I'm a writer and am always backing things upon the computer and the flash drive, but I dislike having to close the flash drive down, take it out, only to reinsert it again after I take a break or run an errand. And I always leave it in when I run a full system scan because the flash drive will get scanned also.
1. Is it harmful to the flash drive to just leave it plugged in 24/7, even when I put the computer on standby for the night?
2. Why is it necessary to shut the flash drive down before removing it from the computer? Why can I just pull it out when done?
3. And if I am correct about flash drives wearing out, what wears out? As far as I can tell they have no moving parts. And at what point should I consider replacing the flash drives I have?
•
These are very legitimate questions, but unfortunately very tough questions to answer.
Flash drives do wear out, absolutely.
But exactly when a flash drive will wear out can vary based on so many things it's almost impossible to give a specific answer.
I'll give you my best guess answers, and then also throw out some guidelines that I'd follow on using a flash drive were I in your shoes.
•
First I'll answer your questions, in reverse order:
What wears out? You're correct, there are no moving parts, but there are electronics. The type of electronics that are being used in flash drives actually wears out a little each time something is written to it. Eventually attempts to write further can be lost because of that wear.
Perhaps the best analogy I can give you are old style CRT screens at airports and in cash machines that display essentially the same thing for months on end. Eventually, the coating underneath the glass display wears such that even when the device is turned off you can see a ghost or pattern of what had been displayed there before. This is called "burn in" and is the reason that screen savers were invented. Eventually that ghost can become so prominent as to interfere with the readability of whatever is displayed when it's turned back on.
Flash memory doesn't really "burn in", but it does wear in a conceptually similar way.
Why "Safely Remove"? In an effort to make accessing the device faster, Windows may "buffer" data before writing it to the actual device. Safely Remove forces Windows to flush everything to the device. NOT doing so, but just yanking the device out without warning, could then cause the files - or worse the file structure - to become corrupt and unreadable.
Writes to flash memory are expensive (slow) and as we've seen causes wear. In addition, writes only happen in multiples of the sector size - typically 512 bytes. So let's say you write 100 bytes of data to the device, wait a while, and then write 100 bytes more. There are two approaches:
Take your 100 bytes of data followed by 412 bytes of anything and write that into a 512 byte sector. Then on the second request read the sector back in, add the next 100 bytes of data following the first 100 bytes, and write it back out.
Place the 100 bytes of data into a 512 byte buffer in your computer's memory or RAM. When the second request comes along add the next 100 bytes. Later when the file is closed or more data is added to fill the sector completely, write the data you've collected.
As usual that's a gross oversimplification to make my point, but as you can see the first scenario has three operations to the device: a write, a read and a write, whereas the second has only the single write. The optimization is simply that writes to the device are delayed until they are necessary. This maximizes speed and minimizes the wear on the device.
Safely remove simply makes sure that any partial data managed by the operating system that is waiting to be written to the device actually is. In addition, it also checks for applications that have files open on the device that may be in a similar partially-complete state.
Should I leaving it plugged in? This is where "it depends" really comes into play. And the problem of course is that it depends on things that actually aren't all that easy for you to see.
What it depends on is easy: is the device being written to - even occasionally - while its left plugged in? I'm not talking about your work, I'm talking about other programs like your operating system, anti-malware software, utilities and other things that - on the surface - would have no reason in the world to write to the device. And yet some do. Maybe.
Me? I wouldn't. The only way to be sure is to remove the device to maximize its life.
And for the record, any time your computer is powered down - be it off, hibernate or stand-by - there's no issue. No one's writing to the device when the machine is turned off. If, however, like me you leave the machine on 24 hours a day, then there's a small risk.
So, how big is the risk?
You're going to hate me for this.
It depends.
It depends on the quality of the flash drive. It depends on what software you have installed on your machine. It depends on how your USB or other connecting port is configured (some of the buffering might be turned off). It depends on how long you plan to keep your flash drive. It depends on how catastrophic it would be to you if it failed.
For many - perhaps even most - there'd never be a problem. Heck, most people would probably lose the flash drive before it actually wore out.
And the quality of flash memory is constantly improving. High end (read: expensive) flash memory is being used to actually replace hard disks, so you know that while they still wear out their lifespan has been increased to the point of it no longer being a practical issue. But that inexpensive flash drive you picked up? It's not going to be that same high quality. In fact, where it'll be on the quality scale - a scale that is constantly moving - is anyone's guess.
But the risk is definitely there. And Murphy's Law being what it is, failure will happen when it's least expected, and most inconvenient.
Mitigating the Risk
Here's what I recommend you do.
Plan for failure.
Just assume that sometime out of the blue a write to your flash drive will fail. Or that a later read from it will fail.
Make sure that through some form of redundancy - periodic backups come to mind - you can recover to a convenient spot. Perhaps that means you need to save two copies every time (one to your laptop, one to the flash drive), perhaps that means you're ok losing a weeks worth of work. In any case, do something that makes sense for you.
It's always important practice to have at least two copies on different media of anything important. That's advice that's independent of, and certainly predates flash drives. Heck, back in the day floppy disks wore out too.
And let's face it - even if your flash drive doesn't wear out you could lose it, with the same potentially disastrous results.
Article C4224 - March 18, 2010
“Would it be foolish to store something like photos on flash drive and expect them to be retrievable years later?"
Flash drives work by placing an electric charge onto millions (well, billions) of tiny pieces of very well-insulated material (the charge is induced there - first the nature of the insulation is electrically changed, then a high voltage is placed nearby which sucks the electrons out - cleverly creating a positive charge on a piece of material inside an insulated container).
If the insulation was perfect, the charge would last forever and your data would be safe forever. But there is no such thing as perfect electrical insulation, therefore the charge will leak out over time.
Over what time? That depends of course - but between a few years and 10 years is probably about the likely useful life of any one charged bit. After that its charge may have dropped below the threshold that marks it as a one not a zero - and your data is irreversibly destroyed.
(Clay tablets are the current best long-term storage option for data, and cave walls for images) :)
Posted by: Robert at March 24, 2010 3:40 AMMaybe I'm missing something, but surely the whole point of backing something up is to protect the data from any loss - for example a house fire, flood etc - in a kind of "disaster recovery" situation.
Posted by: Luke at March 24, 2010 6:09 AMIn this case wouldn't it be better to save to the flash drive, but then remove the flash drive and store in a separate location - in your pocket perhaps - that way if the house does catch fire etc, you can protect your data from loss...
What about the Heat. They do get hot when in use. Hot things deteriorate faster.
So I guess, use when needed.
Plus one more thing. Every time you save a file, the old file is being deleted and a new one is being written. Keep that in mind. Use your Harddisk instead. Copy the final version to the Flashdrive when done.
If comfortable & if you have the previlige of an always ON internet connection, use google docs.
No worries, then.
Ravi.
Posted by: Ravi Agrawal at March 25, 2010 2:14 AMFlash drives do wear out but are also remarkably robust. I took a load of laundry out of the washer once to find my flash drive lying in the bottom of the tub. Oops!
I crossed my fingers, set the device aside for 24 hours and plugged it in.
Voila! It worked perfectly. All of my files were still intact. I'm still using that drive 2 years later.
I now faithfully check all of my pockets before loading the washer.
Posted by: Tom R. at March 28, 2010 11:50 AMBecause they are so easily lost, I consider flash drives strictly for backing up and/or transfering data. On that subject, most people think of "backing up"
as just copying stuff from one place to another. While that is better than nothing, it is often NOT enough. Traditional backup software creates a file in
which it places all the files being backed up. This allows having many copies of some data in the same "volume" (like a single flash drive). If one is only
dragging and dropping stuff instead of using a "traditional backup program" then it is wise to create a directory (folder) for each backup, giving that
directory (folder) a new, unique name, such as the date and time the "backup" is being created.
The advantage of this approach is two-fold: in the vein of information in this article, is spreads the utilization of the flash drive's surface. Each backup
uses a different area of the flash drive. Additionally, and more importantly, it creates multiple versions of the files being backed up (one in each
directory). This is important because sometimes we may either want to "drop back" to a certain date, or retrieve a deleted file or data, or investigate when
a certain problem started. Some data program may have started losing or corrupting data some time ago. Those who backup to the same area (or
directory) over and over, they have only "one round" before both their original and their backup are identically corrupted.
And yes, I recommend my clients keep the backup and the original data (usually in their computer) far from each other, the backup ideally offsite.
Saddly, few heed such advise and they will contribute heavily to my standard of living when things go South !!
Posted by: Carlos Coquet at April 13, 2010 1:59 PM