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

Thread: custom kernel won't show up on LILO's menu

  1. #1
    Junior Member
    Join Date
    Apr 2003
    Location
    London UK
    Posts
    4

    custom kernel won't show up on LILO's menu

    Hi all,
    I've been trying to use custom kernels on Knoppix, but I never managed to select them at boot time, because LILO doesn't even show them in the menu.

    Here's the procedure I follow:
    -get kernel.org sources and patch them (boot param. & ptrace)
    -make xconfig on original Knoppix conf. file; select/deselect stuff I do/do not need
    -make-kpkg --revision 1.0 kernel_image; don't allow touching lilo.conf
    -dpkg -i resulting .deb file; manually edit lilo.conf
    -/sbin/lilo; LILO confirms the presence of the new image
    -reboot

    The target partition is hda5; W2K's bootloader (in hda1) chainloads LILO (hda5's bootsector is listed in C:\boot.ini).

    At boot: I can only see and load the stock Knoppix kernel. Can anybody please tell me where I do wrong?

    Thanks in advance,
    Andrea.

  2. #2
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479
    Try /sbin/lilo -b /dev/hda5 to install lilo to the device you are booting from.

  3. #3
    Junior Member
    Join Date
    Apr 2003
    Location
    London UK
    Posts
    4
    Quote Originally Posted by Stephen
    Try /sbin/lilo -b /dev/hda5 to install lilo to the device you are booting from.
    Thanks, but still no go. By the way, if I was already booting from hda5, that wouldn't make any difference, would it? Newbie question, I know

    hda5 is formatted ext3, before that was ext2 and I'm starting to believe the HDD has got corrupted somewhere inside this partition, because when I execute /sbin/lilo, after correctly adding the kernel images, LILO prints this error message:
    unexpected dirty buffer encountered at do_get_write_access:613(03:05 blocknr 0)

    What do you think?

    Thanks,
    Andrea.

  4. #4
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479
    Quote Originally Posted by lo Spocchioso
    Thanks, but still no go. By the way, if I was already booting from hda5, that wouldn't make any difference, would it? Newbie question, I know
    If you just /sbin/lilo it installs to the MBR IIRC not the /dev/hda5.

    hda5 is formatted ext3, before that was ext2 and I'm starting to believe the HDD has got corrupted somewhere inside this partition, because when I execute /sbin/lilo, after correctly adding the kernel images, LILO prints this error message:
    unexpected dirty buffer encountered at do_get_write_access:613(03:05 blocknr 0)
    Looks like a bug in ext3.

  5. #5
    Junior Member
    Join Date
    Apr 2003
    Location
    London UK
    Posts
    4
    Quote Originally Posted by Stephen
    If you just /sbin/lilo it installs to the MBR IIRC not the /dev/hda5.
    I forgot to tell you that i have boot=/dev/hda5 in lilo.conf

    Quote Originally Posted by lo Spocchioso
    unexpected dirty buffer encountered at do_get_write_access:613(03:05 blocknr 0)
    Quote Originally Posted by Stephen
    Looks like a bug in ext3.
    Mmh... how lucky I am! Eventually I decide to try a journalled FS under Linux and come up against a bug
    Seriously, I couldn't boot custom kernels even on ext2, and this since Knoppix 3.1 (the first I've tried out). Never had similar problems with stock Debian "stable".

    Thanks again,
    Andrea.

  6. #6
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479
    Quote Originally Posted by lo Spocchioso

    Mmh... how lucky I am! Eventually I decide to try a journalled FS under Linux and come up against a bug
    Seriously, I couldn't boot custom kernels even on ext2, and this since Knoppix 3.1 (the first I've tried out). Never had similar problems with stock Debian "stable".

    Thanks again,
    Andrea.
    Have you tired posting to debian-knoppix@linuxtag.org mailing list or searching the archive I'm sure I have seen a few posts in there about custom kernels.

  7. #7
    Junior Member
    Join Date
    Apr 2003
    Location
    London UK
    Posts
    4
    Quote Originally Posted by Stephen
    Have you tired posting to debian-knoppix@linuxtag.org mailing list or searching the archive I'm sure I have seen a few posts in there about custom kernels.
    I haven't yet, but linuxtag.org doesn't seem to exist
    I did searched the forum's archive, but haven't found anything so far...
    I simply cannot believe I am the only one who can't boot his own kernel!

    Thanks again Stephen,
    Andrea.

  8. #8
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479
    Try here for the mailing list. Here is the LinuxTag website it's in German.

  9. #9
    Junior Member
    Join Date
    Sep 2003
    Posts
    1
    Hi Andrea,

    I think you have already solve the problem. If not, you will find all you need here:

    http://www.lesbell.com.au/Home.nsf/0...e?OpenDocument

    Guido


  10. #10
    Senior Member registered user
    Join Date
    Mar 2003
    Posts
    872
    Um, web server on Lotus Domino, bring back some old memories

    Back on topic for NT/lilo. I would suggest a little 'trick' which would make 'lilo' less intrusive(scary).

    dd if=/dev/zero of=temp.img bs=1k count=180
    losetup /dev/loop0 temp.img

    then use /dev/loop0 as your boot device in lilo.conf since all you want is the first 512 byte of that device and lilo doesn't care if it is a loopback or not. In this way, you won't risk of screwing up the MBR or partition boot sector.

