Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't mount root.
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
Savoritias
n00b
n00b


Joined: 07 Oct 2013
Posts: 20

PostPosted: Fri Oct 25, 2013 4:55 pm    Post subject: Can't mount root. Reply with quote

I installed gentoo with genkernel but now the damn thing says:
Code:

>> Determining root device.....
>>Detected real_root=dev/sdb3
>> Mounting /dev/sdb3 as root
>> Using mount -t auto -o ro
mount: mounting /dev/sdb3 on /newroot  failed: invalid argument
!! Could not mount specified ROOT, try again
!! Could not find the root block device in .
         Please specify another value or: press Enter for the same, type "shell" for a shell or "q" to skip....
root block device() ::

And then it just waits for input. What is wrong? Both genkernel and grub 2 was installed and configured without problems.


Last edited by Savoritias on Fri Oct 25, 2013 8:03 pm; edited 2 times in total
Back to top
View user's profile Send private message
creaker
l33t
l33t


Joined: 14 Jul 2012
Posts: 651

PostPosted: Fri Oct 25, 2013 5:21 pm    Post subject: Reply with quote

About locale: just ignore error message. It is not relevant to your boot kernel panic.
Kernel panic with error code (0,0) most likely occurs if your hard drive can't be recognized due to missing appropriate sata driver.
Some other possible reasons:
initramfs enabled,but built incorrect
DEVTMPFS not enabled in kernel .config file
incorrect grub menu entry.

Check your .config. Did you include necessary modules?
Back to top
View user's profile Send private message
Savoritias
n00b
n00b


Joined: 07 Oct 2013
Posts: 20

PostPosted: Fri Oct 25, 2013 5:33 pm    Post subject: Reply with quote

I built kernel but I didn't use genkernel I configured it manually. Maybe I missed something.
As for initframs I don't use it and the grub was installed with no error just as the guide said.
I guess I should reinstall with genkernel this time.
Back to top
View user's profile Send private message
TomWij
Retired Dev
Retired Dev


Joined: 04 Jul 2012
Posts: 1553

PostPosted: Fri Oct 25, 2013 5:46 pm    Post subject: Reply with quote

You get "[ 1.493194] [<ffffffff81efc27f>] mount_block_root+0x183/0x221" so you will want to follow http://wiki.gentoo.org/wiki/Knowledge_Base:Unable_to_mount_root_fs
Back to top
View user's profile Send private message
creaker
l33t
l33t


Joined: 14 Jul 2012
Posts: 651

PostPosted: Fri Oct 25, 2013 6:21 pm    Post subject: Reply with quote

Savoritias
You can build kernel with genkernel, but you'll get a huge kernel with a lot of unnecessary modules.
It worth to try fix your problem without genkernel.
Boot liveCD, mount your gentoo partition and chroot into (do not forget mount proc, sys, dev).
After that at first check you .config:

Code:
# cat /usr/src/linux/.config | grep DEVTMPFS


It should be like this:
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y

If your output differs, run "make menuconfig" and enable these options, set them to "*".

At second run lspci and look, what is relevant to your SATA?
Something like "SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family SATA AHCI Controller (rev 05)" -it is mine sata controller. Run "make menuconfig" again and look around: did you have SATA driver enabled?

You can run "lspci -n" and paste the output to http://kmuto.jp/debian/hcl/
it will show what modules you have to enable.

If you have changed .config, save it and rebuild kernel as it explained in handbook.

P.S.
you can run "lspci -n" from liveCD.
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