PDA

View Full Version : Booting the wrong Kernel - Knoppix, Slackware, LiLo



thejackal13
09-16-2005, 04:03 PM
I am using a knoppix distro for a roboitcs project and it came on a live cd. I have a laptop that boots windows, slackware, and know knoppix using lilo. I managed to boot the knoppix distro almost perfectly but it is booting the wrong kernel somehow. In slackware I am using a 2.4 kernel and the knoppix distro is suppose to be running the 2.6 kernel. When i use the live cd it boots the 2.6 kernel correctly off the cd. When i boot the knoppix off the HD now it boots the 2.4 kernel and loads the OS. The OS is functional and I haven't noticed any problems but can someone help me boot the correct kernel. My boot parition is stored on the mbr. My lilo config looks like:

#Linux
image = /boot/vmlinuz
root = /dev/hdc7
label = linux
read-only

#knoppix
image =/boot/vmlinuz
root = /dev/hdc8
label = knoppix
read-only

the lilo that i am using is part of the slack distro not the knoppix distro. and in my fstab i am not even mounting the hdc7 parition at all.

any ideas?

rwcitek
09-16-2005, 05:17 PM
If I read this correctly, you have knoppix installed on /dev/hdc8. Right?
Try this: boot knoppix from the CD then run this code in a root terminal window:

( set -x
uname -va
cat /etc/knoppix-version
cat /proc/partitions
mount /mnt/hdc8
ls -a /mnt/hdc8/
) >& post.txt
Please post the contents of post.txt.

Regards,
- Robert
http://www.cwelug.org

sakiZ
09-16-2005, 06:33 PM
I see you are using vmlinuz.

My guess is that is the vmlinuz file. It's pointing to the 2.4 kernel. The default vmlinuz does that.

You need to make an new Vmlinuz file that points to the 2.6 kernel.

If you look carefully at the distro, you see that vmlinuz is actually a link that points to 2.4.

That's what you need to change.

sakiZ

thejackal13
09-19-2005, 04:38 AM
sorry for the delayed reply, i just got caught up with some other linux stuff and then i couldn't get back to this laptop for a day here is that post.txt

+ uname -va
Linux Knoppix 2.6.11 #3 SMP Mon May 2 00:19:56 CEST 2005 i686 GNU/Linux
+ cat /etc/knoppix-version
3.8.2 2005-05-05
+ cat /proc/partitions
major minor #blocks name

22 0 39070080 hdc
22 1 40131 hdc1
22 2 25358602 hdc2
22 3 1 hdc3
22 5 1004031 hdc5
22 6 8001 hdc6
22 7 6008278 hdc7
22 8 6650878 hdc8
240 0 1764736 cloop0
+ mount /mnt/hdc8
+ ls --color=auto -a /mnt/hdc8
.
..
.Xauthority
.xsession-errors
bin
boot
cdrom
dev
etc
floppy
home
initrd
lib
lost+found
mnt
none
proc
root
sbin
sys
tmp
usr
var
vmlinuz

the symbolic link in the boot folder is pointing to the 2.6 kernel, plus the 2.4 kernel is on a whole nother partition

rwcitek
09-19-2005, 06:20 AM
+ uname -va
Linux Knoppix 2.6.11 #3 SMP Mon May 2 00:19:56 CEST 2005 i686 GNU/Linux
+ cat /etc/knoppix-version
3.8.2 2005-05-05
Interesting. Did you use this CD to install Knoppix to /dev/hdc8? If so, this is puzzling. 3.8.2 doesn't even have a 2.4 kernel.

After you modified lilo.conf in Slack, did you rerun lilo?

Lastly, can you boot into the installed knoppix (the one on /dev/hdc8/) and run these commands:


( set -x
uname -va
cat /etc/knoppix-version
cat /proc/partitions
df -HTl
ls -la /boot/
) >& post.txt

Please post the contents of post.txt.

Regards,
- Robert
http://www.cwelug.org

thejackal13
09-19-2005, 05:03 PM
I will run that this evening when I get home

thejackal13
09-20-2005, 10:08 AM
Here is the output, sorry that some of it is in German, I guess they reworked this distro:

