Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
"Could not find the root block 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
StupidBunny
n00b
n00b


Joined: 08 Nov 2015
Posts: 4

PostPosted: Sun Nov 08, 2015 5:35 am    Post subject: "Could not find the root block device in ." Reply with quote

I've got a laptop (Dell XPS 12, with amd64 hardware), currently running Windows 10, which I am trying to install Gentoo alongside. I've started out using this tutorial, which easily got me as far as shrinking my primary Windows partition; creating a minimal installation using the latest (20150924) disk image, on both a CD and USB key for good measure; and disabled UEFI boot, enabled Legacy boot, and changed the boot order.

The problem I'm having now is that it can't mount either the CD or USB key, because it can find neither. It gets me to a point where it tells me:

Code:
...
!! Media not found
!! Could not find CD to boot, something else needed!
>> Determining root device...
!! Could not find the root block device in .
!! Please specify another value or:
!! - press Enter for the same
!! - type "shell" for a shell
!! - type "q" to skip...


When I look at the list of media it tries mounting, it has, among other things, /dev/sda1-5, but does not find sdb, sdc, etc. When I type shell I get into an ash (not bash) shell, and indeed the USB key/CD does not appear to show up in /dev.

I checked, and a blank file called livecd is present at the root on my USB stick. I have tried the scandelay=10 trick, to no avail. I've found a number of suggested fixes online, but they either don't work or are for slightly different problems. Does anybody smarter than me have any ideas what the problem could be, and how I may fix it?
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2288
Location: near Augsburg, Germany

PostPosted: Sun Nov 08, 2015 9:50 am    Post subject: Reply with quote

Try this: http://www.sysresccd.org/Download
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43192
Location: 56N 3W

PostPosted: Sun Nov 08, 2015 1:11 pm    Post subject: Reply with quote

StupidBunny,

Welcome to Gentoo.

It appears that the kernel you have booted cannot find the root filesystem.
Not all CDs install on USB devices properly.

As Keruskerfuerst says, try SystemRescueCD. Its even Gentoo based.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
toito
n00b
n00b


Joined: 28 Oct 2004
Posts: 12

PostPosted: Wed Nov 18, 2015 8:44 am    Post subject: Reply with quote

In the last days I tried to install Gentoo from USB key, from LiveCD and from SystemRescueCD, following the handbook and always obtained the same result:

Could not find the root block device in .

Any ideas? Please
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43192
Location: 56N 3W

PostPosted: Wed Nov 18, 2015 5:20 pm    Post subject: Reply with quote

toito,

Did the error
Code:
Could not find the root block device in .
appear when you booted from the CD/USB or when you tried to boot your own install?

Is this an install on real hardware or as a guest in a virtual machine?
If its a guest, whick VM are you using.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
toito
n00b
n00b


Joined: 28 Oct 2004
Posts: 12

PostPosted: Wed Nov 18, 2015 5:31 pm    Post subject: Reply with quote

This error appear when I try to boot the new instalation on real hardware (netbook Acer).

Regards.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43192
Location: 56N 3W

PostPosted: Wed Nov 18, 2015 8:51 pm    Post subject: Reply with quote

toito,

This means that for some reason, your kernel cannot find your hard drive controller.
There are a few reasons.

The hard drive controller code in the kernel is missing or incomplete.
You made the code as a loadable kernel module, rather than built in but are not using an initrd to provide the module.

Tell us how you configured and installed your kernel.
Show us the output of lspci.
Show us the kernel .config file /usr/src/linux/.config
Show us your boot loader configuration file. Probably /boot/grub/grub.cfg

You will need to use wgetpaste for the kernel .config as its for too big to fit into a post.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
toito
n00b
n00b


Joined: 28 Oct 2004
Posts: 12

PostPosted: Thu Nov 19, 2015 1:35 pm    Post subject: Reply with quote

To configured and installed the kernel I used:

Code:
genkernel --menuconfig all


Changing only "Processor family" to Atom and adding some modules to wireless.

Code:
sysresccd / # lscpu
Architecture:          i686
CPU op-mode(s):        32-bit
Byte Order:            Little Endian
CPU(s):                2
On-line CPU(s) list:   0,1
Thread(s) per core:    2
Core(s) per socket:    1
Socket(s):             1
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 28
Model name:            Intel(R) Atom(TM) CPU Z520   @ 1.33GHz
Stepping:              2
CPU MHz:               1333.000
CPU max MHz:           1333.0000
CPU min MHz:           800.0000
BogoMIPS:              2659.94
Virtualization:        VT-x
L1d cache:             24K
L1i cache:             32K
L2 cache:              512K


