Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel Panic - not syncing: VFS: Unable to mount root fs
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
tobstone
n00b
n00b


Joined: 05 Nov 2021
Posts: 22

PostPosted: Sat Dec 04, 2021 11:23 pm    Post subject: Reply with quote

im using make menuconfig for kernel configs.
here is /dev after dev is mounted:
Code:

# ls /mnt/gentoo/dev
block
bsg
btrfs-control
bus
char
console
cpu_dma_latency
disk
fb0
fd
full
fuse
gpiochip0
gpiochip1
gpmctl
hidraw0
hidraw1
hidraw2
hidraw3
hwrng
input
kmem
kmsg
kvm
log
loop-control
loop0
loop1
loop2
loop3
loop4
loop5
loop6
loop7
mapper
mem
mqueue
net
null
nvme0
nvme0n1
nvme0n1p1
nvme0n1p2
nvme0n1p3
nvram
port
ppp
psaux
ptmx
pts
ram0
ram1
ram10
ram11
ram12
ram13
ram14
ram15
ram2
ram3
ram4
ram5
ram6
ram7
ram8
ram9
random
rfkill
rtc
rtc0
sda
sda1
sdb
sdb1
sdc
sdc1
sdc4
shm
snd
stderr
stdin
stdout
tty
tty0
tty1
tty10
tty11
tty12
tty13
tty14
tty15
tty16
tty17
tty18
tty19
tty2
tty20
tty21
tty22
tty23
tty24
tty25
tty26
tty27
tty28
tty29
tty3
tty30
tty31
tty32
tty33
tty34
tty35
tty36
tty37
tty38
tty39
tty4
tty40
tty41
tty42
tty43
tty44
tty45
tty46
tty47
tty48
tty49
tty5
tty50
tty51
tty52
tty53
tty54
tty55
tty56
tty57
tty58
tty59
tty6
tty60
tty61
tty62
tty63
tty7
tty8
tty9
ttyS0
ttyS1
ttyS2
ttyS3
urandom
vcs
vcs1
vcs10
vcs11
vcs12
vcs2
vcs3
vcs4
vcs5
vcs6
vcs7
vcs8
vcs9
vcsa
vcsa1
vcsa10
vcsa11
vcsa12
vcsa2
vcsa3
vcsa4
vcsa5
vcsa6
vcsa7
vcsa8
vcsa9
vcsu
vcsu1
vcsu10
vcsu11
vcsu12
vcsu2
vcsu3
vcsu4
vcsu5
vcsu6
vcsu7
vcsu8
vcsu9
vga_arbiter
vhci
vhost-net
zero

i ran
Code:

make clean
make -j8
make modules_install
make install

and i am getting the same kernel panic. i get a handful of errors on shutdown of the livecd, is there a way for me to put them in a log somewhere? its something about mount -ro.
here is a dpaste of my new kernel.config: https://dpaste.com/8FBDPUP8A
Back to top
View user's profile Send private message
tobstone
n00b
n00b


Joined: 05 Nov 2021
Posts: 22

PostPosted: Sat Dec 04, 2021 11:36 pm    Post subject: Reply with quote

i took a video of the screen. the errors on shutdown of the livecd are:
Code:
In use but fuser finds nothing
/lib/rc is not writeable!
Unable to save dependency cache
In use but fuser finds nothing
ERROR: mount-ro failed to start

the first
Code:
In use but fuser finds nothing

occurs after /mnt/cdrom is unmounted, as the final unmount. i do not have a dvd/cd drive, im using a liveusb.
the second one occurs after /mnt/cdrom is remounted read-only.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Dec 05, 2021 7:04 pm    Post subject: Reply with quote

tobstone,

The errors on shutdown of the liveCD can be ignored. /mnt/cdrom is a mount point that belongs it the minimal ISO, its always that, whatever media it its actually being run from.

Code:
make clean
make -j8
make modules_install
make install
where in there did you mount boot, or was it mounted to /mnt/gentoo/boot before the chroot?

Please post your
Code:
lspci -nnk
from the boot media.
Likewise the output of
Code:
lsusb


I have in mind to drop your .config into the 5.10.61-gentoo source tree and look it over and maybe build you a kernel to try, or at least, if I spot something wrong, pass the config back.
_________________
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
tobstone
n00b
n00b


Joined: 05 Nov 2021
Posts: 22

PostPosted: Mon Dec 06, 2021 12:24 am    Post subject: Reply with quote

mounting /boot was before chrooting
lspci -nnk:
Code:

# lspci -nnk
00:00.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Root Complex [1022:1450]
   Subsystem: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Root Complex [1022:1450]
