-   Linux - Newbie (
-   -   Knoppix, GRUB to GRUB2, boot by UUID, stuck at kernel panic (

cj_tomekk 10-19-2012 02:31 PM

Knoppix, GRUB to GRUB2, boot by UUID, stuck at kernel panic

I've installed Knoppix 7.0.4 on pedrive. It boots fine with default GRUB (0.97). I want to boot the system in situations where there are no extra ata/sata drives (as it works after install) and if a drive is left attached. In that case I get kernel panic. I've read somewhere that booting by UUID may help but in GRUB2. I updated my installation to GRUB2. No I have GRUB menu and chained GRUB2 menu. Original boot works with pendrive only. From GRUB2 entries none boots. I get message:

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0).

I've struggled with this for a few days now and seems reached timeout on digging this without help.

Anyone could route me to set this up correctly?

Some parts of setup

# df -T
Filesystem Type 1K-blocks Used Available Use% Mounted on
rootfs rootfs 6663664 2222080 4441584 34% /
/dev/root reiserfs 6663664 2222080 4441584 34% /
tmpfs tmpfs 2097152 8 2097144 1% /tmp
udev tmpfs 20480 4 20476 1% /dev
tmpfs tmpfs 2097152 0 2097152 0% /dev/shm

# ll /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 Oct 19 19:39 7265a1af-9120-4bea-a824-2f884e9fe30c -> ../../sda1
lrwxrwxrwx 1 root root 11 Oct 19 19:39 b53f110b-a202-45d0-ac7a-ac6615507484 -> ../../zram0
lrwxrwxrwx 1 root root 10 Oct 19 19:39 ebca161b-33b0-4a6e-9c9c-cc5d1868f6ca -> ../../sda2

menuentry 'Knoppix' {
insmod gzio
insmod part_msdos
insmod reiserfs

search --no-floppy --fs-uuid ebca161b-33b0-4a6e-9c9c-cc5d1868f6ca --set root
echo 'Loading Linux 3.4.9 ...'
linux /boot/vmlinuz-3.4.9 root=UUID=ebca161b-33b0-4a6e-9c9c-cc5d1868f6ca ro quiet

yancek 10-20-2012 11:36 AM

You don't have a set root= line in your sample entry at the bottom of the post. It would be helpful if you indicated which distribution of Linux you have with Grub2. Did you do an update-grub from that distribution with the Knoppix pendrive attached? No positive results? I understand you want to have the Knoppix entry on your main Grub menu when you boot from it as well as being able to boot from the pendrive, is that correct? If you don't resolve this, you might try googling "bootinfoscript" and downloading, running the script and looking at the output or posting it here as it will provide substantial details on your drives/partitions and boot files to get some help.

cj_tomekk 10-20-2012 03:00 PM

I updated grub using info found here:

grub updated correctly.

regarding set root: look at this topic:
entry posted: by viking777 on Sun Dec 27, 2009 7:01 am


function is enough.

set root
is typically used to set fixed drive (like hd(0,1)).

I want my system to 1stly boot correctly with grub2. Secondly, I want it to be able to boot if there are additional ata/sata drives put (logically they are considered 1st before USB disks).

Old grub results:
- os pendirve is single - boots fine
- os pendrive + other pendrive - kernel panic
- os pendirive + other HDD - kernel panic

New grub: kernel panic always.

by the way shouldn't my /dev/sdx appear in df?

Anyone? I'm sure somebody came through this already.

cj_tomekk 11-04-2012 11:21 AM

Ok, creating initrd.img and setting kernels root= with UUID did the trick on GRUB 0.97 :-)

All times are GMT -5. The time now is 04:42 AM.