Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
ok...so finally i come to the forum....i have been looking around for quiet some time and i havent been able to find a solution...
i have tow hard disks....on one of them i have Win XP and Knoppix installed and on the other....i just installed Slackware 9.1
Now using lilo i can boot up just fine into Slackware and XP...but i have problems booting into knoppix.
i did add something to lilo.conf in slackware but when i hit enter to that label...it does start booting up knoppix but then after a while it says kernel panic and stops doing anything at which point i have to reboot the computer.
could you please tell me what to add to lilo.conf to make this work...plz let me know if you want me to post my lilo.conf file here.
thanks
So the thing says 'Kernel Panic' and ... ? Elaborate. I'm guessing that you forgot the 'root' line in lilo.conf for knoppix:
root=/dev/[disk]
Make sure you specify the right disk for Knoppix.
In general, the main problem when you install two Linux distros is that one must have lilo installed in the MBR (the one which deals boot time), and the other must have lilo installed at the begining of its partition.
Originally posted by vnsullivan In general, the main problem when you install two Linux distros is that one must have lilo installed in the MBR (the one which deals boot time), and the other must have lilo installed at the begining of its partition.
Didn't see you installed the two distros on two different drives...
What I said is for a one HD install.
I guess there's no problem with a two disks install .
one must have lilo installed in the MBR (the one which deals boot time), and the other must have lilo installed at the begining of its partition.
Linuxes can use the same bootloader. The main problem is special features the distros may have added; the graphical splash screens other distros use may not work with Slackware's version of lilo. But Slack lilo can still boot other distros, just without the splash screen.
Another newbie. I want to make lilo boot into two linuxes plus windows. This is my setup: WindowsME - hda0 (the original OS), Mandrake 9.1 - hdb1, Fedora core 1 - hda3 (installed after Mandrake). Hda2 is a tiny partition the Fedora installer insisted on putting on hda, and is empty. Lilo will boot fine into Windows or Mandrake but hangs on booting into Fedora. Fedora boots fine from the boot diskette, but that's clunky.
I made the Fedora portion of lilo.conf by copying the entry from Linux-Mandrake to Linux-Fedora, changing the root= to hda3. I also tried doing it in Mandrake's control center. When I reboot and try to select Fedora, the Mandrake boot loader splash comes up and it tries to do Fedora but gets part-way and hangs. Once kudzu appeared and wanted me to do away with my cdrom2, at which I deleted the fedora portion of lilo.conf and rebooted into Mandrake.
How do I edit lilo.conf to boot Fedora too? What if I want to install a third linux... how do I edit lilo.conf?
You are trying to load Fedora with the Mandrake kernel. They are slightly different. You will need to find the Fedora kernel, which might be somewhere in the Fedora partitions. If the hda2 is Fedora's /boot partition, then it is in there. If there is no /boot partition, then it is in the Fedora's main partition. to use lilo for the Fedora kernel, you will need to mount the partition it's in (in Mandrake, as root):
mkdir /mnt/fedora
mkdir /mnt/fedoraboot for if the hda2 is /boot
mount /dev/hda2 /mnt/fedoraboot see above
mount /dev/hda3 /mnt/fedora
Now the partitions are mounted at /mnt/fedora and /mnt/fedoraboot . the path to the kernel will be (one of these):
/mnt/fedora/boot/[kernel image name]
/mnt/fedoraboot/[kernel image name]
Browse in your Fedora partitions to find the exact name. It will most likely be 'vmlinuz-[some numbers]'. Then add it to your lilo.conf:
image=/path/to/fedora/kernel
Run 'lilo' to apply changes.
You might want to consider using XP's "ntldr". Write Lilo to the root partitions on your different Linux distros and build a file with "dd if=/dev/hda/? of=/bootsect.slk bs=512 count=1" (.slk is what I use for Slackware. .deb,.mdk etc..) Copy this file to C:\ and add C:\bootsect.slk="Slackware" to your boot.ini. If you place a shortcut from your kernel image to / instead of /boot and edit your lilo.conf it will boot straight to the kernel and past the annoyance of two boot screens.
First, Allen, I don't have XP and don't plan to get it so the ntldr option won't work for me. Thanks anyway.
Next, aaa, thanks for the response. My hda2 is empty; I don't know why fedora's installer insisted on making it, but hda3 is where fedora is loaded. vmlinuz-2.4.22-1.2174.nptl is loaded in /boot of hda3. Also, I already installed /mount/fedora and can see (and push stuff into) the fedora partition from mandrake - but of course in mandrake I can't retrieve anything from fedora.
So, right now the fedora portion of my lilo.conf reads:
I'm assuming I only need to change the line reading image=/boot/vmlinuz to read image=/boot/vmlinuz-2.4.22-1.2174.nptl ???
Do I need to change anything else? For example, I notice there's no initrd.img in fedora's /boot, but there is an initrd-2.4.22-1.2174.nptl. Do I need to change that line as well?
I also want to install damnsmall linux; will I go through a similar process to get it into my mandrake lilo.conf?
I'm assuming I only need to change the line reading image=/boot/vmlinuz to read image=/boot/vmlinuz-2.4.22-1.2174.nptl ???
This is the Mandrake lilo.conf, right? To do that, you will have to copy the Fedora kernel image to the Mandrake partition. Or, you can put:
image=/mnt/fedora/boot/vmlinuz-2.4.22-1.2174.nptl
You may need the Fedora initrd, you can try with out it if you want.
It should be somewhat like this in the end:
Code:
#assumes you copied the kernel from Fedora to your Mandrake
image=/boot/vmlinuz-2.4.22-1.2174.nptl
#below, if you didn't copy and have the Fedora mounted at /mnt/fedora
#image=/mnt/fedora/boot/vmlinuz-2.4.22-1.2174.nptl
label="linux-Fedora"
root=/dev/hda3
#again, if you copied the initrd file to the Mandrake partition
initrd=/boot/initrd-2.4.22-1.2174.nptl
#for straight from fedora partition:
#initrd=/mnt/fedora/boot/initrd-2.4.22-1.2174.nptl
#here are some options, remove some if they cause trouble
#quiet - tells kernel not to spew tons of messages at boot
#devfs=mount - mounts devfs filesystem
#hdd=ide-scsi - use scsi emulation for hdd (possibly a cdrw)
#acpi=off - make sure acpi power management is off
#vga=788 - sets resolution at bootup
#read-only - mount root fs read-only (you need this)
append="quiet devfs=mount hdd=ide-scsi acpi=off"
vga=788
read-only
I guess this all adds up to telling lilo how to find the kernel and operating file in fedora starting from mandrake. I hadn't realised my lilo starts from mandrake; I thought lilo was a completely separate thing which could point to either.
One thing I don't understand the necessity of: booting in read-only mode. I notice mandrake does that and then changes to read-write, but what's the purpose?
Whooops! Eveb with yopur help so far, I'm not there yet. When I installed fedora, grub was made my bootloader. Then, I used the mandrake install cd to update and lilo was reinstalled. Later I had to reinstall fedora so grub is back in place and I'm booting mandrake from the boot floppy.
When I became root in mandrake's console, I typed "lilo" and received this message:
Warning: /etc/lilo.conf should be writable only for root
Added linux-Mandrake *
Fatal: Trying to map files from unnamed device 0x000b (NFS ?)
I tried to update mandrake again to reinstall lilo; mandrake's lilo.conf has been changed to show the new info re fedora; I became root, typed lilo, and received the same error message. Grub is still my bootloader. How do I make lilo the loader?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.