+ uname -va
Linux Knoppix 2.4.31 #6 Sun Jun 5 19:04:47 PDT 2005 i686 GNU/Linux
+ cat /etc/knoppix-verision
cat: /etc/knoppix-verision: Datei oder Verzeichnis nicht gefunden
+ cat /proc/partitions
major minor #blocks name

22 0 39070080 hdc
22 1 40131 hdc1
22 2 25358602 hdc2
22 3 1 hdc3
22 5 1004031 hdc5
22 6 8001 hdc6
22 7 6008278 hdc7
22 8 6650878 hdc8
+ df -HT1
df: Ungültige Option -- 1
,,df --help" gibt weitere Informationen.
+ ls --color=auto -la /boot/
insgesamt 2936
drwxr-xr-x 2 root root 4096 2005-05-02 02:34 .
drwxr-xr-x 21 root root 4096 2005-09-20 04:58 ..
-rw-r--r-- 1 root root 308326 2004-12-18 21:19 coffee.bmp
-rw-r--r-- 1 root root 60581 2005-05-02 00:19 config-2.6.11
lrwxrwxrwx 1 root root 13 2005-09-20 06:31 debian.bmp -> /boot/sid.bmp
-rw-r--r-- 1 root root 153720 2004-12-18 21:19 debianlilo.bmp
-rw-r--r-- 1 root root 23662 2004-12-18 21:19 sarge.bmp
-rw-r--r-- 1 root root 24116 2004-12-18 21:19 sid.bmp
lrwxrwxrwx 1 root root 17 2005-09-20 06:31 System.map -> System.map-2.6.11
-rw-r--r-- 1 root root 867395 2005-05-02 00:22 System.map-2.6.11
lrwxrwxrwx 1 root root 14 2005-09-20 06:31 vmlinuz -> vmlinuz-2.6.11
-rw-r--r-- 1 root root 1530887 2005-05-02 00:22 vmlinuz-2.6.11

thanks for everyone's help so far

rwcitek
09-20-2005, 02:10 PM
+ uname -va
Linux Knoppix 2.4.31 #6 Sun Jun 5 19:04:47 PDT 2005 i686 GNU/Linux
Yes, you are running the 2.4 kernel.

Because of a couple of typos, I was wondering if you could rerun these commands:

( set -x
cat /etc/knoppix-version
df -HT
) >& post.txt
Please post the output of post.txt.

Admittedly, I haven't used lilo in quite a while, but I'm suspecting that lilo is "pointing to the wrong place." I'll have to read up on lilo again to be sure.

Regards,
- Robert
http://www.cwelug.org

thejackal13
09-20-2005, 02:32 PM
thanks, sorry for the typo's, i will post when i get home this evening

speaking of lilo. my lilo is on the mbr, and it is configured in the slackware partition, haven't touched anything with lilo on the knoppix partition.

rwcitek
09-20-2005, 03:32 PM
thanks, sorry for the typo's, i will post when i get home this evening
Sounds good.

speaking of lilo. my lilo is on the mbr, and it is configured in the slackware partition, haven't touched anything with lilo on the knoppix partition.
As I said, I haven't played with lilo in a while. So, I'm just wondering what would happen if you boot into Slackware and change your boot stanza for Knoppix to this:

#knoppix
image =/boot/vmlinuz-2.6.11
root = /dev/hdc8
label = knoppix
read-only
After all, vmlinuz on /dev/hdc8 is just a soft link to vmlinuz-2.6.11. If you make the change to lilo.conf, rerun lilo, and reboot, can you then have Knoppix boot the 2.6.11 kernel? If not, I'm curious to know what error you get.

Regards,
- Robert
http://www.cwelug.org

thejackal13
09-21-2005, 12:30 AM
if i change the image line and then run lilo it says: Fatal: open /boot/vmlinuz-2.6.11: No such file or directory
after seeing that i played with the rights and it still didn't help. it only accepts /boot/vmlinuz

here is the printout of those commands:

+ cat /etc/knoppix-version
3.8.2 2005-05-05
+ df -HT
Dateisystem Typ Größe Benut Verf Ben% Eingehängt auf
/dev/hdc8 ext2 6,8G 2,0G 4,5G 31% /


thanks