I know there are a couple of more Slackware users here so I share what I
learned earlier this week about recovering from a borked kernel upgrade
using the Slackware distribution DVD (or CD).

   Before heading for a client meeting I ran slackpkg to upgrade all the
patched packages on my portable running Slackware64-13.37. The kernel
packages were upgraded, too, and (being in a hurry and distracted) I let the
pkgtools script upgrade the kernel packages. Needless to write, the system
would not boot during my meeting with my client. We were able to use his
copy of the report so that worked OK.

   What I learned to do to fix the problem via Slackware is to boot with the
installation DVD (in my case because it has both 32- and 64-bit versions on
the two sides) and log in as root. Once logged in I did

mkdir /foo
mount --bind /proc /foo/proc
mount --bind /sys /foo/sys
mount --bind /dev /foo/dev
mount /dev/sda2 /foo/boot (because my /boot partition is on sda2 and / is on
                                sda1)
chroot /foo

   Then, after cd'ing to /boot I saw the soft links for System.map, config,
and vmlinuz were incorrect and did not match /etc/lilo.conf so I rebuilt the
soft links, re-ran mkinitrd, and corrected /etc/lilo.conf with the proper
images and labels. Then I ran /sbin/lilo, rebooted, and all was well again.

   Whew! And no need for any knoppix or ubuntu rescue disk. Perhaps this
approach works for other distributions, too.

Rich
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to