00:00.2 IOMMU [0806]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) I/O Memory Management Unit [1022:1451]
   Subsystem: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) I/O Memory Management Unit [1022:1451]
00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge [1022:1452]
00:01.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe GPP Bridge [1022:1453]
   Kernel driver in use: pcieport
00:01.3 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe GPP Bridge [1022:1453]
   Kernel driver in use: pcieport
00:02.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge [1022:1452]
   DeviceName:  Onboard IGD
00:03.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge [1022:1452]
00:03.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) PCIe GPP Bridge [1022:1453]
   Kernel driver in use: pcieport
00:04.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge [1022:1452]
00:07.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge [1022:1452]
00:07.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Internal PCIe GPP Bridge 0 to Bus B [1022:1454]
   Kernel driver in use: pcieport
00:08.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge [1022:1452]
00:08.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Internal PCIe GPP Bridge 0 to Bus B [1022:1454]
   Kernel driver in use: pcieport
00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller [1022:790b] (rev 59)
   Subsystem: Micro-Star International Co., Ltd. [MSI] FCH SMBus Controller [1462:7a39]
   Kernel driver in use: piix4_smbus
   Kernel modules: i2c_piix4
00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge [1022:790e] (rev 51)
   Subsystem: Micro-Star International Co., Ltd. [MSI] FCH LPC Bridge [1462:7a39]
00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 0 [1022:1460]
00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 1 [1022:1461]
00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 2 [1022:1462]
00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 3 [1022:1463]
00:18.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 4 [1022:1464]
00:18.5 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 5 [1022:1465]
00:18.6 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 6 [1022:1466]
00:18.7 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Data Fabric: Device 18h; Function 7 [1022:1467]
01:00.0 Non-Volatile memory controller [0108]: Sandisk Corp WD Blue SN550 NVMe SSD [15b7:5009] (rev 01)
   Subsystem: Sandisk Corp WD Blue SN550 NVMe SSD [15b7:5009]
   Kernel driver in use: nvme
   Kernel modules: nvme
03:00.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] 300 Series Chipset USB 3.1 xHCI Controller [1022:43bb] (rev 02)
   Subsystem: ASMedia Technology Inc. 300 Series Chipset USB 3.1 xHCI Controller [1b21:1142]
   Kernel driver in use: xhci_hcd
   Kernel modules: xhci_pci
03:00.1 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] 300 Series Chipset SATA Controller [1022:43b7] (rev 02)
   Subsystem: ASMedia Technology Inc. 300 Series Chipset SATA Controller [1b21:1062]
   Kernel driver in use: ahci
   Kernel modules: ahci
03:00.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:43b2] (rev 02)
   Kernel driver in use: pcieport
04:04.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] 300 Series Chipset PCIe Port [1022:43b4] (rev 02)
   Kernel driver in use: pcieport
04:05.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] 300 Series Chipset PCIe Port [1022:43b4] (rev 02)
   Kernel driver in use: pcieport
04:06.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] 300 Series Chipset PCIe Port [1022:43b4] (rev 02)
   Kernel driver in use: pcieport
04:07.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] 300 Series Chipset PCIe Port [1022:43b4] (rev 02)
   Kernel driver in use: pcieport
1e:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
   Subsystem: Micro-Star International Co., Ltd. [MSI] RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [1462:7a39]
   Kernel driver in use: r8169
   Kernel modules: r8169
22:00.0 VGA compatible controller [0300]: NVIDIA Corporation GP106 [GeForce GTX 1060 3GB] [10de:1c02] (rev a1)
   Subsystem: Gigabyte Technology Co., Ltd GP106 [GeForce GTX 1060 3GB] [1458:373a]
22:00.1 Audio device [0403]: NVIDIA Corporation GP106 High Definition Audio Controller [10de:10f1] (rev a1)
   Subsystem: Gigabyte Technology Co., Ltd GP106 High Definition Audio Controller [1458:373a]
   Kernel driver in use: snd_hda_intel
   Kernel modules: snd_hda_intel
23:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Zeppelin/Raven/Raven2 PCIe Dummy Function [1022:145a]
   Subsystem: Advanced Micro Devices, Inc. [AMD] Zeppelin/Raven/Raven2 PCIe Dummy Function [1022:145a]
23:00.2 Encryption controller [1080]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Platform Security Processor [1022:1456]
   Subsystem: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) Platform Security Processor [1022:1456]
23:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) USB 3.0 Host Controller [1022:145c]
   Subsystem: Micro-Star International Co., Ltd. [MSI] Family 17h (Models 00h-0fh) USB 3.0 Host Controller [1462:7a39]
   Kernel driver in use: xhci_hcd
   Kernel modules: xhci_pci
