Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
(SOLVED)grub could not find the root device in .
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
shin938
n00b
n00b


Joined: 10 Feb 2012
Posts: 20

PostPosted: Fri Feb 10, 2012 8:21 pm    Post subject: (SOLVED)grub could not find the root device in . Reply with quote

Hi
Its my first time gentoo installation, followed the hadbook and after finally completing when I try to boot I get this message:

Code:

mount: mounting /dev/sda4 on /newroot failed: No such device
could not find the root device in .
please specify another device...


I tried installing to /dev/sda4.
used the gentoo minimal cd and stage3 tarball.
compiled the kernel with genkernel all, didn't do any changes.
my machine is a lenovo T520, its a multi boot hard disk, i got mint and debian testing working in that machine.

this is my hard drive:
Code:

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048     3071999     1534976    7  HPFS/NTFS/exFAT      (windows boot)
/dev/sda2         3072000   149872639    73400320    7  HPFS/NTFS/exFAT   (windows )
/dev/sda3       149876734   913928191   382025729    5  Extended
/dev/sda4       913928192   976773119    31422464   83  Linux                   (gentoo)
/dev/sda5       149876736   223275007    36699136   83  Linux                   (mint)
/dev/sda6       223277056   296677375    36700160   83  Linux                   (mint home)
/dev/sda7       296679424   370079743    36700160   83  Linux                   (debian)
/dev/sda8       370081792   443482111    36700160   83  Linux                   (debian home)
/dev/sda9       443484160   840527871   198521856   83  Linux                  (devel)
/dev/sda10      840529920   888762367    24116224   83  Linux                  (enc)
/dev/sda11      888764416   913928191    12581888   82  Linux swap / Solaris



lspci
Code:

00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
00:16.0 Communication controller: Intel Corporation 6 Series/C200 Series Chipset Family MEI Controller #1 (rev 04)
00:19.0 Ethernet controller: Intel Corporation 82579LM Gigabit Network Connection (rev 04)
00:1a.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 1 (rev b4)
00:1c.1 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 2 (rev b4)
00:1c.3 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 4 (rev b4)
00:1c.4 PCI bridge: Intel Corporation 6 Series/C200 Series Chipset Family PCI Express Root Port 5 (rev b4)
00:1d.0 USB controller: Intel Corporation 6 Series/C200 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation QM67 Express Chipset Family LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 6 Series/C200 Series Chipset Family 6 port SATA AHCI Controller (rev 04)
00:1f.3 SMBus: Intel Corporation 6 Series/C200 Series Chipset Family SMBus Controller (rev 04)
03:00.0 Network controller: Intel Corporation Centrino Wireless-N 1000
0d:00.0 System peripheral: Ricoh Co Ltd MMC/SD Host Controller (rev 08)
0d:00.3 FireWire (IEEE 1394): Ricoh Co Ltd FireWire Host Controller (rev 04)



fstab
Code:

/dev/sda4      /              ext4      default,noatime   1 1
/dev/sda11   none              swap      sw      0 0
/dev/cdrom   /mnt/cdrom   auto      noauto,user   0 0
proc         /proc              proc      defaults   0 0
shm         /dev/shm            tmpfs   nodev,nosuid,noexec   0 0



I installed grub to /dev/sda4 and added it to grub2 that is installed to the mbr trough mint
I guess there's somethig wrong in my grub.conf, I tried root=/dev/sda4 ,root=/dev/ram0 , root=(hd0,3) , nothing helps.
grub.conf
Code:

default 0
timeout 30
splashimage=(hd0,3)/boot/grub/splash.xpm.gz

title Gentoo Linux 3.2.1
root (hd0,3)
kernel /boot/kernel-genkernel-x86_64-3.2.1-gentoo-r2 real_root=/dev/sda4 rootfstype=etx4 video=uvesafb:mtrr:3,ywrap,1024x768-32@85
initrd /boot/initramfs-genkernel-x86_64-3.2.1-gentoo-r2



Thanks.


Last edited by shin938 on Sun Feb 12, 2012 2:19 pm; edited 1 time in total
Back to top
View user's profile Send private message
Bones McCracker
Veteran
Veteran


Joined: 14 Mar 2006
Posts: 1611
Location: U.S.A.

PostPosted: Sat Feb 11, 2012 6:54 am    Post subject: Reply with quote

When you say you "installed grub to /dev/sda4 and added it to grub2", what do you mean by "added it to grub2"? Are you trying to chain-load grub from grub2?

