dual boot for two distro in lilo menu - it should be easy but doesn't work
sorry, I don't understand yet what is missing in my lilo.conf (SuSE in /dev/hda6) to make my option "slackware" bootable. Slackware is in /dev/hda10 and the option "linux" (for SuSE) is booting. I can boot slackware with the cd-rom and entering: $bare.i root=/dev/hda10 noinitrd ro If I can boot with CD-ROM, so there is nothing wrong with the slackware partition. So, how could I make it bootable too, via boot menu of SuSE? Thanks for any help a. To understand my situation take a look at: http://lists.suse.com/archive/suse-linux-e/2004-May/2581.html
On Wednesday 19 May 2004 20.28, Adagilson Batista Bispo da Silva wrote:
sorry, I don't understand yet what is missing in my lilo.conf (SuSE in /dev/hda6) to make my option "slackware" bootable. Slackware is in /dev/hda10 and the option "linux" (for SuSE) is booting. I can boot slackware with the cd-rom and entering: $bare.i root=/dev/hda10 noinitrd ro If I can boot with CD-ROM, so there is nothing wrong with the slackware partition. So, how could I make it bootable too, via boot menu of SuSE? Thanks for any help a. To understand my situation take a look at: http://lists.suse.com/archive/suse-linux-e/2004-May/2581.html
Basically, there are two ways of doing it. You can either use lilo from slackware, and set suse's lilo to use it as a chainloader, or you can mount your slackware partition from suse, and put the slackware kernel in suse's lilo so you boot it directly. In other words, if you do it the way you have it in your suse lilo right now, you need to have slackware's partition mounted when you run /sbin/lilo in suse. You probably also want to set the image to point to the slackware kernel in /mnt/slackware/boot/ (or wherever you mount it) The other way would be to do something like "other=/dev/hda10". It should work but I'm not 100% sure of the syntax
On Wednesday 19 May 2004 7:28 pm, Adagilson Batista Bispo da Silva wrote:
sorry, I don't understand yet what is missing in my lilo.conf (SuSE in /dev/hda6) to make my option "slackware" bootable. Slackware is in /dev/hda10 and the option "linux" (for SuSE) is booting. I can boot slackware with the cd-rom and entering: $bare.i root=/dev/hda10 noinitrd ro If I can boot with CD-ROM, so there is nothing wrong with the slackware partition. So, how could I make it bootable too, via boot menu of SuSE? Thanks for any help a. To understand my situation take a look at: http://lists.suse.com/archive/suse-linux-e/2004-May/2581.html
I hve not looked at this in great detail, but one thing does strike me from your 2 lilo.conf files included in the list archive URL. That is that there are 2 of them. You need to decide which one you are going to make work, either SUSE or Slackware and stick with that one. It is possible to have both running together, I have GRUB and LILO here. But you must be clear about which one is booted by the BIOS. In my case GRUB is booted by the BIOS and the LILO bootsector is a file on my /boot dir, referenced by GRUB. In your case, I recommend you work only with the SUSE LILO, to get a working config and when you succeed, you can try making the Slackware LILO co-operate with the SUSE LILO if you need to or want to experiment. So assuming that you will work with the SUSE LILO, you must refer to everything as seen by SUSE, even the Slackware. For example your SUSE lilo.conf includes: image = /boot/vmlinuz label = linux append = "hdc=ide-scsi" initrd = /boot/initrd root = /dev/hda6 vga = 788 image = /boot/vmlinuz label = slackware root = /dev/hda10 vga = normal read-only image = /boot/vmlinuz.suse label = failsafe append = "ide=nodma apm=off acpi=off hdc=ide-scsi" initrd = /boot/initrd.suse optional root = /dev/hda6 vga = 788 which says these things: 1] Your SUSE partition is /hda6 and slackware is /hda10 2] Your main SUSE kernel is /boot/vmlinuz and initrd is /boot/initrd as seen by SUSE 3] Your failsafe SUSE kernel is /boot/vmlinuz.suse and initrd is /boot/ initrd.suse as seen by SUSE 4] Your Slackware kernel is your main SUSE kernel with no initrd You may have reason to boot Slackware with a SUSE kernel, but if SUSE requires the initrd, so would Slackware. More likely, you want to run Slackware with its own kernel. If this is the case, you must mount the partition with the Slackware kernel in SUSE and give the path to the kernel as SUSE sees it in lilo.conf, before running LILO in SUSE. hth Vince Littler
Thanks for replying, Vince! I prefer SuSE LILO and, as I said, it have been edited to put "slackware" as another option in /etc/lilo.conf (SuSE). Vince Littler escreveu:
On Wednesday 19 May 2004 7:28 pm, Adagilson Batista Bispo da Silva wrote:
sorry, I don't understand yet what is missing in my lilo.conf (SuSE in /dev/hda6) to make my option "slackware" bootable. Slackware is in /dev/hda10 and the option "linux" (for SuSE) is booting. I can boot slackware with the cd-rom and entering: $bare.i root=/dev/hda10 noinitrd ro If I can boot with CD-ROM, so there is nothing wrong with the slackware partition. So, how could I make it bootable too, via boot menu of SuSE? Thanks for any help a. To understand my situation take a look at: http://lists.suse.com/archive/suse-linux-e/2004-May/2581.html
[...] So assuming that you will work with the SUSE LILO, you must refer to everything as seen by SUSE, even the Slackware. For example your SUSE lilo.conf includes:
image = /boot/vmlinuz label = linux append = "hdc=ide-scsi" initrd = /boot/initrd root = /dev/hda6 vga = 788
image = /boot/vmlinuz label = slackware root = /dev/hda10 vga = normal read-only
image = /boot/vmlinuz.suse label = failsafe append = "ide=nodma apm=off acpi=off hdc=ide-scsi" initrd = /boot/initrd.suse optional root = /dev/hda6 vga = 788
which says these things:
1] Your SUSE partition is /hda6 and slackware is /hda10
2] Your main SUSE kernel is /boot/vmlinuz and initrd is /boot/initrd as seen by SUSE
3] Your failsafe SUSE kernel is /boot/vmlinuz.suse and initrd is /boot/ initrd.suse as seen by SUSE
4] Your Slackware kernel is your main SUSE kernel with no initrd
You may have reason to boot Slackware with a SUSE kernel, but if SUSE requires the initrd, so would Slackware. More likely, you want to run Slackware with its own kernel. If this is the case, you must mount the partition with the Slackware kernel in SUSE and give the path to the kernel as SUSE sees it in lilo.conf, before running LILO in SUSE.
Checking lilo.conf (SLACK) build by Slackware itself, I can't see none initrd. Booting with CD-ROM the kernel bare.i works fine to me. I just have to enter manually: bare.i root=/dev/hda10 noinitrd ro (IMHO, it seems that it doesn't use initrd. Isn't it?!) Trying to boot via SuSE LILO menu (option slackware) this error is appearing: Boot: /dev/hda10, loader /boot/chain.b Fatal: First sector of /dev/hda10 doesn't have a valid boot signature or yet Kernel panic: VFS: unable to mount boot FS on 03:10a Some more ideas? [], a.
participants (3)
-
Adagilson Batista Bispo da Silva
-
Anders Johansson
-
Vince Littler