Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Change the boot disk from the terminal System
[Editor's note: See the comments for a discussion and link for more info on this topic.]

Does anybody know what exactly happens when I change the boot drive using the System Disk utility? Is there any way to make the same changes on the OSX command line?
    •    
  • Currently 1.71 / 5
  You rated: 2 / 5 (7 votes cast)
 
[8,294 views]  

Change the boot disk from the terminal | 4 comments | Create New Account
Click here to return to the 'Change the boot disk from the terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Here's how
Authored by: Anonymous on Mar 16, '01 06:23:53PM
Here is a link to a thread at macosx.com where I give an extremely detailed explanation of how to set up a CLI script to switch startup disks.

I'll just give the hilights here:

Switch the system disk control panel to boot into OS 9.
From the terminal, run nvram -p > OS9
This dumps the nvram (pram to some) settings into a file called OS9.
Switch to OS X booting with system disk, then repeat the nvram dump into a different file.
Use the diff command to inspect the differences between them.
You will see that a specific value of a specific boot-variable neets to be changed to get the machine to boot one way or another (differs from machine to machine). You can then use the nvram command to set this boot-variable to the proper setting, or script this.

Everything is explained in a lot more detail in the link I give at the top.

Zach

[ Reply to This | # ]
good hint!
Authored by: Anonymous on Mar 16, '01 07:44:27PM

(This will be very helpfull, when I can start the System Disk utility again.
At this moment my OSX System is freezing after succesfull login. And I have no bootable CD)

It looks that nvram -p shows the same information like printenv
after booting in OpenFirmware (command + option + o + f) does.

Somebody tried
"setenv boot-device ultra0:\\tbxi"
on the OpenFirmware prompt to boot OS9

but this does not work for me.

It looks like the syntax has changed because my boot-device
is set to "hd:,\\:tbxi"

What is the right setting to boot OS9? (on an iBook)



[ Reply to This | # ]
system disk freeze
Authored by: Anonymous on Mar 18, '01 03:56:25PM

Try running the OS X disk utility, and if that doesn't find anything, try booting into 9 from a CD and running the disk utility there -- or better yet, norton (the new version that doesn't muck up OS X stuff!) or techtool.

Basically, OS X seems to foccasionally ark up some of the drive's data about itself (beta problem, definitely) and this makes the system disk control pane (in OS X) crash. By fixing the problem, you can get system disk to work again.

HTH,
Zach



[ Reply to This | # ]
boot 0S IX
Authored by: Anonymous on Mar 24, '01 09:17:01AM

For OS9 on my Powerbook it's:

setenv boot-device /AAPL,ROM
setenv boot-command boot

but this different on other machines. Open the System Disk Control Panel (the OS9 one) and Option-Double-Click a device to see it's commands.



[ Reply to This | # ]