Apple Server Diagnostics - Changing the Startup Disk Using the Command-Line Interface

background image

Changing the Startup Disk Using the Command-Line Interface

If Mac OS X Server starts up by default on your server, you can use the command-line
interface to change its startup disk. You can use the command-line interface to start
up from internal volumes and connected portable storage device volumes.

You can also change the startup disk of a remote server using the command-line
interface. Remote login must be enabled on the remote server (enabled by default).
You can enable remote login in the Sharing pane of System Preferences.

When you change the startup disk using the command-line interface, you can’t select
a startup disk with Server Diagnostics EFI installed. To change the startup disk to the
volume with Server Diagnostics EFI installed, change the startup disk at startup. For
more information, see “Changing the Startup Disk Temporarily at Startup” on page 23.

22

Chapter 3

Starting Up Server Diagnostics

background image

Chapter 3

Starting Up Server Diagnostics

23

You need to be able to authenticate as the root account in order to change the startup
disk using the command-line interface.

Note: The Terminal commands described in this task are case-sensitive, and must be
entered as shown.

To change the startup disk using the command-line interface:

1

Open Terminal (located in /Applications/Utilities/).

2

If you want to connect to a remote server, enter the following in the Terminal window,

and authenticate when requested:

ssh username@serveraddress

Replace username with the short name of a user who can authenticate as the root
account on the server. Replace serveraddress with the URL, IP address, or host name
of the server.

3

Enter the following, and then authenticate as the root account:

sudo bless -folder "/Volumes/volumename/System/Library/CoreServices"

-setBoot

Replace volumename with the name of the volume you want to start up from.
When you’re done using Server Diagnostics, change the startup disk back to the
volume you were using previously.