LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-08-2005, 11:27 AM   #1
JoeDuncan
Member
 
Registered: Aug 2003
Location: Ottawa
Distribution: Redhat 5.2, 6.0, 6.1, Mandrake 7.2, 8.0, 9.1, 9.2, 10.0, Gentoo, Debian 3.1r0
Posts: 224

Rep: Reputation: 30
Kernel Panic dual booting Gentoo + Debian [SOLVED]


This is the story:

I've got a spare 20Gb on my main drive, so I partitioned 10Gb of it and put ReiserFS on it. Then I did a single partition install of the latest stable Debian to that logical partition (/dev/hde7). I skipped the bootloader installation because I'd planned to use the already installed Gentoo bootloader to load it.

So, after installing Debian to /dev/hde7 (which went flawlessly), I rebooted into Gentoo and edited grub.conf to add an entry to boot Debian.

The entry looks like this:

title=Debian
root (hd0,6)
kernel /vmlinuz root=/dev/hde7

When I select debian from the boot menu however, the kernel loads and starts booting up, but then it stops with the following error messages:

VFS: Cannot open root device "hde7" or 21:07
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on 21:07

Any ideas what's going wrong? I can still boot into Gentoo fine...

Last edited by JoeDuncan; 12-08-2005 at 05:08 PM.
 
Old 12-08-2005, 03:08 PM   #2
WhatsHisName
Senior Member
 
Registered: Oct 2003
Location: /earth/usa/nj (UTC-5)
Distribution: RHEL, AltimaLinux, Rocky
Posts: 1,151

Rep: Reputation: 46
Here are the relevant lines from a Sarge menu.lst:

title Sarge
root (hd0,6)
kernel /boot/vmlinuz-2.6.8-2-686 root=/dev/hde7 ro
initrd /boot/initrd.img-2.6.8-2-686
savedefault
boot

Last edited by WhatsHisName; 12-08-2005 at 03:16 PM.
 
Old 12-08-2005, 04:55 PM   #3
JoeDuncan
Member
 
Registered: Aug 2003
Location: Ottawa
Distribution: Redhat 5.2, 6.0, 6.1, Mandrake 7.2, 8.0, 9.1, 9.2, 10.0, Gentoo, Debian 3.1r0
Posts: 224

Original Poster
Rep: Reputation: 30
Kernel Panic dual booting Gentoo + Debian [SOLVED]

I fixed it.

The problem was that I was missing the "initrd" command in grub.conf.

I have two symlinks in "/" called "vmlinuz" and "initrd.img" which point to files in "/boot".

Anyways, I was going to move the kernel to my Gentoo "/boot" partition when I noticed the initrd.img file, so I looked up "initrd" in the grub manual and found out I had to add the initrd command in grub.conf.

So now my Debian entry in grub.conf looks like this:

title=Debian
root (hd0,6)
kernel /vmlinuz root=/dev/hde7
initrd /initrd.img

Thanks!
 
  


Reply


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu + Debian: Kernel Panic when booting jonathanm Linux - Newbie 2 10-14-2005 09:34 AM
Kernel Panic during Debian booting xterminator890i Linux - Laptop and Netbook 1 06-03-2004 06:30 PM
Debian Kernel Panic during booting xterminator890i Linux - Laptop and Netbook 0 06-03-2004 05:39 PM
LILO/GRUB for dual booting Gentoo and Debian. rmanocha Linux - Software 2 02-22-2004 01:23 PM
kernel panic message (for dual booting of win2k and 7.3 smurray723 Linux - Newbie 10 11-22-2002 11:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:40 PM.

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