Kernel panic - not syncing: VFS: Unable to mount root fs on unknown block(0,0)
I have created a image file with this commands:
Code:
dd if=/dev/zero of=linux.img bs=16M count=1024 Code:
qemu-system-x86_64 -hda linux.img -vga std -m 4G Code:
# Begin /boot/grub/grub.cfg
|
I got an answer to that question here: https://unix.stackexchange.com/a/745535/93526. I tested the answer and works perfectly for my case.
|
the way to troubleshoot this is by getting a grub command line (c at grub boot screen) then using ‘ls’ to find where your kernel is located. then use “set root=<kernel partition>“, “linux <kernel path> root=<root fs>”, then “boot”.
when i build lfs on a virtual disk (i use qcow2 format) i run fdisk on the image and partition it like a physical disk. though i use lvm for all my disks which adds another layer of complexity in the form of an initrd… |
All times are GMT -5. The time now is 07:35 PM. |