Benches Mac desktops

15

Safely Eject External Hard Drive Before S…

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

After returning from a state of sleep, my computer always gives me this error message:

User uploaded file

This is referring to the "unsafe ejection" of my external hard drive which I have hooked up to Time Machine for backups. I would think that the Mac has some sort of shutdown script it would run before going to sleep to safely eject the hard drives connected to the machine, but apparently it does not.

Does anyone know how I can avoid this message? In other words, is there a way to have my computer safely eject all drives before going to sleep?

15 replies

Sign in or join Beachball Help to reply.

  1. 0

    R C-R

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Are you saying you get this message even if you do not power down or disconnect the external HD while the laptop is in sleep mode? If so, something is wrong; if not, that is normal.

    If it is acting normally & you would like a different behavior as an option in the OS, then send Apple feedback about that (
    http://www.apple.com/feedback/).

  2. 0

    Peter Bovis

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I have this happen on the odd occasion, I have 2 external disks, only 1 does this, albeit infrequently.

    I have not found out what causes it, it does not cause me any real concern, so I live with it when it does occur. Perhaps someone does have a solution.

    The disk should not really eject when the system is awoken from sleep. It's a bit like the system is hiccupping itself awake.

    You can of course eject the external disk yourself, prior to sleep mode, but you should not have to, as it probably will not mount automatically if you schedule a backup for the early hours of the morning (that is what I believe to be correct).

    Perhaps a more seasoned Mac person has the answer to this glitch?

  3. 0

    Rick Lang

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I suspect your physical connection either on the machine or on the external hard disk is slightly loose and the electrical connection gets interrupted sometimes. I know one of my Firewire connectors seems awfully loose on one of my external drives so you may find reseating the connection from time to time is helpful. I am sure this message has nothing to do with your machine sleeping.

  4. 0

    Fusion Factor

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Good suggestion, Rick, but I'm positive that the connectors are not loose. The drive stays connected to the machine as long I keep it on; but if I put it to sleep and then wake it up later, it always has the error message seen above. So, it's definitely a software issue rather than a hardware/connection issue.

  5. 0

    elmac

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Hi, I too have this issue..I have, reset PRAM, SMC, NVRAM, run OnyX, used a different external HD, tested, cleaned & reinserted cables ~ all to no avail. I suspect it's a bug in the one of the latest updates. All the info on the external HD seems ok, nothing lost or corrupted. I just dismiss the Error Box & carry on as usual..L

  6. 0

    babowa

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    In case anyone remembers the "good old days" - a few years back (mostly during OS 10.4 - Tiger), there were multiple problems reported with either USB and/or Firewire externals on wake-up; this included hard drives and hubs mostly. I was experiencing problems myself continuously with one of my hubs. Apple finally came out with one of their articles stating that the problems arose because, upon wake-up command, the computer would get confused momentarily as to what to start with first - internal HD, external HD, hub, or whatever and suggesting that you simply unmount (before sleep) whatever was causing the problem. The second suggestion was to unplug/plug in the USB or firewire cable after wakeup, which is what I had to do to get my keyboard and mouse working which were plugged into the hub. That was when I started to unmount and unplug my externals unless I actually needed them and I'm actually still doing that (habits!). I haven't had a problem with my hubs for a while now, but I'm wondering if it could be the same type of problem.

  7. 0

    TSTURGES

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I had been concerned about "ejecting" my Time Machine external hard drive before putting the machine to sleep (actually I use hibernate); but I have found that -- if I turn on the power to the hard drive before I wake up the computer -- the Time Machine will "be there," and I do not have to unplug it and then plug it back in.

    It puzzles me that we should need to eject a driver or USB stick if there's been no writing to it for an hour, but my wizard friends say I should.

    ymmv

    tony

  8. 0

    babowa

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    +It puzzles me that we should need to eject a driver or USB stick if there's been no writing to it for an hour, but my wizard friends say I should.+

    Your wizard friends may be remembering the problems I had mentioned in my earlier post?

  9. 0

    Acetone.

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    First the good news. You got some replies about this problem ((I never got one when I posted the same thing months ago)(maybe you asked in a clearer way)) It's a pain for me as my daisy chained fw800 drives are hidden under the desk so switching them on and off is a hassle

    Happens to me on the odd occasion, but never found out why or how to stop it happening.

    I thought about some way of auto eject on sleep and auto mount on wake, but can't find if this is possible.

  10. 0

    babowa

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I've never heard of any auto eject or mount possibility, so I can't offer an opinion; and, BTW, I'm not the OP, I just offered my two cents worth. Fortunately I don't need my external hard drives continuously, so I have both a USB and a Firewire hub within easy reach; they are connected to the iMac permanently and it's handy and very quick to simply turn on the external, plug it in to the hub, and the icons show up.

  11. 0

    David Harrod

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    I just started having this problem. I had never had any problem with this before.

    Doesn't make sense. I've been running like this for a long time - laptop connects to hub connects to external drive that time machine uses. Now every time I wake from sleep I get this dialog. There doesn't seem to be any real harm done. The disks mount and time machine continues to chug away.

    Annoying.

    Message was edited by: David Harrod

  12. 0

    R C-R

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    TSTURGES wrote:

    ... but I have found that -- if I *turn on the power* to the hard drive before I wake up the computer …

    If that means you have been cutting power to the external drive without first unmounting/ejecting it before putting the Mac to sleep then that is why you get the message … & is something you need to stop doing. When you sleep the Mac, it does not unmount any attached drives. That means there may be open files on them (which is why sleep doesn't automatically unmount them to begin with) that still need to be closed properly. Cutting power to the drive prevents this. That can lead to file system corruption and/or data loss.

    The
    only time it is safe to cut power to a drive (or to disconnect it from the bus) is after it has been unmounted. This process insures that the OS writes any pending changes to files & the file system & the drive writes any pending changes in its buffers to the drive before it loses power.

  13. 0

    Jeffnebraska

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Two problems here. 1) if I close the lid without ejecting, I get this error message/hard drive risk. I can try to avoid doing that, but it's a hassle to eject every time. 2) whenever the computer goes to sleep itself, I get this message. The only way to avoid that is to disable sleep, which needlessly wastes power.

    This needs to be fixed in the OS, so that there's a way to eject automatically before sleeping and to cancel any sleep attempt if the drive is busy.

    I have seen scripts on the web that claim to accomplish that, but I nervous to start monkeying around with them, since I am a PC person up until two months ago.

    Would appreciate any advice from someone who's solved this problem.

  14. 0

    Jeffnebraska

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Correct. If the computer goes to sleep, or if I close the lid, when I bring it out of sleep mode, I see the message copied at the beginning of this thread.

    If that's not normal, does anyone have any theories as to why it is happening to me? I have a 1TB USB 2.0 external drive, that my Mac turned it into a Time Machine drive.

  15. 0

    R C-R

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Is the external USB drive bus-powered or does it have its own separate power supply? If bus-powered, power to it will be cut when the Mac goes to sleep, thus the warning. (It is effectively being turned off.)