Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-19-2012, 01:31 PM   #1
LQ Newbie
Registered: Oct 2012
Posts: 3

Rep: Reputation: Disabled
Question 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

Last edited by cj_tomekk; 10-19-2012 at 01:43 PM. Reason: New info
Old 10-20-2012, 10:36 AM   #2
LQ Guru
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,297

Rep: Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386Reputation: 1386
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.
Old 10-20-2012, 02:00 PM   #3
LQ Newbie
Registered: Oct 2012
Posts: 3

Original Poster
Rep: Reputation: Disabled
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.

Last edited by cj_tomekk; 10-22-2012 at 01:21 PM.
Old 11-04-2012, 10:21 AM   #4
LQ Newbie
Registered: Oct 2012
Posts: 3

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
grub rescue> stuck . . . is grub2 only a Debian problem? jenaniston Debian 4 02-13-2010 04:39 AM
Using grub to boot hard puppy, kernel panic. Ark9 Linux - General 4 10-07-2008 10:09 PM
kernel panic boot problem when re-installing grub abdulinuxuser Linux - Newbie 8 07-06-2008 11:30 AM
Changing Grub config at boot to prevent Kernel panic neelay1 Linux - General 2 04-13-2006 03:13 PM
Stuck at Grub2 prompt after deleting Linux partition of dual boot alcorta Linux - Software 3 07-08-2005 11:12 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:57 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration