0

I have a headless Mac (OS X 10.13.6) on my LAN which sometimes reboots, and when it does, it occasionally boots off the wrong internal disk. I want to be able to check periodically, from my other machine, via a script, what boot disk a given host is using (and fire off a notification email when that happens). Is there a command (perhaps related to Apple Remote Desktop or some profiling function) that can let me ask another local machine what its boot drive currently is? I have full admin privileges on both machines.

2
  • Do the volumes have different names? If so, you can use stat -f '%Y %N' /Volumes/* | sed -n 's@^/ /Volumes/@@p' to get the name of the startup volume. But first I'd spend some time trying to figure out why it doesn't always boot from the same volume. Is it properly selected in System Preferences -> Startup Disk? Is the selected disk sometimes taking a long time to start up (& maybe getting ready to fail) or something? – Gordon Davisson Feb 7 at 0:22
  • very helpful, thank you. Web page is not letting my simply up-vote for some reason. – Mike Levin Feb 7 at 11:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.