Code:
sysresccd / # lspci
00:00.0 Host bridge: Intel Corporation System Controller Hub (SCH Poulsbo) (rev 07)
00:02.0 VGA compatible controller: Intel Corporation System Controller Hub (SCH Poulsbo) Graphics Controller (rev 07)
00:1b.0 Audio device: Intel Corporation System Controller Hub (SCH Poulsbo) HD Audio Controller (rev 07)
00:1c.0 PCI bridge: Intel Corporation System Controller Hub (SCH Poulsbo) PCI Express Port 1 (rev 07)
00:1c.1 PCI bridge: Intel Corporation System Controller Hub (SCH Poulsbo) PCI Express Port 2 (rev 07)
00:1d.0 USB controller: Intel Corporation System Controller Hub (SCH Poulsbo) USB UHCI #1 (rev 07)
00:1d.1 USB controller: Intel Corporation System Controller Hub (SCH Poulsbo) USB UHCI #2 (rev 07)
00:1d.2 USB controller: Intel Corporation System Controller Hub (SCH Poulsbo) USB UHCI #3 (rev 07)
00:1d.7 USB controller: Intel Corporation System Controller Hub (SCH Poulsbo) USB EHCI #1 (rev 07)
00:1f.0 ISA bridge: Intel Corporation System Controller Hub (SCH Poulsbo) LPC Bridge (rev 07)
00:1f.1 IDE interface: Intel Corporation System Controller Hub (SCH Poulsbo) IDE Controller (rev 07)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02)
03:00.0 Ethernet controller: Qualcomm Atheros AR242x / AR542x Wireless Network Adapter (PCI-Express) (rev 01)


Code:
sysresccd / # cat /etc/fstab
# /etc/fstab: static file system information.
# <fs>         <mountpoint>   <type>   <opts>         <dump/pass>
/dev/sda1      /boot      ext2      defaults,noatime   0 2
/dev/sda2      none      swap   sw            0 0
/dev/sda3      /         ext4      noatime         0 1
#/dev/cdrom      /mnt/cdrom   auto      noauto,ro         0 0
#/dev/fd0         /mnt/floppy   auto      noauto         0 0


My grub.cfg generated with
Code:
grub-mkconfig -o /boot/grub/grub.cfg
is:
Code:
menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-75b38059-c7a7-45dc-9398-f0f7fb554cfc' {
   load_video
   if [ "x$grub_platform" = xefi ]; then
      set gfxpayload=keep
   fi
   insmod gzio
   insmod part_msdos
   insmod ext2
   set root='hd0,msdos1'
   if [ x$feature_platform_search_hint = xy ]; then
     search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  c052c754-de9f-49c4-ad42-4454b3f33a0d
   else
     search --no-floppy --fs-uuid --set=root c052c754-de9f-49c4-ad42-4454b3f33a0d
   fi
   echo   'Loading Linux x86-4.1.12-gentoo ...'
   linux   /kernel-genkernel-x86-4.1.12-gentoo root=UUID=75b38059-c7a7-45dc-9398-f0f7fb554cfc rootfstype=ext4 ro 
   echo   'Loading initial ramdisk ...'
   initrd   /initramfs-genkernel-x86-4.1.12-gentoo
}


And the kernel .config is:

https://bpaste.net/show/f5379d38860f

Thank you very much for your interest in my problem.

Regards.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43192
Location: 56N 3W

PostPosted: Thu Nov 19, 2015 6:15 pm    Post subject: Reply with quote

toito,

Your problem is almost certainly
Code:
< >       Intel SCH PATA support

You need either <M> or <Y>
That's the option for your
Code:
00:1f.1 IDE interface: Intel Corporation System Controller Hub (SCH Poulsbo) IDE Controller (rev 07)


Code:
genkernel --menuconfig all
is the right approach. In your case, the predefined .config file left your driver out of the kernel.

Get back into your chroot and redo the
Code:
genkernel --menuconfig all
.
Find the
Code:
< >       Intel SCH PATA support
setting and fix it.
Save the change when you exit menuconfig.

Hint: menuconfig has a search function. Press / and enter PATA_SCH

If it works, please file a bug against genkernel at bugs.gentoo.org, so that the devs knaw what to do to fix genkernel.
This will help both you and others with the same issue.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
toito
n00b
n00b


Joined: 28 Oct 2004
Posts: 12

PostPosted: Fri Nov 20, 2015 1:47 pm    Post subject: Reply with quote

NeddySeagoon you are the best.

Thank you very much.

I added like native Intel SCH PATA support in kernel, and work fine.

I will file a bug like you said.

Regards.
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