0

On a Macbook Pro M1 with MacOS Monterey 12.5.1, I have an external 2.5" USB hard drive that I use regularly. When done using it, naturally I eject the volume by dragging it to Trash. This unmounts the volume but the disk remains physically spinning. Since this drive is powered by USB, when I then unplug the USB cable, it loses power while still spinning.

I understand that modern drives handle this without damage, and that myths about the utter necessity of "parking" a disk are based on the hardware of 40 years ago. However, I believe I have read that drives are rated for a much smaller number of these "emergency" spin-downs over their lifetime, compared to power-off with the drive already spun down, and power-off retract count is a specially tracked statistic in S.M.A.R.T. data (0xAE or 0xC0). So my understanding is that, for longevity, it is still preferable to spin down the drive before unplugging. How do I do that?

GUI preferred but command line would also be okay. Under Linux I would do udisksctl power-off but that command does not exist under MacOS.

There are several questions on this site about spinning down drives when idle, and how to set the timeout, but that wouldn't really help me unless I was to wait for the timeout after unmounting.


To be clear, if possible I'd rather not change spin-down times or other behavior in general. I'm happy with the way the drive spins up and down while in use. I just want to be able to spin it down after unmounting, or immediately upon explicit request. Again, an exact equivalent of Linux udisksctl power-off would be ideal - you issue the command, the drive spins down right away, and its settings are otherwise unaffected.


The linked "duplicate", if I understand it correctly, is about spinning down a drive while keeping it mounted (so that it would automatically spin up when accessing again). Here I want to spin down a drive that has already been unmounted, and that will not be mounted again before the drive is disconnected, so I don't think this is a dupe. And in fact I did find a simple solution that is specific to that scenario (only works when unmounting the drive), so if this question is reopened I can post it as an answer.

8
  • You need to specify your hard drive model. Most drives have a automatic head parking and spin down. But times are model dependent. I don't think there is any way to alter these values with macOS or to force a spin down.
    – Gilby
    Aug 24, 2022 at 5:18
  • Why drag to the trash? I select the drive / usb and cnd+E does eject.
    – Solar Mike
    Aug 24, 2022 at 7:12
  • 1
    @SolarMike - drag to Trash has been 'Eject' since the first Macs with floppy drives. It's only been Cmd/E since OS X, prior to that it was Cmd/Y, for 'Put Away'. Some of us have been using Macs a long time ;))
    – Tetsujin
    Aug 24, 2022 at 7:33
  • @Tetsujin I'm sure I have my backup of system 7 around... not that I will use it. And used it as an emulated machine on an Atari 1040ST - which I did my final year project on.
    – Solar Mike
    Aug 24, 2022 at 7:35
  • @SolarMike: Yeah, I'm showing age here. I just got this Mac recently, and otherwise haven't really used Macs at all since the early '90s, so much of what I do is based on vague memories... Good to know about Cmd/E, though, so thanks. Aug 24, 2022 at 12:48

2 Answers 2

1

I did eventually stumble on a way to accomplish this. (Now on Ventura 13.4.)

Open the Disk Utility application and from the menu, select View : Show All Devices (⌘ Command 2). In the sidebar under External, in addition to your volume(s), you should now see a top-level item for the drive itself, with a name like "WD My Passport 1234" (i.e. something set by the hardware, not a volume name that you created). Click the Eject icon next to this entry. It will unmount and eject all volumes contained in this drive, assuming they are not in use, and then it should spin down the drive.

It would be interesting to know if there is a command-line equivalent.

1
  • It’s no longer necessary to spin down a drive or park heads. Engineers have accounted for hot plugging drives for decades now. To eject from the command line issue the command diskutil eject <mount>|<device>
    – Allan
    May 29 at 12:19
0

The spinning of hard disks can be altered in System Preferences.

Choose the Energy Saver pane.

In that there is an option "Put hard disks to sleep when possible" and check that on.

Energy Saver Pane

2
  • Well, I don't particularly want to spin it down at every possible time. Only on request, after I have unmounted it and am ready to unplug. I suppose I could umount the drive, turn this option on, wait for it to sleep (not clear how long that would take), disconnect it, and turn the option back off, but that's pretty awkward. Aug 24, 2022 at 12:43
  • Nonetheless, I'll try this and see if it works for me - maybe I can live with some extra spin-downs in exchange for desired behavior. So thanks for the suggestion. Aug 24, 2022 at 13:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .