Trying to get Knoppix's grub data into Slack's lilo.conf
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
Trying to get Knoppix's grub data into Slack's lilo.conf
Heya all
OK, I have checked many relevant threads around here, have read Pat Volkerding's LILO tutorial, and read the man pages about lilo, and have now tried about half a dozen different ways of doing what I'm trying to do, with no success. I am still Gooooogling though.
I have dual boot -> Slackware 11 and WinXP. All works great, using LILO to boot either OS. Recently I also installed Knoppix 5.1.1 from the liveCD, and it's only bootloader option is GRUB, which will install to either the MBR or to the 'root partition'. Both GRUB options work fine on their own, but both also eliminate my Slackware from the boot menu. The converse is true also: If I install Slack's LILO, it erases the Knoppix from the boot menu. Also I have also tried probing the installed OS's with lilo editor, and the Knoppix OS is not found. So; My goal is to put the Knoppix/GRUB boot info into my Slack/LILO bootloader somehow. Currently I have LILO installed in the MBR.
The first obvious problems I see follows:
1. When booting Slack, I see in the dmesg that the EXT3 filesystem used by Knoppix is not recognized by Slack's 2.4.33.3 Kernal as it is currently configured. As close as I can get to loading Knoppix (which has the 2.6.19 kernel) from lilo is when the 2.4.33 Slack kernel/loader tries to load the Knoppix partition, which results in many errors and ultimately fails to mount the Knoppix partition.
2. When I boot Slack properly, it still fails to be able to read or mount the Knoppix partition.
The HD (HDA) is set up as follows:
HDA1 = WinXP
HDA5 = Slackware with 2.4.33.3
HDA6 = Knoppix 5.1 with 2.6.19
HDA7 = Swap
And here is what's in the Knoppix-made GRUB loader (which I have tried various ways to add this to the LILO file but no luck, LILO returns a whack of unhappiness:
I suspect I may need to create a INITRD.gz or .img for the LILO loader (the GRUB loader goes thru '2 stages') to tell the lilo what the heck is going on, but as I said, PV's LILO article elsewhere in this forum did not quite make that clear for me.Sorry for long-windedness, but I think ample information is better than not enough. Thanks a bunch, people
Sasha
This is somewhat of a guess but does Slackware have kernel support for the partition type that you are trying to mount? If not you will need to compile it in to the kernel (I think-I'm not a Slackware user).
I believe it is available as a module, atleast for starters. I will look into that. Once I can (If I can) get everything booting correctly, I will next be tackling a newly compiled 2.6.19 kernel for my Slackware, but that's another project which to date has provided me with errors I haven't been able to fix either. I'll look into the module anyways, thank you
SV
(1) Restore Knoppix Grub into it root partition hda6
While in Slackware, create a partition and mount Knoppix there, change root to it and restore Grub in hda6
Code:
mkdir /mnt/hda6
mount /dev/hda6 /mnt/hda6
chroot /mnt/hda6
grub-install /dev/hda6
exit
(2) Edit Lilo to boot Knoppix in hda6. Add these 2 line in /etc/lilo.conf of Slackware
Code:
other=/dev/hda6
label=Knoppix_in hda6
(3) Revalidate Lilo
Code:
lilo -b /dev/hda
optional for making Skackware chainloadable by Knoppix
Code:
lilo -b /dev/hda5
If you want to boot Slackware & XP from Knoppix (after you have done the extra line in red above, edit Knoppix's /boot/grub/menu.lst and add these lines
Code:
title Knoppix in hda6 known to Grub as (hd0,5)
root (hd0,5)
chainloader +1
title XP in hda1 known to Grub as (hd0,0)
root (hd0,0)
chainloader +1
You will find everything boots. If you have a problem of understanding the steps take a peep at the last link of my signature. Task E4 shows you how to use XP to boot the Linux too.
If you want Grub inside Slackware that is to "build Grub". Full steps are contain in Appendix A of Grub Manual. It is a 10 minutes job.
Wow, thank you so much for the vast supply of documentation here. It gives me the impression from a brief glance that GRUB is more versatile than LILO ?? Well, no matter which I use, long as I can boot any/all OS's from power-up. I will let you know how I make out/ which procedure I use.
Thanks again Saikee
Well, after reading much of the docs listed above, I ended up doing a combination of two things. Not sure if it was the 'proper' way to get the job done, but I copied the boot image and map from Slack, over to the Knoppix partition, and booted everything with the LILO which Knoppix installed.
Since then, as of 2 days ago, Ive moved lilo.conf over to the Slack partition, and am now doing it the proper way, booting Slackware (2 different kernels) from its own partition and installing LILO from the same place. All is well . BTW - as I said I was working on a kernel compile, which is now complete! I'm happy with the result (the third compile) except the bleedin' modem drivers I have won't work now. (Yes I got the ones for the new kernel, 2.6.17.3) hence the delay in my updating this thread. More work there, I dunno...
Sasha
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.