I need help configuring LILO
I installed windows xp professional on sda1. Then I installed Fedora 8 on sda5. sda2 is the /boot, sda 3 is the extended, and sda4 is the swap file.
Then I installed backtrack2 on sda6. For some reason, a complete copy of sda6 is made into sda6_1 when I view them in Konqueror. Anyhow, here is my lilo.conf boot = /dev/sda bitmap=/boot/splash.bmp prompt timeout = 20 vga = 0x317 default=WindowsXP image = /boot/vmlinuz root = /dev/sda6 initrd = /boot/splash.initrd label = Backtrack2 read-only other=/dev/sda1 label=WindowsXP other=/dev/sda2 label=Fedora I want to be able to get a menu to boot to winxp, fedora, or backtrack2. With this .conf I go straight to backtrack2 with no menu options. What should I do? Each time I installed a new OS I overwrote the MBR on dev/sda |
The first thing to do is change this line:
timeout = 20 to this: timeout = 200 The times in lilo.conf are give in tenths of a second so a timeout of 20 is actually 2 seconds. I think that is just too fast for you to get into the menu. By the time you see it, lilo times out and tries to go straight into the default, "WindowsXP", which is not properly configured if I'm not mistaken. I think your windows entry should look like this: other=/dev/sda1 label=WindowsXP table=/dev/sda instead of just: other=/dev/sda1 label=WindowsXP so just add the table=/dev/sda line per the above. Make the above changes to lilo.conf and then open a console, su to root and run: # lilo -v to write the changes to the mbr. Reboot and see if your menu entries work. |
Thanks man it's working better, just need to work out a few more kinks. Here's my lilo.conf now
boot=/dev/sda bitmap=/boot/splash.bmp prompt timeout=50 vga=0x317 default=WindowsXP image=/boot/vmlinuz root=current initrd=/boot/splash.initrd label=Backtrack2 read-only other=/dev/sda1 label=WindowsXP table=/dev/sda other=/dev/sda4 initrd=/boot/initrd-2.6.25.6-27.fc8.img label=Fedora(2.6.25.6-27.fc8) table=/dev/sda Can I change the bitmap to whatever pic I want? How do I add spaces to WindowsXP to make it Windows XP? I tried with spaces and with quotations but I get an error after running lilo -v in console Also, I'm having trouble starting Fedora, I get an error on the initrd= line. What goes there? Anything else I need? Thanks again. |
I'm having trouble getting the Fedora to boot.
It seems that sda2 is the boot partition, sda3 is the swap. sda4 is the extended and sda5 is the / partition for Fedora. Here's my lilo.conf boot=/dev/sda bitmap=/boot/splash.bmp prompt timeout=50 vga=0x317 default=WindowsXP image=/boot/vmlinuz root=current initrd=/boot/splash.initrd label=Backtrack2 read-only other=/dev/sda1 label=WindowsXP table=/dev/sda other=/dev/sda5 image=/boot/vmlinuz-2.6.25.6-27 initrd=/boot/initrd-2.6.25.6-27.fc8.img label=Fedora(2.6.25.6-27.fc8) table=/dev/sda I use Konqueror to view the partitions. For some reason sda4 isn't mounted and I can't mount it because it's an extended partition. So I did some reading and ppl say not to mount the extended partitions but to mount the logical ones. So now I take a look at sda5, the / Fedora partition. For some reason the /boot dir in sda5 is empty. Was this because when LILO overwrote the MBR it deleted grub along with all the initrd and images? So how would I boot to Fedora? Well, the lilo.conf above gives me errors saying Boot other: /dev/sda5, loader CHAIN Fatal: First sector of /dev/sda5 doesn't have a valid boot signature I also put the image and initrd from another computer with the same versions, but it doesn't work. I noticed that when I use other=/dev/sda4 for the Fedora option it says Boot other: /dev/sda4, on /dev/sda, loader CHAIN Added sda4 Boot image: /boot/vmlinuz-2.6.25.6-27 Fatal: open /boot/vmlinuz-2.6.25.6-27: No such file or directory So it seems I need to add the image and initrd to this /boot dir in sda4, but since sda4 is an extended partition, I can't mount it. What do I do? Thanks in advance. |
Here's my original lilo.conf right after I installed backtrack2
boot = /dev/sda prompt timeout = 20 bitmap=/boot/splash.bmp change-rules reset vga = 0x317 image = /boot/vmlinuz root = current initrd = /boot/splash.initrd label = bt read-only I took out reset and change-rules. What do they do exactly? I checked out examples online and none had them so that's why I took them out. Also, the first line was blank, is there a reason for the first line being blank and starting the boot=/dev/sda on the 2nd line? |
Just working with the fedora section:
other=/dev/sda5 image=/boot/vmlinuz-2.6.25.6-27 initrd=/boot/initrd-2.6.25.6-27.fc8.img label=Fedora(2.6.25.6-27.fc8) table=/dev/sda This looks like a real mess. You are mixing up chain loading concepts with standard lilo configuration methods. Basically, what you first have to determine is the path to the fedora vmlinuz and initrd.img as seen from Backtrack. To properly state that path, you need to have an entry in the Backtrack /etc/fstab for the boot partition of fedora which you indicate is sda2. Just to illustrate, let's assume that sda2 is formatted ext3 and Backtrack is to be configured to mount sda2 on /mnt/sda2. Then the fstab entry for sda2 in Backtrack would look like something like this: /dev/sda2 /mnt/sda2 ext3 defaults 1 2 Your path to the fedora vmlinuz and initrd.img from Backtrack's point of view would be through that mount point, /mnt/sda2/boot/vmlinuz-2.6.25.6-27 and /mnt/sda2/boot/initrd-2.6.25.6-27.fc8.img. Given this data, your lilo.conf entry for fedora would be: image=/mnt/sda2/boot/vmlinuz-2.6.25.6-27 root=/dev/sda5 initrd=/mnt/sda2/boot/initrd-2.6.25.6-27.fc8.img label=Fedora(2.6.25.6-27.fc8) read-only So your new lilo.conf would read after apporpriate editing and adding a little white space to make it more readable: boot=/dev/sda bitmap=/boot/splash.bmp prompt timeout=50 vga=0x317 default=WindowsXP image=/boot/vmlinuz root=current initrd=/boot/splash.initrd label=Backtrack2 read-only other=/dev/sda1 label=WindowsXP table=/dev/sda image=/mnt/sda2/boot/vmlinuz-2.6.25.6-27 root=/dev/sda5 initrd=/mnt/sda2/boot/initrd-2.6.25.6-27.fc8.img label=Fedora(2.6.25.6-27.fc8) read-only After making these edits on lilo.conf and before running lilo -v to write them to the mbr, you have to mount sda2 or lilo -v will give an error as it won't be able to find fedora's vmlinuz or initrd.img if sda2 is not mounted. |
All times are GMT -5. The time now is 09:19 PM. |