Try /sbin/lilo -b /dev/hda5 to install lilo to the device you are booting from.
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.
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 knowOriginally Posted by Stephen
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.
If you just /sbin/lilo it installs to the MBR IIRC not the /dev/hda5.Originally Posted by lo Spocchioso
Looks like a bug in ext3.
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)
I forgot to tell you that i have boot=/dev/hda5 in lilo.confOriginally Posted by Stephen
Originally Posted by lo SpocchiosoMmh... how lucky I am! Eventually I decide to try a journalled FS under Linux and come up against a bugOriginally Posted by Stephen
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.Originally Posted by lo Spocchioso
I haven't yet, but linuxtag.org doesn't seem to existOriginally Posted by Stephen
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.
Try here for the mailing list. Here is the LinuxTag website it's in German.
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
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.
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
$49.99
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
$12.99
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
$8.37
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
$13.00
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
$399.99