1

I have two installations of OSX (both Ventura) on my machine on two separate APFS volumes. I need to often switch between the two machines. I am only aware of the option to press and hold the power button during boot-up to be able to choose the machine I would like to boot from.

Question: Is there a shell script I can run to make my machine restart and boot from the "other" volume? Ideally, this could be transformed into an Alfred workflow.

6
  • 3
    You can try the command sudo bless -mount /Volumes/Boot_Volume -setBoot to set the startup volume then sudo reboot to restart. I don’t have this config so I can’t test and thus I didn’t write as an answer.
    – Allan
    Commented Feb 28, 2023 at 21:39
  • Rahul: Are you aware that you can select the startup disk from System Settings application? Commented Mar 1, 2023 at 0:35
  • @DavidAnderson Thanks for the reminder. Yes I am aware, but it's too many clicks. I need a "simpler and quicker" solution since I have to switch between volumes often.
    – Rahul
    Commented Mar 1, 2023 at 15:40
  • @Allan Thanks! Will test it out and share the outcome here.
    – Rahul
    Commented Mar 1, 2023 at 15:41
  • It goes to say....make sure you have a backup before doing things like this. This modifies your boot volume and even if you enter the right command, the possibility of error will always be there.
    – Allan
    Commented Mar 1, 2023 at 15:46

1 Answer 1

1

I used the command suggested in comments and it worked.

sudo bless -mount /Volumes/Boot_Volume -setBoot

From there I can create a Bash/Zsh script, function or alias that I can call that will set my boot volume quickly.

You must log in to answer this question.

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