Page 1 of 2 12 LastLast

Similar Threads

  1. Custom Kernel???
    By ying-yang7 in forum Customising & Remastering
    Replies: 1
    Last Post: 09-19-2004, 09:35 AM
  2. Install A Custom 2.6 Kernel (EZ Way)
    By knoppixusr in forum Tips and Tricks
    Replies: 0
    Last Post: 06-28-2004, 08:07 PM
  3. Custom kernel ?
    By nizedude in forum Customising & Remastering
    Replies: 3
    Last Post: 12-11-2003, 08:49 PM
  4. Adding custom kernel to Knoppix; no lilo menu
    By averylowiq in forum Customising & Remastering
    Replies: 3
    Last Post: 08-13-2003, 03:36 PM
  5. kernel panic with custom kernel
    By cYmen in forum Customising & Remastering
    Replies: 0
    Last Post: 07-14-2003, 10:17 AM

Posting Permissions

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


SanDisk 512GB Ultra Luxe USB 3.2 Gen 1 Flash Drive - SDCZ74-512G-G46 picture

SanDisk 512GB Ultra Luxe USB 3.2 Gen 1 Flash Drive - SDCZ74-512G-G46

$35.99



SanDisk 512GB Ultra Drive Dual Go USB Type-C Flash Drive Green SDDDC3-512G-G46G picture

SanDisk 512GB Ultra Drive Dual Go USB Type-C Flash Drive Green SDDDC3-512G-G46G

$49.99



SanDisk 128GB Ultra Dual Drive USB Type-C, USB 3.1 Flash Drive - SDDDC2-032G-G46 picture

SanDisk 128GB Ultra Dual Drive USB Type-C, USB 3.1 Flash Drive - SDDDC2-032G-G46

$10.99



SanDisk 128GB Ultra Flair USB 3.0 Flash Drive - SDCZ73-128G-G46 picture

SanDisk 128GB Ultra Flair USB 3.0 Flash Drive - SDCZ73-128G-G46

$12.99



Lenovo USB 16TB 3.0 USB Flash Drive Thumb Disk Silver Transfer Metal Memory picture

Lenovo USB 16TB 3.0 USB Flash Drive Thumb Disk Silver Transfer Metal Memory

$24.99



Mechanical Style Flash Drive USB 3.0 High Speed 16TB Large Capacity Waterproof  picture

Mechanical Style Flash Drive USB 3.0 High Speed 16TB Large Capacity Waterproof

$8.37



Sandisk 16GB 32GB 64GB 128GB Cruzer Blade Flash Drive Memory Stick USB Lot Pack picture

Sandisk 16GB 32GB 64GB 128GB Cruzer Blade Flash Drive Memory Stick USB Lot Pack

$4.99



2TB USB 3.0 Flash Drive Memory Photo Stick for iPhone Android iPad Type C 3 IN1 picture

2TB USB 3.0 Flash Drive Memory Photo Stick for iPhone Android iPad Type C 3 IN1

$13.00



1TB/2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage lot picture

1TB/2TB USB 3.0 Flash Drive Thumb U Disk Memory Stick Pen PC Laptop Storage lot

$388.39



USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack picture

USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack

$399.99