Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Booting the wrong Kernel - Knoppix, Slackware, LiLo

  1. #1
    Junior Member
    Join Date
    Sep 2005
    Posts
    6

    Booting the wrong Kernel - Knoppix, Slackware, LiLo

    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?

  2. #2
    Senior Member registered user
    Join Date
    Feb 2005
    Location
    Saint Louis, MO, USA
    Posts
    376

    Re: Booting the wrong Kernel - Knoppix, Slackware, LiLo

    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:
    Code:
    ( 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

  3. #3
    Senior Member registered user
    Join Date
    Dec 2004
    Location
    Dublin, OH
    Posts
    342

    Vmlinuz

    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

  4. #4
    Junior Member
    Join Date
    Sep 2005
    Posts
    6
    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

  5. #5
    Senior Member registered user
    Join Date
    Feb 2005
    Location
    Saint Louis, MO, USA
    Posts
    376
    Quote Originally Posted by thejackal13
    + 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:
    Code:
    ( 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

  6. #6
    Junior Member
    Join Date
    Sep 2005
    Posts
    6
    I will run that this evening when I get home

  7. #7
    Junior Member
    Join Date
    Sep 2005
    Posts
    6
    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

  8. #8
    Senior Member registered user
    Join Date
    Feb 2005
    Location
    Saint Louis, MO, USA
    Posts
    376
    Quote Originally Posted by thejackal13
    + 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:
    Code:
    ( 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

  9. #9
    Junior Member
    Join Date
    Sep 2005
    Posts
    6
    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.

  10. #10
    Senior Member registered user
    Join Date
    Feb 2005
    Location
    Saint Louis, MO, USA
    Posts
    376
    Quote Originally Posted by thejackal13
    thanks, sorry for the typo's, i will post when i get home this evening
    Sounds good.
    Quote Originally Posted by thejackal13
    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:
    Code:
    #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

Page 1 of 2 12 LastLast

Similar Threads

  1. LILO installed to wrong MBR?
    By foamrotreturns in forum Hdd Install / Debian / Apt
    Replies: 4
    Last Post: 02-11-2005, 05:22 PM
  2. Wrong MBR for Lilo when using koppix 3.7 HD installer script
    By devellino in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 12-29-2004, 03:16 AM
  3. installing driver wrong kernel?
    By tonycooles in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 12-18-2004, 06:21 PM
  4. wrong kernel
    By colonius in forum Customising & Remastering
    Replies: 0
    Last Post: 12-02-2004, 10:58 PM
  5. What`s wrong with Lilo?
    By diginik in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 04-07-2004, 11:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Samsung 2.5

Samsung 2.5" 870 EVO SSD SATA III 250GB 500GB 1TB Internet Solid State Drive Lot

$100.00



Netac 2TB 1TB 512GB 256GB Internal SSD 2.5inch SATAIII Solid State Drive lot picture

Netac 2TB 1TB 512GB 256GB Internal SSD 2.5inch SATAIII Solid State Drive lot

$129.99



Western Digital Blue 3D NAND 500GB Internal 2.5

Western Digital Blue 3D NAND 500GB Internal 2.5" SSD - WDS500G2B0A

$49.99



Samsung 860 EVO 250GB SSD MZ-76E250 2.5

Samsung 860 EVO 250GB SSD MZ-76E250 2.5" SATA III Solid State Drive -

$36.99



Fanxiang 256GB 512GB 1TB 2TB 4TB SSD Lot 2.5'' SATA Internal Solid State Drive picture

Fanxiang 256GB 512GB 1TB 2TB 4TB SSD Lot 2.5'' SATA Internal Solid State Drive

$42.99



Crucial MX500 250GB 2.5

Crucial MX500 250GB 2.5" SATA III SSD - Preowned

$29.00



2 PACK 128 GB SSD M.2 2280 SATA Solid State Drive Major Brands, Samsung, LiteON picture

2 PACK 128 GB SSD M.2 2280 SATA Solid State Drive Major Brands, Samsung, LiteON

$28.00



Fanxiang 1/2/5/10Pcs 2.5'' SATA SSD Lot 1TB 2TB 4TB 512GB 256GB TLC Internal SSD picture

Fanxiang 1/2/5/10Pcs 2.5'' SATA SSD Lot 1TB 2TB 4TB 512GB 256GB TLC Internal SSD

$129.99



Intel Solid-State Drive DC S3500 Series 240GB Internal 2.5

Intel Solid-State Drive DC S3500 Series 240GB Internal 2.5" (SSDSC2BB240G4P) SSD

$29.99



Netac 120GB 256GB 1TB 2TB Internal SSD 2.5'' SATAIII 6Gb/s Solid State Drive lot picture

Netac 120GB 256GB 1TB 2TB Internal SSD 2.5'' SATAIII 6Gb/s Solid State Drive lot

$119.99