Link to home
Create AccountLog in
Avatar of hirakpatel
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/i386/boot/bzImage -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)
Avatar of MicheleMarcon
MicheleMarcon
Flag of Italy image

Have you prepared the linux_i386.img image file?

qemu-img create ...
Avatar of hirakpatel
hirakpatel

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.
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
Avatar of MicheleMarcon
MicheleMarcon
Flag of Italy image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
thanks everyone I got solution I have to enable ramfs support in kernel.