Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]VFS: cannot open 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
Babaorheum
n00b
n00b


Joined: 30 Jul 2017
Posts: 17
Location: France

PostPosted: Sun Jul 30, 2017 9:37 pm    Post subject: [SOLVED]VFS: cannot open root device Reply with quote

Hi,

I'm new on Gentoo to use my new Ryzen and i have a big problem to boot into my Gentoo Kernel.
I don't understand where come from the issue because the .config used on Gentoo is the same used when i did my test on Debian.
In resume, the kernel 4.12.3 on Debian and Gentoo have the same .config file.

The Kernel Panic picture from my Iphone :
https://img15.hostingpics.net/thumbs/mini_1691712052643110211845540308614167346567n.jpg

lspi from Debian :
Code:
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1450
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Device 1451
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1452
00:01.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 1453
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1452
00:03.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1452
00:03.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 1453
00:03.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 1453
00:04.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1452
00:07.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1452
00:07.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 1454
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1452
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 1454
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 59)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1460
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1461
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1462
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1463
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1464
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1465
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1466
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Device 1467
03:00.0 USB controller: Advanced Micro Devices, Inc. [AMD] Device 43b9 (rev 02)
03:00.1 SATA controller: Advanced Micro Devices, Inc. [AMD] Device 43b5 (rev 02)
03:00.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43b0 (rev 02)
1d:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43b4 (rev 02)
1d:02.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43b4 (rev 02)
1d:03.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43b4 (rev 02)
1d:04.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43b4 (rev 02)
1d:06.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43b4 (rev 02)
1d:07.0 PCI bridge: Advanced Micro Devices, Inc. [AMD] Device 43b4 (rev 02)
25:00.0 USB controller: ASMedia Technology Inc. Device 1343
26:00.0 Ethernet controller: Intel Corporation I211 Gigabit Network Connection (rev 03)
28:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Baffin [Polaris11] (rev cf)
28:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device aae0
29:00.0 VGA compatible controller: NVIDIA Corporation GM204 [GeForce GTX 970] (rev a1)
29:00.1 Audio device: NVIDIA Corporation GM204 High Definition Audio Controller (rev a1)
2a:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Device 145a
2a:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Device 1456
2a:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] USB3 Host Controller
2b:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Device 1455
2b:00.2 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 51)
2b:00.3 Audio device: Advanced Micro Devices, Inc. [AMD] Device 1457


My grub.cfg :
Code:
menuentry 'Gentoo GNU/Linux' --class gentoo --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-4dfee807-c998-4907-96a8-e0db8c74e01e' {
        load_video
        if [ "x$grub_platform" = xefi ]; then
                set gfxpayload=keep
        fi
   insmod gzio
        insmod part_gpt
        insmod btrfs
        set root='hd1,gpt7'
        if [ x$feature_platform_search_hint = xy ]; then
          search --no-floppy --fs-uuid --set=root --hint-bios=hd1,gpt7 --hint-efi=hd1,gpt7 --hint-baremetal=ahci1,gpt7  4dfee807-c998-4907-96a8-e0db8c74e01e
        else
          search --no-floppy --fs-uuid --set=root 4dfee807-c998-4907-96a8-e0db8c74e01e
        fi
   echo    'Chargement de Linux 4.12.3-gentoo…'
        linux   /boot/vmlinuz-4.12.3-gentoo root=/dev/sdb7 ro
}


My /etc/fstab:
Code:
##Partition Racine
UUID="4dfee807-c998-4907-96a8-e0db8c74e01e"             /               btrfs           noatime,nodiratime 0      0

##Partition EFI
UUID=E349-3ABE  /boot/efi   vfat    umask=0077   0   1

# swap was on /dev/sdb3 during installation
UUID=75eaf2cb-06e7-4ea4-b30c-925d00049c69 none            swap    sw              0     0

# /tmp on Memory RAM
tmpfs /tmp tmpfs defaults,size=4G 0 0


My Kernel config from Debian (which is the same than Gentoo)
https://pastebin.com/sR50siBu

Thanks for your help,
Babaorheum
_________________
Sorry for my English, i'm French :-)


Last edited by Babaorheum on Mon Jul 31, 2017 5:43 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Jul 30, 2017 9:56 pm    Post subject: Reply with quote

Babaorheum,

Welcome to Gentoo.

Debian uses an initrd to hold all the kernel modules needed to mount the root filesystem.
This makes it easy to build a one size fits all kernel. The downside is it won't boot without an initrd.

At the end of your grub.conf you have
Code:
   echo    'Chargement de Linux 4.12.3-gentoo…'
        linux   /boot/vmlinuz-4.12.3-gentoo root=/dev/sdb7 ro

but there should be two more lines that tell about loading the initrd and actually doing the load.

Compare it with Debian if you still have it.

There are two things you can do.
Rebuild the kernel with everything needed to mount the root filesystem configured as <*>, so no initrd is needed, or provide the intrd that matches your kernel.
You cannot use the Debian initrd file.
_________________
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
Babaorheum
n00b
n00b


Joined: 30 Jul 2017
Posts: 17
Location: France

PostPosted: Mon Jul 31, 2017 5:42 am    Post subject: Reply with quote

Build the initrd fixed the problem. Thanks NeddySeagoon :D
_________________
Sorry for my English, i'm French :-)
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