24:00.0 Non-Essential Instrumentation [1300]: Advanced Micro Devices, Inc. [AMD] Zeppelin/Renoir PCIe Dummy Function [1022:1455]
   Subsystem: Advanced Micro Devices, Inc. [AMD] Zeppelin/Renoir PCIe Dummy Function [1022:1455]
24:00.2 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] [1022:7901] (rev 51)
   Subsystem: Micro-Star International Co., Ltd. [MSI] FCH SATA Controller [AHCI mode] [1462:7a39]
   Kernel driver in use: ahci
   Kernel modules: ahci
24:00.3 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-0fh) HD Audio Controller [1022:1457]
   Subsystem: Micro-Star International Co., Ltd. [MSI] Family 17h (Models 00h-0fh) HD Audio Controller [1462:fa39]
   Kernel driver in use: snd_hda_intel
   Kernel modules: snd_hda_intel

lsusb
Code:
# lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 002: ID 1af3:0001 Kingsis Technology Corporation ZOWIE Gaming mouse
Bus 001 Device 003: ID 8564:1000 Transcend Information, Inc. JetFlash
Bus 001 Device 005: ID 04d8:eed2 Microchip Technology, Inc. CTRL Keyboard
Bus 001 Device 004: ID 04d8:eec5 Microchip Technology, Inc. Massdrop Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

thank u again i really appreciate your help. even if this doesnt get figured out and i have to do a fresh install i am learning quite a bit
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Mon Dec 06, 2021 12:16 pm    Post subject: Reply with quote

tobstone,

I have a very similar motherboard. In fact, my .config will be a good starting point, so being lazy, its at http://dpaste.com/5KB7CUCGE

A few things to note. That .config is for gentoo-sources-5.15.0, not your 5.10.61.

Save your config.
Code:
wget http://dpaste.com/5KB7CUCGE
into your source tree
Code:
cp 5KB7CUCGE .config

Code:
make clean
make oldconfig

The oldconfig step will silently drop options your kernel does not have and ask you about anything in your kernel not in my .config.
The defaults will probably be OK. That's the option in uppercase.
Then continue with your normal kernel build process.

I expect it to get past mounting root but if the console goes blank or freezes soon after, I won't be surprised.
It has amdgpu built in and you have an nVidia GPU.
Code:
CONFIG_VGA_CONSOLE=y
so you may be lucky.
_________________
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
tobstone
n00b
n00b


Joined: 05 Nov 2021
Posts: 22

PostPosted: Tue Dec 07, 2021 7:09 am    Post subject: Reply with quote

same error. didnt get past mounting root
Back to top
View user's profile Send private message
tobstone
n00b
n00b


Joined: 05 Nov 2021
Posts: 22

PostPosted: Tue Dec 07, 2021 7:12 am    Post subject: Reply with quote

i tried it twice. once with the filename of the original config left the same, and one with jt as .config.bak. im a bit confused as to how make determines which .config file to use, could you clear that up for me?
Back to top
View user's profile Send private message
tobstone
n00b
n00b


Joined: 05 Nov 2021
Posts: 22

PostPosted: Tue Dec 07, 2021 8:19 am    Post subject: Reply with quote

nevermind, i believe the second try was messed up due to the .config generated by the first one screwinf with the oldconfig. i got to login but my usb drivers arent in this kernel so i cant get any further. progress!
Quote:
im a bit confused as to how make determines which .config file to use, could you clear that up for me?

i know for sure its the filenames now, but what does it do when there are multiple filenames that end in [/list].config?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Tue Dec 07, 2021 11:23 am    Post subject: Reply with quote

tobstone,

The default is to use the file named .config
Its normally hidden as its name starts with a dot. FIles named <something>.config are ignored.

Ahh ... my kernel is for a static /dev. I forgot that.
There is no DEVTMPFS support so when root mounts the /dev is in a mess almost empty. That means anything that needs /dev (almost everything) will fail.
There is probably no EVDEV support either.

You will need both.

Anyway, it mounted root, so we have confirmed the problem is your kernel.

You have three choices as get you going now.

  • Keep going with your own kernel .config.
  • Start with my config with the above changes
  • Use genkernel to get you going.


Once your system boots, you can have several kernels installed and pick from the grub menu, this means you can use another kernel while you make one that you like.
The advantage is that you don't use live media and chroot to pick up the pieces. Its a menu item.
If you go the alternate kernel route, use different kernel versions, so that the modules are separated in /lib/modules.
_________________
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
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
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