View previous topic :: View next topic |
Author |
Message |
Satori80a n00b
Joined: 06 Jun 2017 Posts: 46
|
Posted: Sun Jul 02, 2017 3:29 pm Post subject: Kernel panic without initramfs [Solved] |
|
|
Hello,
I was hoping you guys could help me with a kernel panic situation. I started out with a default genkernel -- genkernel --makeopts=-j4 --menuconfig (to add ext4 support) all -- which builds an initramfs. Well, now I'm trying to ditch the initramfs, but the result is not booting:
Code: |
[ 0.725xxx] VFS: Cannot open root device "sda3" or unknown-block(0,0): error -6
[ 0.725xxx] Please append a correct "root=" boot option: here are the available partitions:
[ 0.725xxx] 0100 16384 ram0 [ 0.725593] (driver?) |
... etc through ram15. Then:
Code: |
[ 0.729xxx] Kernel panic - not syncing: Unable to mount root fs on unknown-block(0,0)
[ 0.729xxx] CPU: Z PID: 1 Comm: swapper/0 Not tainted 4.19.34-gentoo #5
[ 0.729xxx] Hardware name: MSI MS-7751/Z77A-GD65 (MS-7751), BIOS V10.10 07/23/2013 |
That last line is obviously my mainboard info. Also, the information in the code blocks may not be 100% accurate as I reproduced it from a quite blurry mobile phone photo.
Then it spews a bunch of stuff in hex, which I doubt is helpful, and a call trace which I could type up if anyone wants to see it, but I don't feel like that's the crux of the issue.
I'm using grub 2.02 as my bootloader. I've never used grub before so I know almost nothing about it or how it works -- I was always a lilo guy.
The drive is gpt:
sda1 is 2mb, empty and useless.
sda2 is a 128mb fat32 EFI partition which mounts @ /boot/efi.
sda3 is my 49.98GiB ext4 root partition.
sda4 is ntfs and not relevant here.
The kernel config:
https://pastebin.com/Pgkcs1Lh
After compiling I run: grub-mkconfig -o /boot/grub/grub.cfg.
Let me know if any other information would be helpful.
Thanks,
Scott
Last edited by Satori80a on Sun Jul 02, 2017 6:01 pm; edited 2 times in total |
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Sun Jul 02, 2017 4:20 pm Post subject: |
|
|
Suggest you create a system rescue cd or system rescue usb , boot it, run lspci -k | wgetpaste -t, post the url returned here so the peanut gallery can see what your hardware is and what drivers the harware needs. Note that ahci and nvme are modules (=m) in your config. The kernel needs disk drivers builtin if an initramfs is not provided. Suggest changing your configuration to convert efi, disk drive, and file system modules to builin. _________________ Defund the FCC. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Sun Jul 02, 2017 4:39 pm Post subject: |
|
|
Satori80a,
The kernel must be able to mount the root filesystem with no user space help and no loadable modules.
is a pointer to being unable to see the HDD at all.
The following must be built it.
Partition table support for your disk label.
The SCSI stack,
Thats SCSI Sopport, SCSI Disk Support and your HDD motherboard hardware driver, which can be several opinons.
In your case, ext4 filesystem support.
Everything in that list must be configured as <*>, thats =y is the list below.
Code: | CONFIG_MSDOS_PARTITION=y
CONFIG_EFI_PARTITION=y
CONFIG_SCSI=y
CONFIG_BLK_DEV_SD=m
CONFIG_ATA=y
CONFIG_SATA_AHCI=m
CONFIG_EXT4_FS=y
CONFIG_EXT4_FS_POSIX_ACL=y |
CONFIG_BLK_DEV_SD=m is a showstopper, that the high level HDD driver.
CONFIG_SATA_AHCI=m is a popular HDD chipset driver, it may not be the one you need but for the one you need, =m is the wrong setting. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
Satori80a n00b
Joined: 06 Jun 2017 Posts: 46
|
Posted: Sun Jul 02, 2017 5:42 pm Post subject: |
|
|
That's got it, thank you both. You are surely gentlemen and scholars.
Scott |
|
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
|
|