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,118 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
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 video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

778 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