Re: /sbin/macos ...self-destruct mechanism?


Subject: Re: /sbin/macos ...self-destruct mechanism?
From: Timothy A. Seufert (tas@mindspring.com)
Date: Sun Nov 11 2001 - 03:34:32 MST


At 11:11 PM -0500 11/10/01, Bill Fink wrote:
>On Sat Nov 10 2001, Timothy A. Seufert wrote:
>
>> setenv boot-device hd:N,ofboot.b
>>
>> where N is the partition number of your Linux bootstrap partition.
>> Note that OF uses hexadecimal, so if the number is 10 or higher, you
>> need to use 'a' 'b' 'c' etc. instead of '10' '11' '12' etc. for N.
>
>Ummm, I was with you until the above. My boot partition is on hda13,
>and my boot-device is "hd:13,\\:tbxi" (I'm on a dual 500 MHz G4).

Hmmm. All I can say is that I've experienced having to use
hexadecimal. I *think* it was on a PowerBook 2400 I was trying to
get quik running on. Even though I can't remember the machine
exactly, I'm sure the event happened, because it was one of those
classic "forehead slap" moments: after a couple hours of pounding my
head against the wall I finally realized I just needed to use hex.

Probably just another difference between older and newer OF versions.

>BTW, I used /sbin/macos last summer on an old world machine that I
>normally booted via quik, but I had a summer student that just needed
>to run MacOS, so I set up a macos login that just ran /sbin/macos
>(the version that sets the boot-device to "/AAPL,ROM"). It then
>booted using BootX which I had default to MacOS. When I wanted to
>get back into Linux, I just selected it from BootX, and once the
>system was up, I ran a script which reset the boot variables using
>nvsetenv to once again boot using quik (so I could for example reboot
>it from home and it would automatically come back up in Linux).

Well, part of my thinking was that the script was so simple that
anybody who really did want it was probably not going to be deterred
by its absence. :) It's one of those things that if you know what
it's for, you know how to replicate it in about a minute (at most).

-- 
Tim Seufert



This archive was generated by hypermail 2a24 : Sun Nov 11 2001 - 03:46:29 MST