Skip to contentSkip to conversation

MacOS X and yaboot wars.

DISCUSSION Benjamin Herrenschmidt 3 participants 6 messages Sep 22, 2000 – Sep 26, 2000 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 7 lines

nah, unless macosx actually flashed a new linux hostile bootrom in place just resetting the nvram will certainly blow away whatever they did. (its possible though unlikely that they search for linux bootstrap partitions and destroy them, i suppose)

Quoted 5 lines
Quoted 2 lines

BTW, MacOS X doesn't have gcc available until November, so it isn't really worth bothering with (unless you like lots of eye candy).

eye candy eye smandy, i really quite like my 1024x768 framebuffer console ;-) (even if it is a bit slow)

Their installer does something weird, indeed. It tends to randomly make another partition of the target disk "vanish". The partition (typically, the HFS "exchange" partition people keep around) does not appear any more in the MacOS 9 Finder nor in the file selection dialogs. It still mounts in Linux and MacOS X.

Apparently, the problem seem to be related to the installer setting the "invisible" bit of the toplevel (root) directory entry of the HFS volume. The partition is actually mounted, but invisible. I "fixed" mine using Norton Disk Editor (Norton Utilities), but there might be other ways.

Ben.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#2 lore raw
Quoted 6 lines · Benjamin Herrenschmidt

Their installer does something weird, indeed. It tends to randomly make another partition of the target disk "vanish". The partition (typically, the HFS "exchange" partition people keep around) does not appear any more in the MacOS 9 Finder nor in the file selection dialogs. It still mounts in Linux and MacOS X.

another thing i thought of, does OSX still use a bootstrap partition of its own? (it must if you choose UFS instead of HFS+) perhaps its reordering the partition table to make its partition first instead of ours? this can be changed back in mac-fisk/pdisk with the `r' command. then again it could just be doing the same inspect and debless crap macos is notorious for, a rerun of ybin will fix that. (if the BSD layer remains sufficiently intact in OSX final i may see about getting ybin working from the OSX side, but that depends on whether i can get access to OSX or not)

Quoted 4 lines

Apparently, the problem seem to be related to the installer setting the "invisible" bit of the toplevel (root) directory entry of the HFS volume. The partition is actually mounted, but invisible. I "fixed" mine using Norton Disk Editor (Norton Utilities), but there might be other ways.

hmount /dev/foo
hattrib -i :
humount /dev/foo

will fix that from the linux side. though linux ignores that bit.

that is odd and disconcerting that its tampering with other partitions like that, i hope its a bug that will be removed in the next beta rather then intentional.

as for the invisible bit on the root, macos still mounts the disk, but since the root directory is invisable it does not show it anywhere. i used to do this to people's floppies as a joke ;-)

Signature · 2 lines
Ethan Benson
http://www.alaska.net/~erbenson/

A message that is not in the archive (sent off-list or not yet received): [email protected]

#4 lore raw
Quoted 6 lines · Guillaume Laures

Yes it does.
Another weird thing is that it mounts the bootstrap partition. But it doesn't unbless anything. And triple-boot works perfectly. I just had to mess around with partition # (and btw I seem to have 3 free partition disappear).

you should be able to reorder this so your bootstrap partition is first.

[snip]

Quoted 3 lines

It's a 27G disk...
May be I'll change "Apple_Bootstrap" to "Apple_Boot" ?

i wouldn't then MOSX will think that its it owns this partition and who know what it will do to it then. if its Apple_Bootstrap its less likely apple will destroy it randomly since OSX does not know what it is.

i very much doubt they reorder the partition table at every boot so using the `r' command in mac-fdisk should allow you to reorder the table so Apple_Bootstrap is first.

Signature · 2 lines
Ethan Benson
http://www.alaska.net/~erbenson/
#5 lore raw
Quoted 8 lines
Quoted 3 lines

It's a 27G disk...
May be I'll change "Apple_Bootstrap" to "Apple_Boot" ?

i wouldn't then MOSX will think that its it owns this partition and who know what it will do to it then. if its Apple_Bootstrap its less likely apple will destroy it randomly since OSX does not know what it is.

Does ybin rely on the Apple_Bootstrap type? If not, just call it any way you like to make MacOS messing with it even more unlikely.

Quoted 3 lines

i very much doubt they reorder the partition table at every boot so using the `r' command in mac-fdisk should allow you to reorder the table so Apple_Bootstrap is first.

Caution: I've found the reorder option to work in very non-obvious ways (partitions could only be moved one way IIRC). I'll have to investigate that in more detail.

Michael

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

#6 lore raw
Quoted 3 lines · Michael Schmitz

Does ybin rely on the Apple_Bootstrap type? If not, just call it any way you like to make MacOS messing with it even more unlikely.

ybin could not care less, ybin will install onto a regular file happily ;-)

what DOES care is OpenFirmware, which insists on it being Apple_Boot* Apple_Boot is used by apple so macosx will do whatever it wants whenever it wants, Apple_HFS is out since macos old will ruin it as we have all seen. Apple used to use Apple_Booter so i would avoid that too.

i think the best solution is just reorder the partitions again after installing OSX. using Apple_Boot would probably just mean your partition would be erased instead of moved which is far worse IMO.

Quoted 3 lines

Caution: I've found the reorder option to work in very non-obvious ways (partitions could only be moved one way IIRC). I'll have to investigate that in more detail.

it can be done, but yes i have not totally figured out the right syntax.

ill see if i can get Clausen to add reorder support to parted if its not already there.

Signature · 2 lines
Ethan Benson
http://www.alaska.net/~erbenson/
#7 lore raw
Quoted 4 lines

ybin could not care less, ybin will install onto a regular file happily ;-)

Quoted 8 lines

what DOES care is OpenFirmware, which insists on it being Apple_Boot* Apple_Boot is used by apple so macosx will do whatever it wants whenever it wants, Apple_HFS is out since macos old will ruin it as we have all seen. Apple used to use Apple_Booter so i would avoid that too.

i think the best solution is just reorder the partitions again after installing OSX. using Apple_Boot would probably just mean your partition would be erased instead of moved which is far worse IMO.

Well, I know Ethan doesn't like this solution, but I personally like it and feel it's ok for people who know what they are doing ;)

First, I have no bootstrap partition. I have a (around 1Gb) HFS standard partition that I use for exchanging things between Linux and MacOS. On this partition, I have yaboot, yaboot.conf, the kernels (but those could be on ext2) and the OF boot script.

All I do is to configure OF manually OF to load the script (setenv boot- device hd:10,script) and that's all.

I also have a fake System and Finder (included). Those are seen by MacOS 9.0.4 on my box as "legal" system & finder and MacOS will not unbless a fake system folder with them in it. (In fact, it will even re-bless the folder).
I _know_ that this doesn't work for all combinations of machines. It does work for me (Pismo). Basically, my setup looks like:

/Scratch (HFS exchange partition)
|
|-/Bootstrap (fake system folder)

       |-Finder (fake Finder)
       |-System (fake System, could be miBoot for oldworld)
       |-MagicBoot (OF boot script with the type/creator of
       |            a MacOS ROM file (tbxi/MACS))
       |-yaboot
       |-yaboot.conf
       |-kernels & ramdisk

Ben.