(Answer) (Category) Linux on PowerPC FAQ-O-Matic : (Category) Booting Trouble :
I hosed my kernel! Help!
Even though this is a pain, it's not fatal. Here's what you need to do.

1) From the Mac OS: download the installer files from

 ftp://ftp.mklinux.apple.com/pub/pre-DR3/mach_servers
Put them on the root level of your Mac OS drive. Also download the mklinux_server rpm from /pub/DR3/RedHat/RPMS/.

2) Set your lilo.conf (from the MkLinux control panel) to your MacOS drive (in my case, /dev/sda6).

3) Restart and boot into MkLinux. Hit OK a few times, then make sure you say you're installing from a local hard drive.

4) You will then be asked if you're installing for the first time or upgrading an existing installation. Ignore this. Press Cmd-F2.

5) You are now at a screen that has a "#" in the top left corner. Welcome to a very limited and screwed up RAM disk.

6) Now for the fun part. "mkdir /mnt"

7) Mount your Linux partition as /mnt. In my case, "mount /dev/sda6 /mnt".

8) "cd /mnt". "chroot . /bin/bash". "chroot" convinces your system that the directory you specify (in this case, / mnt) is really the root ("/") directory.

9) Mount your Mac OS parition on /mnt (which is really /mnt/mnt). In my case, "mount /dev/sda6 /mnt"

10) Copy the mklinux_servers from /mnt to /tmp and unmount your Mac OS drive. "cp /mnt/mklinux_server-DR3alpha-1.ppc.rpm /tmp; umount /mnt"

11) Install the kernel: "rpm -i --force /tmp/mklinux_server-DR3alpha-1.ppc.rpm"

12) Set the permissions for mach_init. "chmod 755 /mach_servers/mach_init"

13) "exit" This takes you out to your pre-chroot RAM disk.

14) "umount /mnt" That's important. If you don't do that, your changes (installation, permissions) probably won't be saved and you won't have fixed anything.

15) Reboot (Ctrl-Cmd-Delete) into the Mac OS. Change lilo.conf to point to your Linux partition. Reboot and you should be OK.

hollis@andrew.cmu.edu

[Append to This Answer]
Previous: (Answer) Linux used to boot but won't anymore
Next: (Answer) Same external SCSI drive, several different machines?
This document is: http://www.jonh.net/cgi-bin/lppcfom/fom?file=441
[Search] [Appearance]
This is a Faq-O-Matic 2.718d.
Hosted by anduin.org and SourceForge Logo