You are not logged in.

#1 2023-11-06 23:42:57

waffle0007
Member
From: USA
Registered: 2021-08-14
Posts: 20

Unable to mount root on boot

I'm attempting to boot a custom kernel, but running into a kernel panic:

[1.999218] /dev/root: Can't open blockdev
[1.999272] List of all bdev filesystems:
[1.999291] ext3
[1.999292] ext2
[1.999303] ext4
[1.999314] vfat
[1.999325] fuseblk
[1.999337]
[1.999358] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

The menuentry's in /boot/grub/grub.cfg are identical:

1c1
< menuentry 'Arch Linux, with Linux linux-saturn' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-saturn-advanced-205926d3-3307-467d-8f62-9b31b1c196ea' {
---
> menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-205926d3-3307-467d-8f62-9b31b1c196ea' {
9,10c9,10
< 	echo	'Loading Linux linux-saturn ...'
< 	linux	/vmlinuz-linux-saturn root=/dev/mapper/volgroup0-lv_root rw  loglevel=3 quiet
---
> 	echo	'Loading Linux linux ...'
> 	linux	/vmlinuz-linux root=/dev/mapper/volgroup0-lv_root rw  loglevel=3 quiet
12c12
< 	initrd	/intel-ucode.img /initramfs-linux-saturn.img
---
> 	initrd	/intel-ucode.img /initramfs-linux-fallback.img

Booting the existing vmlinuz-linux  boots successfully, but vmlinuz-linux-saturn fails. I've messed around with different settings in GRUB commandline, without any luck. I'm not sure what may be needed in my kernel config. Please let me know if I can provide any additional information. Thanks for any help! smile

Offline

#2 2023-11-07 07:55:35

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,422

Re: Unable to mount root on boot

boot the regular kernel, check lsmod and cross-reference that w/ the modules you enabled for your custom kernel - from a filesystem (btrfs) over device drivers (ata, nvme,…) to DM support (lvm) this could be pretty much everything.
But if that list is complete and doesn't exclude nodev, you're lacking a lot of crucial stuff.

Offline

Board footer

Powered by FluxBB