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


Good! | 14 comments | Create New Account
Click here to return to the 'Good!' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Good!
Authored by: maclaw on Mar 03, '02 12:56:52AM

Not a real answer to your question, but a possible lead...

I know that the command "nvram -p" will show a list of all currently defined variables in the NVRAM. Among these is the variable "boot-device" though I haven't identified whether something about its value as a string should tell you which system folder, or partition, you are booting from. Seems it should. I rarely use the bless command but perhaps checking before and after using "bless -folder9' and then before and after switching back with "bless -folder" will show an indentifiable trend in the NVRAM settings. Make sure you are setting the command in Openfirmware (e.g. -setOF) if you are going to try.



[ Reply to This | # ]
Getting startup folder with bless
Authored by: jlowrey on Mar 03, '02 01:48:47PM

I found this to work:

bless -info /



[ Reply to This | # ]
Getting startup folder with bless
Authored by: zs on Mar 03, '02 11:32:16PM

jlowrey: bless -info / seems to spit out the same info regardless of which folder is blessed. I have OS 9 on a separate partition, so I'm wondering if this just works if it is blessed on the same partition.

maclaw: the boot device listed after an nvram -p just changes the number after "@0:" when switching startup disks. I don't think I want to dig into that too much right now. Interesting none the less.

I guess this just means I'll have a script that doesn't select the currently blessed system folder by default. I'll have the script posted in the forums site as soon as I'm finished.

Thank you both for your responses. Digging into the system proves to be fun and interesting!

zs



[ Reply to This | # ]
Getting startup folder with bless
Authored by: maclaw on Mar 04, '02 02:06:34AM

For me, bless -info / distinguishes between OS 9 and OS X by giving the full path to the System. Also, it is necessary to identify both the OS X startup system and the classic folder you want or Classic may not work when switching back to OS X.

Anyhow, I posted my final (for now) version of a script that both reports which system you are currently set to boot into and also offers you button choices for the system that you want (with the default button being the opposite of how you are currently set to boot). It could certainly be expanded for more complex setups, but, to conserve space, the version I posted gives only two options (one for OS 9 and one for OS X).

Others have contributed their own variations in the same forum thread. Pick the one that works for you!



[ Reply to This | # ]