Change a remote computer’s startup disk using Terminal on Mac
You can change a remote computer’s startup disk using SSH and the systemsetup
command. The following examples show some ways to get information about the remote computer’s startup disk and change it, but for complete information, see the ssh man page and the systemsetup man page.
Determine available startup disks
In the Terminal app on your Mac, log in to the remote computer using SSH, then enter:
% sudo systemsetup -liststartupdisks
Display current startup disk
In the Terminal app on your Mac, log in to the remote computer using SSH, then enter:
% sudo systemsetup -getstartupdisk
Change the startup disk
In the Terminal app on your Mac, log in to the remote computer using SSH, then enter:
% sudo systemsetup -setstartupdisk path
Replace path with the path to an available startup disk on the remote computer. If a startup disk name contains spaces or other special characters, you may need to precede each with the backslash escape “\” character.