LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 12-29-2004, 02:36 AM   #1
citrus
Member
 
Registered: Dec 2003
Location: California
Distribution: Kubuntu 6.1
Posts: 548

Rep: Reputation: 30
grub problem


i am installing gentoo

i got the kernel compiled and now i am working on my grub

a long time lilo user grub is confusing....
(can't use lilo due to amd 64 bit arcatecture or something like that its masked as -*)

i get

VFS: cannot open root Device "hda2" or unknown -Block(3,2)
Please append a correct "root=" Boot option
Kernel Panic -not syncing: VFS: unable to mount root fs on unknown block (3,2)



here is my config
hda1 windows
hda2 linux
hda4 swap

here is my grub.conf

default 0
timeout 30
title=Gentoo Linux 2.6.9
root (hd0,1)
kernel /boot/kernel-2.6.9-r1 root=/dev/hda2
title=Windows XP
rootnoverify (hd0,0)
makeactive
chainloader +1


then i use grub to load it to the mbr
i type

root (hd0,1)
setup (hd0)
quit


then i get that kernel panic error
after i load it up
can someone please help me?

Last edited by citrus; 12-29-2004 at 02:44 AM.
 
Old 12-29-2004, 05:19 AM   #2
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
I'm not sure since i use a seperate /boot partition in fedora different from /
but i have an initrd section after kernel.

This is my grub.conf
Code:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,6)
#          kernel /vmlinuz-version ro root=/dev/hda8
#          initrd /initrd-version.img
#boot=/dev/hda
default=1
timeout=10
splashimage=(hd0,6)/grub/splash.xpm.gz
title Fedora Core (2.6.5-1.358)
	root (hd0,6)
	kernel /vmlinuz-2.6.5-1.358 ro root=LABEL=/ quiet
	initrd /initrd-2.6.5-1.358.img
title Windows XP 
	rootnoverify (hd0,0)
	chainloader +1

Last edited by perfect_circle; 12-29-2004 at 05:28 AM.
 
Old 12-29-2004, 02:05 PM   #3
battletroll
Member
 
Registered: Dec 2004
Location: Alabama
Distribution: Slackware, Solaris,Fedora, CentOS, Redhat, SGI
Posts: 65

Rep: Reputation: 18
try grub-install /dev/hda
 
Old 12-29-2004, 03:39 PM   #4
necromantik
LQ Newbie
 
Registered: Jul 2004
Posts: 15

Rep: Reputation: 0
Have you tried different "root=" options? Sometimes different things read the name of your Hard drives differently. Just one of my hard drives has been read as hda, hdc, hdd, hde, and sda. This isn't the only reason this problem occurs, but it is the simplest.
 
Old 12-29-2004, 08:14 PM   #5
kevinalm
Member
 
Registered: Oct 2003
Location: Iowa
Distribution: LFS 5.0, building 6.3, win98se, multiboot
Posts: 288

Rep: Reputation: 30
If you're using udev (or devfs) and it's incorrectly setup, or you don't have a /dev/hda2 (the device file, not the device) this might happen. Not having fs type support for the /root fs compiled into the kernel can cause a panic, but iirc the error message is different.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Yet another GRUB problem eqxro Linux - Software 3 08-04-2004 10:27 AM
HDD problem, scancode problem and grub EJ_INSIDE Debian 2 07-15-2004 10:36 AM
Grub setup problem (/boot/grub/stage1 not found) davidas Debian 2 04-28-2004 09:13 PM
grub problem jigs Linux - Newbie 7 09-18-2003 01:16 PM
GRUB problem pupunk98 Linux - Newbie 7 12-26-2002 05:34 AM


All times are GMT -5. The time now is 02:07 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration