PDA

View Full Version : Booting hdbased knoppix with lilo.



reub2000
05-26-2003, 11:12 PM
I was configuring it with bootdrake, but when I boot up knoppix w/ lilo, I get Kernel Panic, no init found, try passing init= to kernel, or something like that.

What do I need to do, to boot knoppix?

eadz
05-27-2003, 02:08 AM
So you're using mandrake ?.. you will need to edit /etc/lilo.conf manually.

The instructions for a HD based knoppix are in
http://www.knoppix.net/docs/index.php/HdBasedHowTo

If you have read the howto, and still have trouble, post your /etc/lilo.conf here.

reub2000
05-27-2003, 03:05 AM
Well, I got somewhere with that guide, I c+ped, the boot profile, and edited it a little bit. I made some progress, now I go into a "limted shell", that's not bash.

BTW, I used that guide to copy the files.


boot=/dev/hda
map=/boot/map
vga=normal
default="linux"
keytable=/boot/us.klt
prompt
nowarn
timeout=150
message=/boot/message
menu-scheme=wb:bw:wb:bw
image=/boot/vmlinuz
label="linux"
root=/dev/hda2
initrd=/boot/initrd.img
append="quiet devfs=mount hdd=ide-scsi acpi=off"
vga=788
read-only
image=/boot/vmlinuz
label="linux-nonfb"
root=/dev/hda2
initrd=/boot/initrd.img
append="devfs=mount hdd=ide-scsi acpi=off"
read-only
other=/dev/hda1
label="windows"
table=/dev/hda
other=/dev/hdb1
label="windows98"
table=/dev/hdb
map-drive=0x80
to=0x81
map-drive=0x81
to=0x80
other=/dev/fd0
label="floppy"
unsafe
image=/boot/vmlinuz
label="failsafe"
root=/dev/hda2
initrd=/boot/initrd.img
append="failsafe devfs=nomount hdd=ide-scsi acpi=off"
read-only
image=/boot/vmlinuz # The kernel
append="lang=de ramdisk_size=100000 init=/etc/init apm=power-off hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi vga=791 initrd=KNOPPIX/miniroot.gz nomce quiet BOOT_IMAGE=knoppix" #add initrd path to miniroot.gz
label="Knoppix"# label of your profil
root=/dev/hda7 # partiton where lilo can found the directory /boot
read-only
initrd=/mnt/knoppix/boot/miniroot.gz

eadz
05-27-2003, 03:09 AM
Ok, well that's progress. It means it has booted and found the miniroot. So becasue it says it's dropping you to a shell, does it also say "Can't find Knoppix Filesystem" ?

Where abouts is your KNOPPIX/KNOPPIX directory/file ?

reub2000
05-27-2003, 03:20 AM
Yeah, I think it said can't find filesystem, not sure.

It's /mnt/knoppix/KNOPPIX/KNOPPIX.

Stephen
05-27-2003, 04:20 AM
You have an extra knoppix you just need the directory and the file .

eadz
05-27-2003, 04:29 AM
Yeah, I think it said can't find filesystem, not sure.

It's /mnt/knoppix/KNOPPIX/KNOPPIX.

er, thats from inside linux right?

So is "/mnt/knoppix" a partition mount point? and in the ROOT of that partition is "/KNOPPIX/KNOPPIX" with the last KNOPPIX being the ~600 Meg file? If so, then it should work.

reub2000
05-27-2003, 04:47 AM
Yeah, I think it said can't find filesystem, not sure.

It's /mnt/knoppix/KNOPPIX/KNOPPIX.

er, thats from inside linux right?

So is "/mnt/knoppix" a partition mount point? and in the ROOT of that partition is "/KNOPPIX/KNOPPIX" with the last KNOPPIX being the ~600 Meg file? If so, then it should work.

Yep, /mnt/knoppix is the mount point, then the path to the file, is KNOPPIX/KNOPPIX.

So, if it should work, why does it not work?

Edit: Itried, getting rid of hda=scsi, since my hd is ide, but it did nothing.

Stephen
05-27-2003, 05:21 AM
label="Knoppix"# label of your profile
root=/dev/hda7 # partiton where lilo can found the directory /boot
read-only
initrd=/mnt/knoppix/boot/miniroot.gz

Shouldn't the initrd line be initrd=/boot/miniroot.gz you have already specified root=/dev/hda7 so it will be looking for a /dev/hda7/mnt/knoppix/boot/miniroot.gz instead of /dev/hda7/boot/miniroot.gz.

reub2000
05-27-2003, 10:10 PM
^^Doesn't work.


# lilo
Added linux *
Added linux-nonfb
Added windows
Added windows98
Added floppy
Added failsafe
Fatal: open /boot/miniroot.gz: No such file or directory

Edit:
Should have read the entire screen. Turns out, the problem is, that it was using my mandrake kernel.