View previous topic :: View next topic |
Author |
Message |
AlfaGTV n00b


Joined: 26 Jul 2003 Posts: 53 Location: Belgium
|
Posted: Sun Mar 25, 2018 11:41 am Post subject: Kernel panic: Unable to mount rootfs on unknown block(8,36) |
|
|
I did a fresh install of Gentoo this week but cannot get the kernel to boot...
I get the following error after the kernel detects the sata drives: end Kernel panic - not syncing VFS: Unable to mount rootfs on unknown block(8,36)
What am I missing?
My boot drive is a sata SSD drive with 4 partitions, /dev/sdc2 is ext2 boot, root is /dev/sdc4 ext4. I do not use gpt/efi.
Code: | livecd ~ # blkid
/dev/loop0: TYPE="squashfs"
/dev/sda1: UUID="140edc94-8e4a-4268-a6d2-7b12225ab893" TYPE="reiserfs"
/dev/sdb1: UUID="cf708fc1-5d7d-46ef-8ff4-7126505605c8" TYPE="reiserfs"
/dev/sr0: UUID="2016-07-04-02-56-54-00" LABEL="Gentoo-amd64" TYPE="iso9660" PTUUID="13d41d02" PTTYPE="dos"
/dev/sdc1: SEC_TYPE="msdos" UUID="E8DD-8DE7" TYPE="vfat" PARTUUID="f950b2da-01"
/dev/sdc2: UUID="d69fedad-507d-4aeb-8fea-cc2904b7242f" TYPE="ext2" PARTUUID="f950b2da-02"
/dev/sdc3: UUID="d96b7687-586e-482e-abbd-5775235a61b6" TYPE="swap" PARTUUID="f950b2da-03"
/dev/sdc4: UUID="ccf2e08c-acce-4f18-96fc-197e273c43ba" TYPE="ext4" PARTUUID="f950b2da-04"
/dev/sdd1: UUID="db44c580-1deb-4a12-9cf1-9fc280b54121" TYPE="reiserfs" PARTUUID="cbf5814e-fd03-4152-8fd6-95d05dfaca66"
/dev/sde1: UUID="c6cd5556-f157-40fe-9fbb-70213ca07978" TYPE="reiserfs" PARTUUID="cf14048f-7123-49b1-801f-a5e0b4e8e7f4"
|
lspci:
Code: | livecd ~ # lspci
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (external gfx0 port B) (rev 02)
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD/ATI] RD990 I/O Memory Management Unit (IOMMU)
00:02.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (PCI express gpp port B)
00:09.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] RD890 PCI to PCI bridge (PCI express gpp port H)
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode] (rev 40)
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 SMBus Controller (rev 42)
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 Azalia (Intel HDA) (rev 40)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 LPC host controller (rev 40)
00:14.4 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SBx00 PCI to PCI Bridge (rev 40)
00:14.5 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
00:15.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB700/SB800/SB900 PCI to PCI bridge (PCIE port 0)
00:15.3 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] SB900 PCI to PCI bridge (PCIE port 3)
00:16.0 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:16.2 USB controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h Processor Function 5
01:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Device 699f (rev c7)
01:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device aae0
02:00.0 USB controller: Etron Technology, Inc. EJ188/EJ198 USB 3.0 Host Controller
04:00.0 RAID bus controller: Silicon Image, Inc. SiI 3132 Serial ATA Raid II Controller (rev 01)
05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)
|
My kernel configuration:
http://alfagtv.be/web/kernel-config.txt _________________ Cuore Sportivo
Last edited by AlfaGTV on Sun Mar 25, 2018 11:50 am; edited 1 time in total |
|
Back to top |
|
 |
fturco l33t


Joined: 08 Dec 2010 Posts: 762 Location: Italy
|
Posted: Sun Mar 25, 2018 11:48 am Post subject: |
|
|
Did you enable CONFIG_EXT4_FS in the kernel? It should be built in the kernel, not as a module. |
|
Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 44224 Location: 56N 3W
|
Posted: Sun Mar 25, 2018 11:50 am Post subject: |
|
|
AlfaGTV,
Code: | unknown block(8,36) | is a reference to sdc4
You say Quote: | root is /dev/sdc4 ext4 | so it looks like the ext4 kernel driver is not available to mount root.
Your kernel .config is too big for a post. Please use wgetpaste.
Thu interesting part of the kernel .config is missing. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
 |
AlfaGTV n00b


Joined: 26 Jul 2003 Posts: 53 Location: Belgium
|
Posted: Sun Mar 25, 2018 11:52 am Post subject: |
|
|
fturco wrote: | Did you enable CONFIG_EXT4_FS in the kernel? It should be built in the kernel, not as a module. |
Yes I have: CONFIG_EXT4_FS=y
See kernel config here: http://alfagtv.be/web/kernel-config.txt _________________ Cuore Sportivo |
|
Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 44224 Location: 56N 3W
|
Posted: Sun Mar 25, 2018 12:04 pm Post subject: |
|
|
AlfaGTV,
Some debug options prevent normal operation and you have Code: | CONFIG_EXT4_DEBUG=y |
Kernel debug options should only be on if you are debugging that area of the kernel.
There is a lot of junk in your kernel.
e.g.doesn't do what you think it does.
Turn off the debug stuff. Your kernel looks bloated but otherwise harmless. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
 |
AlfaGTV n00b


Joined: 26 Jul 2003 Posts: 53 Location: Belgium
|
Posted: Sun Mar 25, 2018 1:45 pm Post subject: |
|
|
Finally figured it out ... I first removed all the hard drives and dvd drive except the ssd drive. Then I saw that it tried to boot a non existing drive... I manually changed the grub.cfg file to root = /dev/sdb4 and it boots
Code: | mathias@octocore ~ $ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sdb4 95G 12G 78G 14% /
tmpfs 1.6G 1.2M 1.6G 1% /run
dev 10M 0 10M 0% /dev
shm 7.9G 32M 7.9G 1% /dev/shm
cgroup_root 10M 0 10M 0% /sys/fs/cgroup
/dev/sdb2 124M 54M 65M 46% /boot
/dev/sdd1 2.8T 33M 2.8T 1% /sdd
/dev/sdc1 2.8T 1.3T 1.5T 47% /sde
/dev/sde1 1.9T 1.1T 807G 57% /sda
/dev/sdf1 1.9T 1.1T 795G 58% /sdb
|
During the install (from the 'old' Gentoo liveDVD) my boot drive is /dev/sdc but when it boots the current kernel it's suddenly /dev/sdb ??? How is that possible?
I have been using GNU/Linux for nearly 20 years. Have installed Gentoo on a dozen pc's. It's the first time I've had so much trouble  _________________ Cuore Sportivo |
|
Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 44224 Location: 56N 3W
|
Posted: Sun Mar 25, 2018 2:36 pm Post subject: |
|
|
AlfaGTV,
HDD names are allocated on a first come first served basis.
You have two HDD controllers.
Code: | 00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD/ATI] SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode] (rev 40)
04:00.0 RAID bus controller: Silicon Image, Inc. SiI 3132 Serial ATA Raid II Controller (rev 01) |
All things being equal, the kernel will scan the PCI device in bus order but it depends on module load order and initialisation times.
It might even vary from kernel build to kernel build.
Make life easy and use something deterministic in grub.cfg.
root=PARTUUID= will find the root partition wherever it is and regardless of drives being added or removed.
Checking the syntax and making the autoblackmagic plant the correct kernel line is left as an exercise for the reader. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
 |
|
|
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
|
|