From: "Girish V" <girish.xen@gmail.com>
To: "C.W. Betts" <computers57@hotmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Disk geometry
Date: Thu, 17 Apr 2008 12:52:01 -0400 [thread overview]
Message-ID: <2122f0920804170952h13f39196ma8df61faf4e2819c@mail.gmail.com> (raw)
In-Reply-To: <BAY110-DAV7F08EC6A5F1C615158F03B9E50@phx.gbl>
[-- Attachment #1: Type: text/plain, Size: 2637 bytes --]
Sorry - I should have mentioned that my disc image is indeed in raw format.
Girish
On Thu, Apr 17, 2008 at 12:42 PM, C.W. Betts <computers57@hotmail.com>
wrote:
> On Thursday 17 April 2008 08:55:17 am Girish V wrote:
> > Hello,
> >
> > I am trying to use a disk image which I created using qemu for Bochs. I
> am
> > having some issues in figuring out the geometry of the disk. Bochs
> requires
> > that I specify
> > a) the number of cylinders
> > b) the number of heads
> > c) the number of tracks
> >
> > When I do fdisk -lu fc5_3.0.2.img I get
> >
> ---------------------------------------------------------------------------
> >--------------------- last_lba(): I don't know how to handle files with
> mode
> > 81a4
> > You must set cylinders.
> > You can do this from the extra functions menu.
> >
> > Disk fc5_3.0.2.img: 0 MB, 0 bytes
> > 255 heads, 63 sectors/track, 0 cylinders, total 0 sectors
> > Units = sectors of 1 * 512 = 512 bytes
> >
> >
> > Device Boot Start End Blocks Id System
> > fc5_3.0.2.img1 * 63 10490444 5245191 83 Linux
> > fc5_3.0.2.img2 10490445 12578894 1044225 82 Linux swap
> /
> > Solaris
> >
> ---------------------------------------------------------------------------
> >---------------------
> >
> > When I boot up the disk using qemu and do fdisk -lu /dev/hda from
> *inside
> > qemu*, I get
> >
> ---------------------------------------------------------------------------
> >--------------------- Disk /dev/hda: 6442 MB, 6442450944 bytes
> > 255 heads, 63 sectors/track, 783 cylinders, total 12582912 sectors
> > Units = sectors of 1 * 512 = 512 bytes
> >
> >
> > Device Boot Start End Blocks Id
> System
> > /dev/hda1 * 63 10490444 5245191 83 Linux
> > /dev/hda2 10490445 12578894 1044225 82 Linux swap
> /
> > Solaris
> >
> ---------------------------------------------------------------------------
> >---------------------
> >
> >
> > I tried using the geometry as seen inside qemu (783/255/63) in bochs but
> > bochs fails with the message
> > [HD ] ata0-0 disk size doesn't match specified geometry
> >
> >
> > Any ideas how I can use this disk. The only other option is to create a
> > disk using bochs from scratch - which I would like to avoid.
> >
> > Any help is appreciated.
> >
> > Girish
>
> I think, in order for Bochs to use it, the disk image either needs to be
> in RAW or bochs format. You can covert it using qemu-img.
> You can also find out the format by doing 'qemu-img info' then the path to
> the disk image.
>
[-- Attachment #2: Type: text/html, Size: 3646 bytes --]
prev parent reply other threads:[~2008-04-17 16:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-17 14:55 [Qemu-devel] Disk geometry Girish V
[not found] ` <200804171042.32299.computers57@hotmail.com>
2008-04-17 16:42 ` C.W. Betts
2008-04-17 16:52 ` Girish V [this message]
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=2122f0920804170952h13f39196ma8df61faf4e2819c@mail.gmail.com \
--to=girish.xen@gmail.com \
--cc=computers57@hotmail.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).