[SOLVED] Lilo not booting slackware correctly. Errors listed inside.
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Actually lilo hasn't actually caused any problems. The problem is that it cannot find the kernel on the specified hard drive. This can be for a variety of reasons including pointing to the wrong kernel, pointing to the wrong partition or not having the drivers for the file system available in the kernel modules.
If you have lilo installed you will have a lilo.conf file in /etc in order to fix the problem we need to be able to see that file.
If you are running Slackware-13.0 the run lilo from the command line as root. If you are running Slackware-current Change hda1 and hda2 to sda1 and sda2 then re-run lilo.
If you are running Slackware-13.0 the run lilo from the command line as root. If you are running Slackware-current Change hda1 and hda2 to sda1 and sda2 then re-run lilo.
Post the results.
samac
You know... doing to sda could work since I'm using current. How do you delete the entries? I do backspace and it doesn't work but I can add words myself.
OK ls -al /mnt/boot. It looks like you have somehow moved your /boot directory onto /mnt/boot and I don't think lilo will follow a symbolic link. We need to re-populate your /boot directory. It should be fairly easy but we need to find out if the files are in /mnt/boot first.
vi has shown me
image = /boot/vmlinuz
label = Linux
root = /dev/hda2
so it is pointing to the right direction. also to the people saying that i actually typed in mounting on device i didn't, i did it correct lol.
I think that the error is root= /dev/hda2
it must be root= /dev/sda2.
you can boot with installer cd or dvd, then mount /dev/sda2 /mnt/disk and chroot /mnt/disk, after edit etc/lilo.conf and change hda2 for sda2, and execute # lilo command.
If your booting from the cd you should remount your /dev/hda2 on /mnt/slacktemp.
Code:
mkdir /slacktemp
mount /dev/hda2 /slacktemp
cd /slacktemp
mkdir -p dev proc sys
mount --bind /dev dev
mount --bind /proc proc
mount --bind /sys sys
chroot .
then check ls -al /boot.
just in case it wasn`t mounted.
Actually I think there is a menu style(ncurses) config utility for lilo you could run liloconfig
Okay I just reinstalled the A packages off my cd. It boots up fine. Now I just need to remember what my login and password was but that's a personal thing I could figured out. Problem solved for now... Thanks samac for helping me along this whole way. I actually learned a lot from this experience.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.