What does an external hard drive do after it's been ejected?

I have a hard drive that I use only for occasional Time Machine backups. I plug it in and click "Back Up Now". When the backup is complete I eject the disk using the Finder. It seems to eject completely, I don't see it mounted in /Volumes, and if I unplug it right away, everything is OK---no warnings or anything.


But if I don't unplug it right away, it seems to keep working for awhile, at least 10 minutes. It's still spinning and I can feel the heads moving back and forth. So the question is: What is it doing? Some internal cleanup or compactification or the like? Spotlight indexing? (Though I explicitly exclude Time Machine backup disks.)


And who is controlling this? I don't see how the laptop can be doing anything on an unmounted drive, though I assume it's possible. I don't see processes that look relevant. Is it some procedure located on and entirely under control of the disk?


I'm not having any problems---as I say, this post-unmount activity can be interrupted (by unplugging) any time with no trouble. I'm just curious.

MacBook Pro 15″, macOS 10.14

Posted on Feb 16, 2023 07:16 PM

Reply
Question marked as Top-ranking reply

Posted on Feb 17, 2023 10:59 AM

FYI, I never unplug any external drive right away. I always wait at least 30 seconds or until the drive's LED stops blinking to ensure that the drive is no longer being accessed. I've found sometimes that macOS may still be attempting to flush the buffer and unmount the drive (even for an SSD). I really wish macOS still kept the "It is Ok to disconnect the drive" notification message since an external drive (even an SSD) is not always ready to be immediately disconnected. I've had a number of times where even waiting 30 seconds was not enough and I have received the notice "Drive was not properly ejected". Even when macOS is finished transferring data to a drive, the drive may still be handling the data internally....transferring data from the internal drive cache to its permanent storage location on the magnetic media (hard drive) or to the NAND memory chip (SSD, or even hybrid drives).


From my experience, once a drive is ejected (after macOS is finished with the drive which can take a bit of time sometimes), the drive is then no longer physically seen by macOS. At that point the drive is only receiving power. A hard drive will continue spinning, I've never left an ejected drive connected long enough to notice if there is any other activity...I would not really expect it, but like @muguy says, the drive's controller may be doing some internal housekeeping. I know SSDs will perform some internal maintenance and garbage collection when just sitting idle without any data connection.


Similar questions

2 replies
Question marked as Top-ranking reply

Feb 17, 2023 10:59 AM in response to larry_denenberg

FYI, I never unplug any external drive right away. I always wait at least 30 seconds or until the drive's LED stops blinking to ensure that the drive is no longer being accessed. I've found sometimes that macOS may still be attempting to flush the buffer and unmount the drive (even for an SSD). I really wish macOS still kept the "It is Ok to disconnect the drive" notification message since an external drive (even an SSD) is not always ready to be immediately disconnected. I've had a number of times where even waiting 30 seconds was not enough and I have received the notice "Drive was not properly ejected". Even when macOS is finished transferring data to a drive, the drive may still be handling the data internally....transferring data from the internal drive cache to its permanent storage location on the magnetic media (hard drive) or to the NAND memory chip (SSD, or even hybrid drives).


From my experience, once a drive is ejected (after macOS is finished with the drive which can take a bit of time sometimes), the drive is then no longer physically seen by macOS. At that point the drive is only receiving power. A hard drive will continue spinning, I've never left an ejected drive connected long enough to notice if there is any other activity...I would not really expect it, but like @muguy says, the drive's controller may be doing some internal housekeeping. I know SSDs will perform some internal maintenance and garbage collection when just sitting idle without any data connection.


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

What does an external hard drive do after it's been ejected?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.