Hi,
As some may now be aware MacOSX very rudely moves your bootstrap
partition after its own rendering GNU/Linux unbootable by default
OpenFirmware settings.
Fortunately the fix is quite simple, once you boot back into GNU/Linux
(you will probably have to enter OpenFirmware and do this yourself
guessing the new partition number for your yaboot bootstrap)
run mac-fdisk on your disk and print the table with the `p' command,
this will show you where your bootstrap partition is, then enter the
`r' command, enter the partition number of your bootstrap partition as
appears in the printed table. next enter 2 to move it back where it
belongs at the beginning of the disk. (or immediatly after any driver
partitions, but before any MacOSX or MacOS partitions)
here is a transcript:
[root@socrates /root]# mac-fdisk /dev/sda
Command (? for help): p
/dev/sda
# type name length base ( size ) system
/dev/sda1 Apple_partition_map Apple 63 @ 1 ( 31.5k) Partition map
/dev/sda2 Apple_Boot MacOSX_Bootstrap 16384 @ 64 ( 8.0M) Unknown
/dev/sda3 Apple_Second MacOSX_Second_stage 2048 @ 16448 ( 1.0M) Unknown
/dev/sda4 Apple_HFS MacOS9 102400 @ 18496 ( 50.0M) HFS
/dev/sda5 Apple_UFS MacOSX 112640 @ 120896 ( 55.0M) Unknown
/dev/sda6 Apple_Bootstrap bootstrap 1600 @ 233536 (800.0k) Unknown
/dev/sda7 Apple_UNIX_SVR2 GNU/Linux 293672 @ 235136 (143.4M) Linux native
Block size=512, Number of Blocks=528808
DeviceType=0x0, DeviceId=0x0
Command (? for help): r
Partition number: 6
New number: 2
Command (? for help): p
/dev/sda
# type name length base ( size ) system
/dev/sda1 Apple_partition_map Apple 63 @ 1 ( 31.5k) Partition map
/dev/sda2 Apple_Bootstrap bootstrap 1600 @ 233536 (800.0k) Unknown
/dev/sda3 Apple_Boot MacOSX_Bootstrap 16384 @ 64 ( 8.0M) Unknown
/dev/sda4 Apple_Second MacOSX_Second_stage 2048 @ 16448 ( 1.0M) Unknown
/dev/sda5 Apple_HFS MacOS9 102400 @ 18496 ( 50.0M) HFS
/dev/sda6 Apple_UFS MacOSX 112640 @ 120896 ( 55.0M) Unknown
/dev/sda7 Apple_UNIX_SVR2 GNU/Linux 293672 @ 235136 (143.4M) Linux native
Block size=512, Number of Blocks=528808
DeviceType=0x0, DeviceId=0x0
Command (? for help): w
Writing the map destroys what was there before. Is that okay? [n/y]: y
The partition table has been altered!
SCSI device sda: hdwr sector= 512 bytes. Sectors= 528808 [258 MB] [0.3 GB]
sda: sda1 sda2 sda3 sda4 sda5 sda6 sda7
SCSI device sda: hdwr sector= 512 bytes. Sectors= 528808 [258 MB] [0.3 GB]
sda: sda1 sda2 sda3 sda4 sda5 sda6 sda7
Command (? for help): q
[root@socrates /root]#
--
Ethan Benson
http://www.alaska.net/~erbenson/
Attachment:
pgp3D83dnliyR.pgp
Description: PGP signature