Really Need To Eject Flash Drive Before T…
apple Verified ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Hi,
On a PC, you can just pull a USB Flash Drive out of a USB port, without any problems. If you do this on a Mac, it warns you of data corruption, and suggests you eject it first. But, do you REALLY need to eject via software on a Mac? Isn't it just a precaution?
13 replies
Sign in or join Beachball Help to reply.
- 0
floba ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
If you don't safely eject the drive (i.e. unmounting it before unplugging), you risk corrupting the drive, corrupting individual files, and/or completely destroying files.
On a PC, you can just pull a USB Flash Drive out of a USB port, without any problems.
I have to disagree with you on this point: even under WinXP you have to eject any usb drive before unplugging it! Furthermore, that's also the case with any Linux system, just to name another example.
To unmount it just drag the drive's icon to the trash or click the little eject button next to it in the sidebar of any Finder window or ctrl-click on its icon and select from the context menu. Safely removing a usb drive is simple and saves you a lot of trouble regarding file-corruption.floba
(MN382)
- 0
Yer_Man ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Or just select it and go -e.
Regards
TD
- 0
floba ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
One more addition: unmounting a drive before unplugging it is a necessity because the operating system uses a disk cache which will not be emptied ("flushed") correctly if the drive isn't unmounted properly. Some hints are given by Apple concerning unmounting devices [here|http://docs.info.apple.com/article.html?artnum=305396]. They are for OS X Tiger but apply to Leopard as well.
floba
(MN383)
- 0
Markus Gantner ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
In Windows disk-caching is by default not used on external drives - i guesss just because people often just pull the plug. Besides that, USB-flashdrives and external harddisks are handled differently by the system. You can't "eject" a harddrive in the contextmenue. You have to "safe remove" them.
Different to Windows, OS X creates trashes- and desktop-folders on every external drive, so just pulling it out leaves system files in their old state, maybe even corrupted, but this should not affect your data.
However: on Windows i sometimes pull them out, on a Mac i do, what the system says. I think, it ist just best to get used to eject every external drive. Usually nothing happens - but something WILL happen, if you just copied an important file to the drive and forgot, you just should have done it THIS time... (you know Murphy's Law 🙂 )
- 0
i.3d ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Reuben Feffer wrote:
Hi,On a PC, you can just pull a USB Flash Drive out of a USB port, without any problems.
All that means, is that you are lucky.
Despite the fact that the write behind is disabled on windows, there are several programmes under windows which will have their data corrupted if a "stick" is pulled out without a "safe unplug".
Not to mention that it seems (from observing the number of dead drives amongst my students) that ripping them right out doesn't help their longevity. - 0
Reuben Feffer ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Ok, great answers guys. So it's really just a case of, you can whip out a USB Flash Drive on Windows, but you shouldn't. Same as a Mac then. The Mac just gives you a warning if you don't Eject first, whereas Windows doesn't.
- 0
karlfranz ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
I'm sorry, but this is all incorrect information. In Windows XP, you can select the drive in the Device Manager utility under the Disk Drives category. Then right click and select Properties. In the Policies tab, select the "Optimize for Fast Removal" checkbox and you can unplug the USB drive without selecting the "Safely Remove..." item. This, essentially disables all write caching for that particular device. No programs under Windows should be talking directly to the USB drive hardware without going through the OS and selecting "Safely Remove..." does not cause the OS to send any kind of message or notification to any programs that they need to flush their caches.
If you are experiencing problems with devices unplugged without select "Safely remove..." then you are experiencing other issues related to the typical instability of Windows.
Unfortunately, OS X does not have any option to disable write caching that I'm aware of.
- 0
Topher Kessler ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
karlfranz wrote:
I'm sorry, but this is all incorrect information.It's not incorrect, but Windows does have a way to get around this limitation, or at least a way to do it with less potential damage. If you're writing to a drive and yank it out, you risk data corruption or loss, even though the drive may be better safeguarded from damage with these features enabled.
- 0
karlfranz ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
I really don't think the original poster was questioning that scenario. I don't think most people are foolish enough to yank the drive out in the middle of a write operation and not expect potential data corruption. The question was can you unplug an idle USB flash drive without having to do an eject first. The answer is, in Windows (if the settings are correct) absolutely yes; in OS X, no.
- 0
Topher Kessler ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
Well, given the above discussion I dont agree that it's that simple. Windows allows for this, but even so there is the possibility for data loss. The windows feature just reduces the probability for this by disabling certain features, however without a full "eject" first the drive may still be vulnerable.
- 0
karlfranz ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
I'm sorry we keep going back and forth on this. I don't know where you are getting this erroneous information from that "without a full eject first the drive may still be vulnerable."
It's really very simple. By default, the OS tries to optimize performance by delaying any requests to write data to slow devices by pooling together multiple write operations into a cache and then performing all the write operations at once (flushing the cache) when the OS determines that it has some idle time to do so. When you eject or "Safely Remove..." the device, the OS forces a cache flush command, thus immediately performing any write operations it may have not done yet. When it is done emptying the cache it displays a message that it is now safe to disconnect the device.
If you select the Fast Removal feature in the device manager, the write cache is disabled, so all data is written to the drive immediately and no cache flush is necessary. If you issue a "Safely Remove..." for a drive that has the Fast Removal option enabled, Windows simply ignores your request because there is no cache to flush. It simply skips the flush operation and immediately displays the message saying that it is now safe to disconnect the device.
There is
always the possibility for data loss (especially if you do something silly like yanking the drive out while it's being written to), but if you have the Fast Removal feature enabled, ejecting or doing a "Safely Remove..." does absolutely nothing magical that will make the drive less vulnerable. Of course, there is no harm done in ejecting a Fast Removal device because your request is ignored; but if the placebo effect makes you feel you are somehow less likely to have data loss, by all means go ahead and do it.Again, this is only for Windows. OS X does not have a Fast Removal option available from its GUI.
- 0
Topher Kessler ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
karlfranz wrote:
There is
always the possibility for data loss (especially if you do something silly like yanking the drive out while it's being written to)This is all I'm referring to, and it's very easy to prevent by ensuring drives are properly unmounted before removing them from the system. Additionally, It's also good to get in the habit of doing because some computers and OS's will always require a proper unmount before device removal. Bad habits always increase the chance of data loss.
- 0
aokeefe ·
Imported from the Apple Support Forums via the Wayback Machine 🔗
New switcher here...very novice. On a related note, I turned off my external drive as I always did in Windows (I now know that was not good) and a folder showed up labeled "0000000000000000000000", 3.5 GB in size. It looks like it contains applications shortcuts, looking at Finder. Is this the disk cache that is corrupted? Can I delete it? I wasn't doing anything on the external drive at the time.
Thanks very much