LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 01-12-2007, 06:07 PM   #1
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
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

Here is the stuff from Slack's LILO.Conf

boot="/dev/hda"
lba32
prompt
timeout="1200"
vga="773"
root=/dev/hda5

image="/boot/vmlinuz"
label="LinSW11"
root="/dev/hda5"
read-only

other=/dev/hda1
label="WinXP"

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:

Root (hd0,5)
kernel /boot/vmlinuz Root=/dev/hda6 rw Ramdisk_size=100000 init=/etc->
initrd /boot /initrd.img
savedefault
boot


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
 
Old 01-12-2007, 06:17 PM   #2
xjlittle
Member
 
Registered: Aug 2003
Location: Indiana
Distribution: fc6 sles9 & 10 kubuntu ubuntu-server
Posts: 240
Blog Entries: 2

Rep: Reputation: 30
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).
 
Old 01-12-2007, 06:25 PM   #3
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Original Poster
Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
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
 
Old 01-12-2007, 06:32 PM   #4
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
Here is an easy way

(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.

Happy booting!

Last edited by saikee; 01-12-2007 at 06:38 PM.
 
Old 01-12-2007, 06:47 PM   #5
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Original Poster
Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
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
 
Old 01-12-2007, 06:55 PM   #6
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
Grub is about 3 to 5 times easier than Lilo.

Lilo can boot 27 images maximum.

I don't know the limit of Grub but it is still hungry after I have fed 145 systems to it(in my link).

Also I haven't find a PC system that Grub cannot boot.

Grub can be used without attached to an operating system.

Grub can be booted by any MS system too if installed in a primary data-only partition.

Grub can boot any PC system from a floppy or a CD

Grub can be installed and ready prior to the operating system is installed

Grub needs no revalidation as Lilo does.

Grub can boot every PC system (Dos, Windows, Linux, BSD, Solaris, Darwinx86) with the "same" set of 3 commands I already shown in Post #4
.
.

That is why I said booting in Linux is child play.

Last edited by saikee; 01-12-2007 at 07:00 PM.
 
Old 01-22-2007, 08:48 PM   #7
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Original Poster
Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is lilo.conf file format is same for grub.conf? Chundo Linux - Newbie 1 01-30-2006 06:21 PM
Switching from grub to lilo, messed up Lilo.conf, rescuing via Knoppix. SonicGT Debian 2 08-21-2005 01:15 PM
create lilo.conf or grub.conf through commands newpenguin Linux - Software 1 11-28-2003 08:22 PM
lilo.conf and grub.conf no read access shanenin Linux - Software 1 10-02-2003 03:53 PM
Knoppix's DSL is impossible - so's Slack's slakmagik Linux - Networking 7 07-18-2003 05:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration