PDA

View Full Version : Kernel panic on boot with loadlin



Taldor
08-18-2004, 11:09 AM
I can't burn cdroms so i try to boot knoppix with loadlin (in FreeDOS). I downloaded the files needed for loadlin (including the iso-file). When i type 'loadlin vmlinuz ....' I get the colourfull 'welcome to knoppix live cd'. After a few second I get the message 'kernel panic'. What did I do wrong?

[EDIT] I get the suggestion to pass "INIT=" to the kernel

baldyeti
08-18-2004, 12:09 PM
What complete loadlin command-line have you been trying?

You might also want to look here (http://www.knoppix.net/forum/viewtopic.php?t=2273) for a discussion about this very topic.

Taldor
08-18-2004, 12:27 PM
I tried "loadlin vmlinuz root=/dev/hda5 initrd=miniroot.gz lang=en ro"

Now i tried something else "loadlin linux26 fromhd=/dev/hda5/Knoppix ramdisk_size=100000 init=/etc/init initrd=minirt26.gz home=/dev/hda7 BOOT_IMAGE=Knoppix" This gave a bit more: Can't find Knoppix filesystem.

Anyway I have the Iso file in d:\Knoppix (/dev/hda5) and I'ld like to install to /dev/hda7 if possible.

baldyeti
08-18-2004, 12:34 PM
Are you using the raw ISO image, or have you extracted the KNOPPIX file within that?
With the ISO, I think it's bootfrom you should be using instead of fromhd
See here (http://www.knoppix.net/docs/index.php/CheatCodes)

Taldor
08-18-2004, 12:46 PM
I've both an iso and the extracted version of knoppix

[edit]NowI've tried this:"loadlin linux26 bootfrom=/dev/hda5/Knoppix ramdisk_size=100000 init=/etc/init initrd=D:\Knoppix\minirt26.gz BOOT_IMAGE=Knoppix tohd=/dev/hda7"
But i got a message: line to long. Can I drop something?
[edit] the same result for "loadlin linux26 bootfrom=/dev/hda5 ramdisk_size=100000 init=/etc/init initrd=D:\Knoppix\minirt26.gz BOOT_IMAGE=Knoppix tohd=/dev/hda7"
[edit]The setup still tries to find the cdrom

Thanks for the quick responses

baldyeti
08-18-2004, 02:00 PM
But i got a message: line to long. Can I drop something?

In the 1st post mentioned above, I explain why it's better to use loadlin with a parameter file rather than a long command line that gets truncated.

http://www.knoppix.net/forum/viewtopic.php?t=2273

Taldor
08-18-2004, 02:20 PM
I guess we can assume you use win9x, can't we?
I have WinXP.

and what's the command then? "loadlin loadlin.par" or "loadlin config.sys" or ...?
[edit] I found it: loadlin @loadlin.par

now i get something:

Accessing KNOPPIX CDROM at /dev/hda5...cat: No file /KNOPPIX/etc/ld.so.cache.
Setting paths...run: not found
awk: not found
awk: not found
Total memory found: kB
expr: not found
expr: not found
mkdir: not found
Creating directories and symlinks on ramdisk...mkdir: not found
chown: not found
/linuxrc: cannot create /var/run/utmp: directory nonexistent
FAT: bogus logical sector size 0
Kernel panic: VFS: Unable to mount root fs on 01:01

[edit again]Now I use D:\knoppix\linux26 bootfrom=/dev/hda5/knop.iso ramdisk_size=100000 init=/etc/init lang=be vga=791 initrd=D:\knoppix\miniroot.gz apm=power-off hda=scsi hdb=scsi hdc=scsi hdd=scsi screen=1280x1024 home=scan myconfig=scan nomce, but this gives the same error as before.

What's the cheatcode for a belgian azerty keyboard?

Here (http://www.knoppix.net/forum/viewtopic.php?t=2743&view=next) , someone says i should put the big KNOPPIX file to the D:\Knoppix\ folder, but the folder D:\Knoppix\KNOPPIX\ can't coexist with the big KNOPPIX file. Should I rename something?

eco2geek
08-18-2004, 07:02 PM
Just to clarify, it sounds like you're booting FreeDOS and running LOADLIN off a boot floppy, and it sounds like /dev/hda5 (aka your D: drive under Windows) is not formatted as NTFS, but is FAT32, correct?

(Knoppix won't load from an NTFS partition, and LOADLIN won't run from an NTFS partition, either, for all intents and purposes.)

You can name LOADLIN's parameter file anything within the DOS "8.3" filename constraints. Name it "nsync.sux" or "bkstboyz.rul" if you like. Just tell LOADLIN where it is using the @ sign as described in the thread baldyeti pointed to. Nothing magical about its name.

That big ~700MB file on the Knoppix CD called KNOPPIX - the one in the /KNOPPIX directory - has to be saved on your hard disk partition just like it is on the CD in order to to use the "fromhd" command. In other words, make a /KNOPPIX directory, and then put the ~700MB KNOPPIX file in it. So that /KNOPPIX/KNOPPIX is the big KNOPPIX file in a directory named KNOPPIX. Then you can use the "fromhd=/dev/hda5" command (assumming it's on /dev/hda5, of course).

Taldor
08-18-2004, 07:12 PM
Just to clarify, it sounds like you're booting FreeDOS and running LOADLIN off a boot floppy, and it sounds like /dev/hda5 (aka your D: drive under Windows) is not formatted as NTFS, but is FAT32, correct?correct, except I run loadlin from a FAT partition with FreeDOS, I don't use a floppy at all.


That big ~700MB file on the Knoppix CD called KNOPPIX - the one in the /KNOPPIX directory - has to be saved on your hard disk partition just like it is on the CD in order to to use the "fromhd" command. In other words, make a /KNOPPIX directory, and then put the ~700MB KNOPPIX file in it. So that /KNOPPIX/KNOPPIX is the big KNOPPIX file in a directory named KNOPPIX. Then you can use the "fromhd=/dev/hda5" command (assumming it's on /dev/hda5, of course). Ok that's what i did wrong: I had this: D:\Knoppix\KNOPPIX\KNOPPIX. Now I have a seperate partition with only the Knoppix 'cdrom', (M:, /dev/hda8) and the big KNOPPIX file in M:\KNOPPIX\KNOPPIX.

With these options: vmlinuz fromhd=/dev/hda8 ramdisk_size=100000 init=/etc/init lang=nl vga=791 initrd=miniroot.gz apm=power-off hda=scsi hdb=scsi hdc=scsi screen=1280x1024 home=scan myconfig=scan nomce, I get the same error message as before. Quite strange I still tries to find Knoppix in /dev/hda5...

Accessing KNOPPIX CDROM at /dev/hda5...cat: No file /KNOPPIX/etc/ld.so.cache.
Setting paths...run: not found
awk: not found
awk: not found
Total memory found: kB
expr: not found
expr: not found
mkdir: not found
Creating directories and symlinks on ramdisk...mkdir: not found
chown: not found
/linuxrc: cannot create /var/run/utmp: directory nonexistent
FAT: bogus logical sector size 0
Kernel panic: VFS: Unable to mount root fs on 01:01

eco2geek
08-18-2004, 07:56 PM
Now I use D:\knoppix\linux26 bootfrom=/dev/hda5/knop.iso ramdisk_size=100000 init=/etc/init lang=be vga=791 initrd=D:\knoppix\miniroot.gz apm=power-off hda=scsi hdb=scsi hdc=scsi hdd=scsi screen=1280x1024 home=scan myconfig=scan nomce, but this gives the same error as before.

The miniroot and the kernel are in pairs. For "linux26" you have to use "minirt26.gz" and for "linux24" you have to use "minirt24.gz" (they're in the /boot/isolinux dir on the CD). Also try it without that "init=/etc/init" line.

Taldor
08-18-2004, 08:46 PM
It works!!! Finally!

from zero to GNU/Linux in five minutes
It took me exacly 24 hours, to figure everything out. :D

the working cheatcode was: linux26 fromhd=/dev/hda8 ramdisk_size=100000 init=/etc/init lang=nl vga=791 initrd=minirt26.gz apm=power-off hda=scsi hdb=scsi hdc=scsi screen=1280x1024 home=scan myconfig=scan nomce

Thanks everyone for you help.

[EDIT]When i install Knoppix, I get the option where to install lilo: in the mbr or in the root-partition. (I want a multiboot system with WinXP). What should i choose? Note: all partitions are on one hard drive.

[EDIT]I chose mbr. The installation was succesfull and lilo works how it should.