qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Disk geometry
@ 2008-04-17 14:55 Girish V
       [not found] ` <200804171042.32299.computers57@hotmail.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Girish V @ 2008-04-17 14:55 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1958 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 2896 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-04-17 16:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).