Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to determine root device?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
haimat
Apprentice
Apprentice


Joined: 05 Sep 2002
Posts: 239
Location: Vienna / Austria

PostPosted: Wed Sep 26, 2007 9:05 pm    Post subject: how to determine root device? Reply with quote

Hi all,

on my new machine I have two SATA HDDs, the first for Windows, the second for Linux. After installing Gentoo I merged grub. Now it seems to boot the kernel quite fine, I see all drivers loading (the typical boot screen). Then before it tries to load init I get this "unable to mount root fs" error together with a kernel panic.

I tried it with different grub configurations for the kernel line:

Code:
kernel /boot/bzImage root=/dev/sda3
kernel /boot/bzImage root=/dev/sdb3
kernel /boot/bzImage root=/dev/sdc3
kernel /boot/bzImage root=UUID=...


But none of them worked.
Now I wonder, how can I determine which root option I should use?

Kind regards, Matthias

PS: During installation the disk was shown with /dev/hda, but since it's a SATA drive, I googled and found that I have to disable the normal ATA support in kernel, since we want to use the SATA and experimental ATA drivers. I tried to compile the kernel with the normal ATA drivers before, which worked fine (including booting and mounting root device /dev/hda, but with terrible slow disk speed). Since the kernel boots fine I think the driver is ok, but this root device ...
Back to top
View user's profile Send private message
mamac
l33t
l33t


Joined: 29 Feb 2004
Posts: 890

PostPosted: Wed Sep 26, 2007 9:14 pm    Post subject: Reply with quote

Hi,

First do you know on which disk you installed Gentoo? sda, b or c?

Then make sure / is on partition number 3.

I had the same issue few weeks ago when I tried to installed Gentoo on my neihgbour's box which has several SATA disks as well but I didn't succeed. Then we decided to give a try to kubuntu!

I didn't have the opportunity to look at the grub.conf generated by kubuntu.
_________________
Powered by Gentoo Linux since 2003
Back to top
View user's profile Send private message
Dottout
l33t
l33t


Joined: 07 Mar 2006
Posts: 882

PostPosted: Wed Sep 26, 2007 9:18 pm    Post subject: Reply with quote

check also to have root filesystem support enabled in your kernel
Back to top
View user's profile Send private message
haimat
Apprentice
Apprentice


Joined: 05 Sep 2002
Posts: 239
Location: Vienna / Austria

PostPosted: Wed Sep 26, 2007 9:26 pm    Post subject: Reply with quote

I have included ext2 and ext3 drivers in my kernel konfiguration (I use ext2 on boot and ext3 on root partition). Or do you mean something else?
Back to top
View user's profile Send private message
haimat
Apprentice
Apprentice


Joined: 05 Sep 2002
Posts: 239
Location: Vienna / Austria

PostPosted: Wed Sep 26, 2007 9:28 pm    Post subject: Reply with quote

I installed Gentoo on /dev/hdc3, since the Gentoo LiveCD recoginzes the disk as /dev/hdc. I also have installed Kubuntu on the same machine, there the grub.conf file has used the UUID for the root partition (which I already tried in this case as well with no luck).
Back to top
View user's profile Send private message
Dottout
l33t
l33t


Joined: 07 Mar 2006
Posts: 882

PostPosted: Wed Sep 26, 2007 9:33 pm    Post subject: Reply with quote

haimat wrote:
I have included ext2 and ext3 drivers in my kernel konfiguration (I use ext2 on boot and ext3 on root partition). Or do you mean something else?

I was meaning this. If you miss fs support you get the same error at boot
Back to top
View user's profile Send private message
mamac
l33t
l33t


Joined: 29 Feb 2004
Posts: 890

PostPosted: Thu Sep 27, 2007 5:49 am    Post subject: Reply with quote

haimat wrote:
I installed Gentoo on /dev/hdc3, since the Gentoo LiveCD recoginzes the disk as /dev/hdc. I also have installed Kubuntu on the same machine, there the grub.conf file has used the UUID for the root partition (which I already tried in this case as well with no luck).

Sorry, I didn't pay attention to your P.S. in your first message. :oops:
_________________
Powered by Gentoo Linux since 2003
Back to top
View user's profile Send private message
Jason5876
n00b
n00b


Joined: 06 Sep 2007
Posts: 6

PostPosted: Thu Sep 27, 2007 1:39 pm    Post subject: Reply with quote

Here is a link that may help.

https://forums.gentoo.org/viewtopic-p-4278662.html
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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