?
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
Medium Priority
?
2,178 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 1500 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
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.
Suggested Courses
Course of the Month12 days, 4 hours left to enroll

752 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