View previous topic :: View next topic |
Author |
Message |
haimat Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Simpsons/simpsons_ned_flanders.gif)
Joined: 05 Sep 2002 Posts: 239 Location: Vienna / Austria
|
Posted: Wed Sep 26, 2007 9:05 pm Post subject: how to determine root device? |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
mamac l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/79832502046fa149601d7a.jpg)
Joined: 29 Feb 2004 Posts: 890
|
Posted: Wed Sep 26, 2007 9:14 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Dottout l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/27792370046320ed1a536e.jpg)
Joined: 07 Mar 2006 Posts: 882
|
Posted: Wed Sep 26, 2007 9:18 pm Post subject: |
|
|
check also to have root filesystem support enabled in your kernel |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
haimat Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Simpsons/simpsons_ned_flanders.gif)
Joined: 05 Sep 2002 Posts: 239 Location: Vienna / Austria
|
Posted: Wed Sep 26, 2007 9:26 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
haimat Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/gallery/Simpsons/simpsons_ned_flanders.gif)
Joined: 05 Sep 2002 Posts: 239 Location: Vienna / Austria
|
Posted: Wed Sep 26, 2007 9:28 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Dottout l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/27792370046320ed1a536e.jpg)
Joined: 07 Mar 2006 Posts: 882
|
Posted: Wed Sep 26, 2007 9:33 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
mamac l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/79832502046fa149601d7a.jpg)
Joined: 29 Feb 2004 Posts: 890
|
Posted: Thu Sep 27, 2007 5:49 am Post subject: |
|
|
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. ![Embarassed :oops:](images/smiles/icon_redface.gif) _________________ Powered by Gentoo Linux since 2003 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Jason5876 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 06 Sep 2007 Posts: 6
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|