[SOLVED] LILO fails when run from live CD after installing Slack (skipped LILO during setup)
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
LILO fails when run from live CD after installing Slack (skipped LILO during setup)
I'm receiving the following error message when running LILO under SystemRescueCD after installing Slackware 12.2 (the slackware setup hung when installing LILO so I am trying to install manually - I have re-run setup, including formatting all drives again):
FATAL: Trying to map files from unnamed device 0x0010 (NFS/Raid mirror down?)
Windows XP is installed on a RAID0 array (sda, sdb, sdc, sdd).
A SCSI (SATA card) drive is sde:
-Linux swap is on sde1
-root is on sde2 (ext3)
-a NTFS file storage is sde3
-the rest of the file system is on ext3 drives sde4, sde5, and sde6
I have given up on installing LILO on the RAID array - I have been trying to install it in the Linux partition and using windows boot loader to call it.
I have been copying lilo.conf to /etc/lilo.conf after mounting the Slackware drive.
The easiest way would be to use the install cd1 to boot the system as if you were going to install.
After you get to the login then from the cli (command line);
Code:
~#mkdir /slacktemp #temporary mount point
~#mount /dev/your_device /slacktemp #the device you installed to
~#chroot /slacktemp #change to yours
~#cd /slacktemp/etc #change to directory with lilo.conf
~#vi lilo.conf #edit lilo.conf, if need be
~#lilo -v -t -b /dev/your_device #sda, hda this will only test
~#lilo -v -b /dev/your_device #this will write to your boot device
You can 'man commands' in the above example to get a full understanding of the commands and options.
Thanks, guys - the chroot got me on to the next step.
I'll try booting from the install disk (although I'm using the DVD).
LILO now installs albeit with warning messages - "'/proc/partitions' does not exist" being the most concerning one so that probably explains why I'm now getting scrolling 01s when starting up.
I can see why Linux can be frustrating for newbies - good thing I'm doing this on a spare system ;-) but I'm doing it for a learning experience. There sure is a lot of reading required!
I've got some more ideas to try and I'll let you know how I make out.
If it is not necessary to enable RAID you may disable it at the bios setup.
LILO is a good boat loader, but if you get fed up with LILO you may try Grub. In your installer CD it is located at /extra/grub folder, you may install it. You may want to read a good tutorial from here http://www.dedoimedo.com/computers/grub.html
You can try to mount /proc with something like this.
mount -t proc none /slacktemp/proc
You might need to mkdir /slacktemp/proc before mounting it. And do this before you chroot.
Lilo is a PITA compared to grub in my opinion. I remember when switching from the old ATA to the new ATA layer caused problems for me. Because as I was setting up lilo /dev/sda* didn't exist. Forgot how I got to work. Was a combination of making a fake device and appending a few things to lilo to finally get it to boot the first time I think. On my other box that uses grub was no problems.
This is just an update on my progress for those interested - Problem is now solved.
Thanks again guys - sorry it has been so long in responding, but I haven't had much of a chance to play with it recently and I just got it working now.
I gave up on LILO (after many hours of playing - but since it was a learning exercise for me, that is OK) - I think I could get it to work now anyway after playing with GRUB (although GRUB is a pleasure compared to LILO).
The eventual solution was quite complicated - I destroyed my RAID0 array and reinstalled Windows (something I wanted to do anyway). I also moved the connectors from the RAID card (onboard) over to the IDE connectors on the motherboard (mostly for ease of Windows install without making RAID driver floppies - although it did make the GRUB install easier too).
Also, I had to create a separate boot partition in order for GRUB to see my boot directory.
Another thing throwing me off was the hard drive order changed depending on what I booted in (SystemRescueCD (Gentoo live CD), Slackware install disk/HD copy of Slack, or even Windows). I eventually used Super GRUB Disk to determine what order GRUB was seeing (it was different again) and got the right drives listed.
LILO now installs albeit with warning messages - "'/proc/partitions' does not exist"
I'm 99% sure that I saw that same error message when I run the lilo command to install lilo in the MBR, but it does not affect my installation on a HP DL380.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.