Solved

qemu on ubuntu 8.04 giving error VFS:Cannot open root device "hda" or unknown-block(0,0)

Posted on 2008-06-16
5
2,105 Views
Last Modified: 2008-11-03
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)
0
Comment
Question by:hirakpatel
  • 2
  • 2
5 Comments
 
LVL 13

Expert Comment

by:MicheleMarcon
ID: 21800175
Have you prepared the linux_i386.img image file?

qemu-img create ...
0
 

Author Comment

by:hirakpatel
ID: 21800505
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.
0
 
LVL 5

Expert Comment

by:pointerstop
ID: 21801562
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)
0
 
LVL 13

Accepted Solution

by:
MicheleMarcon earned 500 total points
ID: 21801879
Take a look here (jump to "create the environment")

http://ubuntu-tutorials.com/2007/07/04/setting-up-qemu-kqemu-on-ubuntu-704-feisty/

You basically need to create the virtual hard disk where the virtualized PC will live.
If you downloaded the .img file you need to insert this file on the command.
0
 

Author Comment

by:hirakpatel
ID: 21805974
thanks everyone I got solution I have to enable ramfs support in kernel.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now