how-to properly edit lilo to boot 2nd linux partition
Hi. Currently lilo.conf (relevant parts) looks like this:
Code:
append=" vt.default_utf8=0" But while trying the above, in code tags, ubuntu started to boot without a gui, the screen flickered at the login prompt. There were 2 errors, or failures: something to do with "/sbin/mount.ntfs" failing to load, and the nvidia kernel module failing. It froze while displaying a low-resolution warning about not being able to load the nvidia driver. I have to either use the case's power button to shut down & restart, or Ctrl+Alt+Del before the low-res warning pops up. Here's fstab: Code:
/dev/sda2 swap swap defaults 0 0 Thanks for your time. ***** EDIT: Regarding ubuntu entry. I read this post https://www.linuxquestions.org/quest...o-lilo-140452/ and thought I should change a couple things. I changed the 1st line to "image = /ubuntu/boot/vmlinuz-2.6.27-9-generic" & added "initrd = /ubuntu/boot/initrd.img-2.6.27-9-generic" below the 'label' line, but running /sbin/lilo gave me this warning: Code:
Added Slackware * Thanks. |
IIRC Ubuntu uses an initrd so you have to have an initrd line in its lilo entry for starters. Note, slack doesn't use an initrd by default, ulike most other distros. The ubuntu entry should look something like:
Code:
image = /ubuntu/boot/vmlinuz # ls -l /ubuntu/boot/ |
Hi agrestic,
What is happening is that you are telling lilo to boot the buntu partition (/dev/sda3) using the Slackware kernel image which is /boot/vmlinuz at the time you run /sbin/lilo. When you run lilo it translates the kernel image location into an absolute device independent location on the drive, because at boot time there is no such thing as /boot/vmlinuz and lilo has no knowledge of any filesystem. So, you must use a path to the actual kernel image that lilo can find when you run /sbin/lilo, NOT when it is booting. One way to do this, assuming the buntu kernel is on /dev/sda3 at /boot/vmlinuz and that you are running lilo while booted into Slackware on /dev/sda1, is to mount /dev/sda3 at some location like /mnt/tmp, then use the following lines in lilo.conf: Code:
image = /mnt/tmp/boot/vmlinuz Please note that this also assumes that buntu assigns the same partition order as Slackware, should not normally be a problem but be aware of it. This should get you going quickly, but a better way would be to chain boot into buntu. To do that you would need to be able to boot into buntu and install it's own lilo to /dev/sda3 root partition, then add this to the Slackware lilo.conf: Code:
other = /dev/sda3 |
Quote:
|
Quote:
Changing the kernel path as you wrote in your EDIT does what I was suggesting in the first method of my own post. As for the initrd thing, that would be naturally 'avoided' by the chain boot method as buntu would use it's own setup as normal but would simply place them in the boot sector of it's own root partition instead of the MBR, so it would see no problems. That is why I like chain booting - each Linux manages it's own boot record install except the first which manages the MBR. But whatever works best for you! |
Quote:
Code:
$ mount -o bind /ubuntu /mnt/tmp Quote:
|
Jahahaha! Wunderbar! I didn't even have to see that ugly ubuntu start-up graphic -- straight to the desktop. :D Thanks again! Now to install LILO.
|
Quote:
[EDIT] Just to be complete, when you are booted into buntu and ready to install it's boot record to it's own root partition, just edit it's lilo.conf and change... Code:
boot = /dev/sda [/EDIT] |
Quote:
Code:
Warning: LBA32 addressing assumed |
Quote:
I am not a buntu user but it should have something like liloconfig or probably a GUI tool for generating an initial lilo.conf - or you can write one yourself very easily... just be sure not to install to MBR or you will wipe your Slackware boot record... but easy enough to recover as you can see now Have fun! |
Yeah, they use grub by default. I just used parts of the slackware lilo.conf, made sure (like you said) that boot = /dev/sda3. You're right about liloconfig; however, i couldn't use it b/c my fstab is still showing sda1 as windoze instead of slackware. I replaced XP a few hours ago cause my game Oblivion kept crashing. That's ok though; Oblivion runs under wine. :D
Anyhow, /sbin/lilo in ubuntu gave me that RAM warning; but when I updated slack's lilo.conf like you said it gave no more warnings. Now I have what I wanted and learned a little about chainloading and bootloaders in the process; so I'm feelin' fat and happy. :) Thanks again. |
Quote:
FWIW, with the other = /dev/sda3 line in your Slackware lilo.conf, installed to the MBR, it really doesn't care what is installed on /dev/sda3 as long as it has a boot record. Consequently, you can install grub to the root partition from buntu and still happily boot to buntu from grub chained from the lilo MBR. But it won't help with the weight problem, I've tried... ;) |
Quote:
|
All times are GMT -5. The time now is 08:57 PM. |