From: "kaiven long" <kaiven.long@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] problem with qemu-img to create boot disk
Date: Wed, 23 May 2007 19:39:38 +0800 [thread overview]
Message-ID: <8770b6af0705230439x6e932f79qf5398fea3017e3d4@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1354 bytes --]
Hi,folks
I am using QEMU to debug Linux Kernel. And a boot disk is create
through qemu-img. It can cannot be booted with other built kernel. The
process is as the following show:
create disk image like this:
qemu-img create -f raw rootdisk.img 8G
install redhat EL4 U4:
qemu -boot d -cdrom rhel4u4-disc1.img -hda rootdisk.img
during installation:
/dev/hda1 ---> /boot ext2
/dev/hda2 ----->/ ext2
/dev/hda3------> swap
after the installation, file rootdisk.img, it shows:
rootdisk.img: x86 boot sector, code offset 0x48
it can work like this:
qemu rootdisk.img
enter the system:fdisk -l, it shows that
Partition table entries are not in disk order
it also panics with other new built kernel like:
qemu -kernel bzImage -hda rootdisk.img
but the same kernel can work with the disk image down from qemu's
website:
qemu -kernel bzImage -hda linux-0.2.img
The only difference between rootdisk.img and linux-0.2.img is their
file atrributes as the following:
rootdisk.img: x86 boot sector, code offset 0x48
linux-0.2.img: x86 boot sector
pls help check the above process. I will appreciate that anyone
points the potential errors.
thank you~
best wishes,
kaiven
[-- Attachment #2: Type: text/html, Size: 2717 bytes --]
reply other threads:[~2007-05-23 11:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8770b6af0705230439x6e932f79qf5398fea3017e3d4@mail.gmail.com \
--to=kaiven.long@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).