It would probably be easier just to use one bootloader. To go that route, you didn't need to install grub (per the handbook) because you already have a bootloader installed. You probably need to boot into Mint and make sure the grub configuration contains the correct information in an option to boot Gentoo. Then, if grub2 requires you to run something to "update grub" with that configuration, do it. Then boot into Gentoo, and you can probably emerge --unmerge grub.

If you actually want to boot from the grub you installed into sda4, then you either need to make that partition bootable and tell your bios to boot from it (i.e. in your bios "setup"), or you would need to chain-load it from your grub2 setup (and I don't know how that is done).
_________________
patrix_neo wrote:
The human thought: I cannot win.
The ratbrain in me : I can only go forward and that's it.
Back to top
View user's profile Send private message
mackal
Tux's lil' helper
Tux's lil' helper


Joined: 04 Aug 2011
Posts: 92

PostPosted: Sat Feb 11, 2012 7:57 am    Post subject: Reply with quote

I had a similar problem, turned out I forgot to build all my SATA drivers (I had to build 3 of them IIRC, one for SATA II, SATA III, and another) in, could only see the primary partitions and since I dual boot my root was an extended partition so it failed to load it.
Back to top
View user's profile Send private message
shin938
n00b
n00b


Joined: 10 Feb 2012
Posts: 20

PostPosted: Sat Feb 11, 2012 3:43 pm    Post subject: Reply with quote

Thank you for the answers.
what I did, I installed GAG to the mbr, GAG always worked perfect for me.
reinstalled mint's grub2 to its root partition. and booted with GAG, now I can boot all other os's and I can even see the grub menu in gentoo that wasn't showing when I chained it from grub2.
I think what was wrong in my grub.conf is this argument : rootfstype=etx4 , I think its not necessary with initramfs.
so now I can boot into gentoo.
This is my grub.conf now.
Code:

default 0
timeout 30
splashimage=(hd0,3)/boot/grub/splash.xpm.gz
title Gentoo Linux 3.2.1
root (hd0,3)
kernel /boot/kernel-genkernel-x86_64-3.2.1-gentoo-r2 real_root=/dev/sda4
initrd /boot/initramfs-genkernel-x86_64-3.2.1-gentoo-r2


So I'm happy, I have my first working gentoo installation. :)

but now I can't get network to work, I could with the live cd, I rad a lot about issues with new kernels and intel network card and the e1000e driver, but couldn't fix it. the fact that the live cd could get a network connection makes me think its something in my installation.
on boot I sometimes see a message like:
Code:
reject NAK via 191.168.1.1..



this is the output from /etc/init.d/net.eth0 start:
Code:

dhcpcd[17384]: version 5.2.12 starting
* Bringing up interface eth0
 *   dhcp ...
 *     Running dhcpcd ... [ ok ]

dhcpcd[17384]: eth0: waiting for carrier
dhcpcd[17384]: eth0: carrier acquired
dhcpcd[17384]: eth0: rebinding lease of 192.168.1.100
dhcpcd[17384]: eth0: acknowledged 192.168.1.100 from 192.168.1.1 `�'
dhcpcd[17384]: eth0: checking for 192.168.1.100
dhcpcd[17384]: eth0: leased 192.168.1.100 for 7200 seconds
dhcpcd[17400]: eth0: eth0: MTU set to 576
dhcpcd[17384]: forked to background, child pid 17416


but still after that I have no connection and ifconfig reports no ip address.

I have this in /etc/conf.d/net
Code:
config_eth0="dhcp"


and this is my /etc/dhcpcd.conf
Code:

hostname

#clientid shalom!gentoo

option domain_name_servers, domain_name, domain_search, host_name
option classless_static_routes
option ntp_servers
option interface_mtu
require dhcp_server_identifier
nohook lookup-hostname




I hope someone could help fixing it so I really have a working gentoo.

Thank you
Back to top
View user's profile Send private message
Bones McCracker
Veteran
Veteran


Joined: 14 Mar 2006
Posts: 1611
Location: U.S.A.

PostPosted: Sun Feb 12, 2012 12:13 am    Post subject: Reply with quote

That's a separate issue I can't help with. Put "solved" in the subject line of your first post here, and start a new thread in the "Installing Gentoo" forum with an appropriate subject line (e.g. "need help with network / dhcpcd"). Someone more familiar with that issue will respond.
_________________
patrix_neo wrote:
The human thought: I cannot win.
The ratbrain in me : I can only go forward and that's it.
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