hirakpatel
asked on
qemu on ubuntu 8.04 giving error VFS:Cannot open root device "hda" or unknown-block(0,0)
I am running following command:
sudo qemu -m 32 -kernel data/linux-2.6.23/arch/i38 6/boot/bzI mage -append "root=/dev/hda" -hda linux_i386.img -boot c
it gives me following error in qemu window:
VFS can not open root device "hda "
please append correct root= boot option
kernel panic:not syncing :VFS :Unable to mount root fs on unknown-block(0,0)
sudo qemu -m 32 -kernel data/linux-2.6.23/arch/i38
it gives me following error in qemu window:
VFS can not open root device "hda "
please append correct root= boot option
kernel panic:not syncing :VFS :Unable to mount root fs on unknown-block(0,0)
ASKER
I am using it from sit called free electrons to leran kernel programming.
how to check linux_i386.img ?
how to use qemu-img create ...?
REMEMBER:I am using kernel parameter and giving linux kernel image which I build for pentium pro processor.
how to check linux_i386.img ?
how to use qemu-img create ...?
REMEMBER:I am using kernel parameter and giving linux kernel image which I build for pentium pro processor.
I don't know qemu, but I do know disks, and /dev/hda is a _disk_, not a partition. Booting from a normal disk, you would need to use /dev/hda1 (or hda2 for the second partition, etc)
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
thanks everyone I got solution I have to enable ramfs support in kernel.
qemu-img create ...