I have created a image file with this commands:
Code:
dd if=/dev/zero of=linux.img bs=16M count=1024
cfdisk linux.img
mkfs.ext4 linux.img
and installed a linux system following the instructions from the book Linux From Scratch 11.3. I have access to this system via chroot, but when I try run it with this command:
Code:
qemu-system-x86_64 -hda linux.img -vga std -m 4G
the initialization of the system is interrupted by the error described in the title of this question. my file /boot/grub/grub.cfg looks like this:
Code:
# Begin /boot/grub/grub.cfg
set default=0
set timeout=5
insmod ext4
menuentry "GNU/Linux, Linux 6.1.11-lfs-11.3" {
linux /boot/vmlinuz-6.1.11-lfs-11.3 root=/dev/hda1 ro
what I have tried:
- uncommenting the line set root=(hd0,2)' and trying the values hd0,0orhd0,1(the system not even initialize with this, and I got the errorhd0,X not found` after the grub start screen.
- changing the root value in the line started with linux in the menuentry option to /dev/loopXX (I got the same error).
- changing the root value in the line started with linux in the menuentry option to /dev/sda1 (in this case, same message, but with the block as (8,1)).
Anyone can tell me what I can do to fix this issue?