LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 09-28-2003, 03:23 PM   #1
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692
Blog Entries: 9

Rep: Reputation: 45
Question Changed normal debian to hard disc version of knoppix - lilo config


Ok,
So I have just installed knoppix over the top of the normal "sarge" install.

I have done this for reasons of better hardware detection and aesthetics (the gui stuff is better).

Most of the install has gone quite smoothly, the major thing is how to get it to "fire up" using lilo.

Below is an extract from my lilo.conf that dealt with my previous debian install.


image=/debian/vmlinuz
label="debian"
root=/dev/hda4
initrd=/debian/boot/initrd.img
append="devfs=mount hdc=ide-scsi acpi=off"
vga=normal
read-only

What should I change or modify to get it to boot the debian/knoppix ? Because at the moment, if I just let lilo start and then select "debian" (I'll change the label later) I just get a black screen with

Loading debianEBDA too big


Any idea's please ?

regards

John
 
Old 09-29-2003, 01:05 AM   #2
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
It should be
image=/boot/vmlinuz
and get rid of the line
initrd=...
This is assuming that you wiped the old installation. Check if you have vmlinuz in /boot. If it's not there, you'll have to look for it.
After this, run lilo again and it should be fine.
 
Old 09-29-2003, 10:12 AM   #3
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692

Original Poster
Blog Entries: 9

Rep: Reputation: 45
as far as I can establish, it needs to be like this

image=/boot/vmlinuz-2.4.22-xfs
label="Knoppix"
root=/dev/hda4
initrd=/boot/initrd.gz
append="hdc=ide-scsi acpi=off"
vga=normal
read-write

though it also seems that I may need to copy the vmlinuz and possibly the initrd.gz of knoppix to the mandrake install, as I suspect that could be why the mandrake version of lilo can't see it.

Problem now is that I don't know how to do that.

regards

John
 
Old 09-29-2003, 10:27 AM   #4
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
I used to have a dual boot with mdk and knoppix as well. What I did is mount the / partition of Knoppix (or /boot if you have a separate /boot partition for Knoppix) under /Knoppix in mandrake. Then in lilo.conf in mdk I say
image=/Knoppix/boot/vmlinuz-2.4.22-xfs
label="Knoppix"
root=/dev/hda4
initrd=/Knoppix/boot/initrd.gz
append="hdc=ide-scsi acpi=off"
vga=normal
read-write

with the appropriate changes for root= and such of course (note the changes in paths to vmlinuz and initrd from /boot/... to /Knoppix/boot/...). Then run lilo in mandrake. I'm confident that I had to get rid of the initrd-line, but that was already a few versions back.
 
Old 10-01-2003, 02:56 AM   #5
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692

Original Poster
Blog Entries: 9

Rep: Reputation: 45
Ok, thanks for that.

I'll give it a try later - time for bed as I just finished work!

regards

John
 
Old 10-01-2003, 02:02 PM   #6
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692

Original Poster
Blog Entries: 9

Rep: Reputation: 45
Ok, so I looked into that.

I must be really thick, because I don't follow what you are telling me.

I copied the vmlinuz and initrd.gz to the mandrake /boot directory (I think?).

The lilo is still looking at the floppy for the vmlinuz though and I can't work out why? I'm not sure whether I'm getting confused as to where I should (if at all), copy the vmlinuz and initrd.gz to?

Any idea's

regards

John
 
Old 10-01-2003, 09:56 PM   #7
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
don't copy the stuff. It's not going to help you. What you do is mount the / partition of knoppix under some directory in mandrake, say under /Knoppix. That is, if / of Knoppix is /dev/hda4 you start mandrake and do

mount /dev/hda4 /Knoppix

Then the /boot directory for Knoppix will be /Knoppix/boot in mandrake.
Now you edit lilo.conf in mandrake by adding something like:
label="Knoppix"
image=/Knoppix/boot/vmlinuz-2.4.22-xfs
root=/dev/hda4
initrd=/Knoppix/boot/initrd.gz
append="hdc=ide-scsi acpi=off"
vga=normal
read-write

and run lilo.
 
Old 10-02-2003, 01:23 AM   #8
LSD
Member
 
Registered: Jan 2003
Location: Northam, W.A., Australia
Distribution: Gentoo ~x86
Posts: 321

Rep: Reputation: 31
Why not just ditch LILO and install GRUB? It's a little harder to configure granted, but it let's you easily boot multiple Linux (and non-Linux) distros fairly easily and without copying kernel images and initrds around, mounting filesystems etc. I use GRUB to boot Gentoo, Slackware and Windows XP in addition to my Debian install and they all boot without a hitch.
 
Old 10-02-2003, 01:28 AM   #9
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
Quote:
without copying kernel images and initrds around
the same is true for lilo. Lilo needs to find the kernel image and for that the relevant partitions have to be mounted. That's all there is to it.
 
Old 10-02-2003, 01:57 AM   #10
LSD
Member
 
Registered: Jan 2003
Location: Northam, W.A., Australia
Distribution: Gentoo ~x86
Posts: 321

Rep: Reputation: 31
You didn't read the rest of my post - GRUB doesn't need the filesystems to be mounted either as it understands filesystems and, provided you point it to the correct root partition, can find the right kernel image automatically.
 
Old 10-02-2003, 02:02 AM   #11
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
I know. But since lilo is already installed, why change to grub? i always found lilo.conf easier to edit than grub.conf.
 
Old 10-02-2003, 11:04 AM   #12
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692

Original Poster
Blog Entries: 9

Rep: Reputation: 45
I'm pretty sure that I have made all the changes that you suggest but I still get "zip"!

The only thing that I just noticed in one of your previous posts is

Quote:
with the appropriate changes for root= and such of course (note the changes in paths to vmlinuz and initrd from /boot/... to /Knoppix/boot/...).
this I don't understand.

The lilo.conf looks like this

boot=/dev/hda
map=/boot/map
vga=normal
default="XP"
keytable=/boot/uk.klt
prompt
nowarn
timeout=100
message=/boot/message
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz
label="Mandrake"
root=/dev/hda3
initrd=/boot/initrd.img
append="quiet noapic devfs=mount hdc=ide-scsi acpi=off"
vga=788
read-only
image=/Knoppix/boot/vmlinuz-2.4.22-xfs
label="Knoppix"
root=/dev/hda4
initrd=/Knoppix/boot/initrd.gz
append="hdc=ide-scsi acpi=off"
vga=normal
read-write
image=/boot/vmlinuz
label="linux-nonfb"
root=/dev/hda3
initrd=/boot/initrd.img
append="noapic devfs=mount hdc=ide-scsi acpi=off"
read-only
image=/boot/vmlinuz
label="failsafe"
root=/dev/hda3
initrd=/boot/initrd.img
append="failsafe noapic devfs=nomount hdc=ide-scsi acpi=off"
read-only
other=/dev/hda1
label="XP"
table=/dev/hda
other=/dev/fd0
label="floppy"
unsafe

and when I try and run "lilo -v" the output looks like this

[root@localhost john]# lilo -v
LILO version 22.4.1, Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2002 John Coffman
Released 27-Jan-2003 and compiled at 11:11:26 on Feb 5 2003.

Reading boot sector from /dev/hda
Using GRAPHIC secondary loader
Calling map_insert_data
Mapping message file /boot/message -> message-graphic
Calling map_insert_file

Boot image: /boot/vmlinuz -> vmlinuz-2.4.21-0.13mdk
Mapping RAM disk /boot/initrd.img -> initrd-2.4.21-0.13mdk.img
Added Mandrake

Boot image: /Knoppix/boot/vmlinuz-2.4.22-xfs
Mapping RAM disk /Knoppix/boot/initrd.gz
Added Knoppix

Boot image: /boot/vmlinuz -> vmlinuz-2.4.21-0.13mdk
Mapping RAM disk /boot/initrd.img -> initrd-2.4.21-0.13mdk.img
Added linux-nonfb

Boot image: /boot/vmlinuz -> vmlinuz-2.4.21-0.13mdk
Mapping RAM disk /boot/initrd.img -> initrd-2.4.21-0.13mdk.img
Added failsafe

Boot other: /dev/hda1, on /dev/hda, loader CHAIN
Added XP *

Boot other: /dev/fd0, loader CHAIN
Pseudo partition start: 0
Added floppy

/boot/boot.0300 exists - no backup copy made.
Writing boot sector.
[root@localhost john]#

From that, can you see if I am doing/have done, something wrong ?

Sorry to keep asking for the extended help - I'm sure you must be thinking "read the f*****g howto" - I have, but I don't have the "prior knowledge" that even the documentation project seem to expect, and I just don't understand it (though on the other hand, I might just be really thick !).

Many thanks so far

regards

John

Last edited by bigjohn; 10-02-2003 at 11:06 AM.
 
Old 10-02-2003, 11:50 AM   #13
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
hm. since lilo is not giving any errors, most of it is all right. It might be the append line for knoppix (it now says append="hdc=ide-scsi acpi=off") Change it to
append="noapic devfs=mount hdc=ide-scsi acpi=off"

and run lilo again, of course - you have to mount /dev/hda4 again before you do it.

also, if that doesn't work, see if it helps to get rid of the initrd line. When I installed Knoppix I had to get rid of it even though it was there in /Knoppix/boot.

Last edited by quatsch; 10-02-2003 at 11:53 AM.
 
Old 10-04-2003, 02:39 PM   #14
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,692

Original Poster
Blog Entries: 9

Rep: Reputation: 45
An update

Yip Yip Yipppeeeeeeeee!

Well, I have managed to sort it.

Yesterday, I did a couple of modifications and all of a sudden I could boot into the debian/knoppix, but It didn't matter what I did, i just got a load of "unintelligible garbage" followed by a kernel panic during the mandrake boot sequence.

The first words to go through my brain were "Oh F**k, what have I gone and done now!"

Anyway, in as much panic as the kernel, I did the "windows drone, knee jerk reaction" and did a complete re-install of mandrake 9.1

Which as much as anything else, meant I was back to square one (well at least in a position to start afresh), so, after re-reading all the stuff that I have looked though,

I changed this

image=/boot/vmlinuz
label="knoppix"
root=/dev/hda4
initrd=/boot/initrd.gz
append="devfs=mount apm=power-off hdc=scsi initrd=initrd.gz"
vga=791
read-only

to this

image=/Knoppix/boot/vmlinuz-2.4.22-xfs
label="knoppix"
root=/dev/hda4
#initrd=/Knoppix/boot/initrd.gz
append="devfs=mount apm=power-off hdc=scsi "
vga=791
read-only

then I did this

mount -rw /dev/hda4 /Knoppix (in order to mount the knoppix partition)

I then checked this

/Knoppix/boot (to confirm that vmlinuz-2.4.22-xfs is there) - in fact, the /Knoppix/boot actually has a link, but that seems to be adequate

I then ran lilo -v and this seems to have worked.

I'm still not entirely sure how I have managed to work this out, I think the problems have been to do with although having the correct info in the /etc/lilo.conf I didn't have the various stuff in the knoppix/boot file - it seems that although you would need the initrd.gz on a floppy, you don't actually need it in your lilo.conf, but that, in turn must point to either an image of the alternate version (vmlinuz-2.4.22-xfs, as opposed to the one that my mandrake install uses - vmlinux-2.4.21-0.13mdk), or at least the correct link.

Anyhow, it works, so many thanks for the extended assistance in getting this working.

regards

John

Last edited by bigjohn; 10-04-2003 at 02:41 PM.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove LILO and Knoppix/Debian go4java Linux - Newbie 2 10-12-2004 04:34 AM
How to config lilo to boot from two Hard Drives. mlsbraves Linux - General 4 09-13-2004 09:16 PM
Ok, when one runs apt-get on knoppix does it update it to the full debian sid version maximalred Debian 1 06-24-2004 07:45 AM
lilo broken / debian unstable / using knoppix / help! bronko Linux - Newbie 3 01-08-2004 07:11 AM
Disc hdb changed into hdc Relja Linux - General 6 01-07-2003 03:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:46 PM.

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