Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GRUB not loading root partition
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
orangecakez
Tux's lil' helper
Tux's lil' helper


Joined: 14 Feb 2007
Posts: 116

PostPosted: Thu Feb 22, 2007 8:41 pm    Post subject: GRUB not loading root partition Reply with quote

Thought I'd get more answers here.

I am on my last step to installing Gentoo, but I get a GRUB error when I try to boot:

VFS: Cannot open root device "hda3" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)


This is what my current /boot/grub/grub.conf looks like:

default 0
timeout 2
title=Linux
root (hd0,0)
kernel /boot/linux-2.6.17.13 root=/dev/hda3


Yes I made sure that was the correct kernel name in the correct directory. Partition 1 is my boot, 2 is my swap, and 3 is my root. I installed GRUB to partition 1 where the /boot is. I formatted correctly and everything. I did this before, and I remember getting this very same error, but I don't remember what I did to fix it. I think I fiddled with grub.conf and fstab only, but I can't remember.

This is my /etc/fstab:

/dev/hda1 /boot ext3 defaults,noatime 1 2
/dev/hda3 / ext3 noatime 0 1
/dev/hda2 none swap sw 0 0

I even followed all the directions in the guide exactly.
Back to top
View user's profile Send private message
HeissFuss
Guru
Guru


Joined: 11 Jan 2005
Posts: 414

PostPosted: Thu Feb 22, 2007 8:44 pm    Post subject: Reply with quote

Your issue isn't the kernel parameter as you are loading the kernel correctly. The problem is trying to mount your / partition. Are you sure that you built the correct driver for your IDE controller in your kernel?
Back to top
View user's profile Send private message
leonglass
Apprentice
Apprentice


Joined: 08 Aug 2006
Posts: 278

PostPosted: Thu Feb 22, 2007 8:45 pm    Post subject: Reply with quote

You will need to change (hd0,0) to match hda3, hd0,0 means the first partition of your first hard drive. /dev/hda3 will not be this. (hd0,2) is probably what you need.
[edit] Ignore this the post above is the one to read.
Back to top
View user's profile Send private message
bju
n00b
n00b


Joined: 09 Oct 2004
Posts: 17
Location: Germany

PostPosted: Thu Feb 22, 2007 8:53 pm    Post subject: Reply with quote

Try to remove the /boot in front of the kernel name. With "root (hd0,0) grub is already in /boot. So "kernel /boot/vmlinuz" would be /boot/boot/vmlinuz".

I think this is why in my /boot exists a symbolic link from "boot" to "." :-)
_________________
The advertisement is the most truthful part of a newspaper.
-- Thomas Jefferson
Back to top
View user's profile Send private message
jburns
Veteran
Veteran


Joined: 18 Jan 2007
Posts: 1214
Location: Massachusetts USA

PostPosted: Thu Feb 22, 2007 9:52 pm    Post subject: Reply with quote

orangecakez /etc/fstab
Quote:
/dev/hda1 /boot ext3 defaults,noatime 1 2
/dev/hda3 / ext3 noatime 0 1
/dev/hda2 none swap sw 0 0
Try changing the /dev/hda3 line to
Code:
/dev/hda3 / ext3 defaults,noatime 0 1

Is it possible that the / partition is not on /dev/hda3? The command
Code:
fdisk -l
can be used to show the partitions on the disk.
Back to top
View user's profile Send private message
ElSenorPantelone
n00b
n00b


Joined: 24 Jan 2006
Posts: 72

PostPosted: Mon Feb 26, 2007 5:45 am    Post subject: Reply with quote

It appears that your grub configuration file is correct, because you can load the kernel, you are getting an error trying to mount the root partition at /.

I suggest that you boot back into the livecd, chroot etc... and then check your kernel configuration options. Pay particular attention to your IDE or SATA controller drivers. I have an Intel chipset, so I chose the Intel IDE controller.

Run lspci and see which controller you have.
Back to top
View user's profile Send private message
SLBMEH
Apprentice
Apprentice


Joined: 16 Aug 2003
Posts: 299
Location: Pittsburgh, PA

PostPosted: Mon Feb 26, 2007 10:34 am    Post subject: Reply with quote

does the device /dev/hda3 exist and are you using udev?
_________________
Steve - Semper Fi
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum