From: Tom Sandholm <sandholm@gsinet.net>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Mounting qemu virtual disk images from host linux os
Date: Mon, 17 Jan 2005 16:59:54 -0500 [thread overview]
Message-ID: <41EC355A.9090405@gsinet.net> (raw)
In-Reply-To: <20050117152615.GB5897@jbrown.mylinuxbox.org>
[-- Attachment #1.1: Type: text/plain, Size: 2255 bytes --]
Hi,
Thanks for all the replies.
The image was created with qemu-img, with a size of 4GB.
I am able to fdisk image-name and see the partitions. (as follows)
Just can't mount partition 1.
====================================
nixsys:/qemu# fdisk debian01_sarge_hda.img
The number of cylinders for this disk is set to 8322.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk debian01_sarge_hda.img: 4294 MB, 4294967296 bytes
16 heads, 63 sectors/track, 8322 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
debian01_sarge_hda.img1 * 1 7904 3983584+ 83 Linux
debian01_sarge_hda.img2 7905 8322 210672 f
W95 Ext'd (LBA)
debian01_sarge_hda.img5 7905 8322 210640+ 82
Linux swap
Command (m for help):
========================================
Thanks!
Tom Sandholm.
Jim C. Brown wrote:
>On Mon, Jan 17, 2005 at 03:31:22AM +0000, Mark Williamson wrote:
>
>
>>I've not used lomount before so maybe you can pass flags to lomount directly.
>>I can tell you how to do it using losetup / mount separately:
>>
>>You can use losetup to bind a partition of the disk file to a /dev/loop device
>>and then mount that. Use the -o option to specify the offset into the file
>>where the partition is to be found. Use the -s option to specify the size of
>>the partition.
>>
>>You can probably fdisk the file (or, if that doesn't work, a loop device bound
>>to the whole file) to figure out where the partition boundaries are.
>>
>>HTH,
>>Mark
>>
>>
>
>lomount does all of this internally. You can't pass it an offset into the file,
>only which partition you wish to mount. It calculates the offset by looking it
>up in the partition table.
>
>I'm wondering if he is trying to mount a COW image or some fancy-but-qemu-supported
>disk image. lomount has only been tested with raw images and sparse images, and
>is unlikely to work w/ anything else.
>
>
>
[-- Attachment #1.2: Type: text/html, Size: 3380 bytes --]
[-- Attachment #2: sandholm.vcf --]
[-- Type: text/x-vcard, Size: 101 bytes --]
begin:vcard
fn:Tom Sandholm
n:Sandholm;Tom
email;internet:sandholm@gsinet.net
version:2.1
end:vcard
next prev parent reply other threads:[~2005-01-17 22:21 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-16 23:33 [Qemu-devel] Mounting qemu virtual disk images from host linux os Tom Sandholm
2005-01-17 0:42 ` Magnus Damm
2005-01-17 1:51 ` Tom Sandholm
2005-01-17 3:31 ` Mark Williamson
2005-01-17 15:26 ` Jim C. Brown
2005-01-17 21:59 ` Tom Sandholm [this message]
2005-01-17 4:01 ` Bartosz Fabianowski
2005-01-17 14:24 ` Jim C. Brown
2005-01-17 14:22 ` Jim C. Brown
2005-01-17 14:26 ` Jim C. Brown
2005-01-17 22:04 ` Tom Sandholm
2005-01-17 23:13 ` [Qemu-devel] " Heike C. Zimmerer
[not found] ` <87r7kjejij.fsf@tazzelwurm.hczim.de>
2005-01-17 23:50 ` Heike C. Zimmerer
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=41EC355A.9090405@gsinet.net \
--to=sandholm@gsinet.net \
--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).