-   Slackware (
-   -   Forgot to run /sbin/lilo (

justin_p 08-26-2004 06:23 AM

Forgot to run /sbin/lilo
Lastnight, after deciding to drop DLG because it didn't like it to my box and how it slowed me, I re-installed Slack 10 and went with KDE as my desktop. I went to KDE changed things around to my liking. Downloaded some packages, namely NVIDIA and OO.o. I installed the 2.6.7 kernel per pat's instructions. I reconfigured /etc/lilo.conf to have tht 2.6.7 kernel be the main option. But before re-booting i forgot to run "/sbin/lilo". So once i restarted it gets to the lilo screen and then Loading vmlinuz.......then nothing. Clearly this has to with the disconnect between the lilo configuration and the config file. So I booted up System Rescue CD (and no, I did not make a boot disk) and was able to mount my root partition but I could not execute the /sbin/lilo command. Ok, Is there a way to get into that partition and run the command to fix this mess. Thanks in advance.

garfield81 08-26-2004 06:37 AM

after you boot a linux-CD (e.g. KNOPPIX or GENTOO) you should change your root-environment with the chroot-command (sorry, don't know the exact syntax) and you must not forget to change your /bin/bash from the one of the boot-disk to yout orignal one


jimdaworm 08-26-2004 06:39 AM

Hey justin_p if updating lilo is all you need to do. You first have to mount the partition to an existing directory, or make one.


(My partition would be hda2) as root do somthing like this:
mount -t reiserfs /dev/hda2 /mnt/slack


chroot /mnt/slack
then run lilo like normal and reboot

hope this helps.

justin_p 08-26-2004 06:53 AM

you guys rock.

All times are GMT -5. The time now is 04:56 PM.