From: Mark Williamson <maw48@cl.cam.ac.uk>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] Mounting qemu virtual disk images from host linux os
Date: Mon, 17 Jan 2005 03:31:22 +0000 [thread overview]
Message-ID: <200501170331.22395.maw48@cl.cam.ac.uk> (raw)
In-Reply-To: <41EB1A04.4060605@gsinet.net>
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
On Monday 17 January 2005 01:51, Tom Sandholm wrote:
> Oh yes, it is multi-partitioned. Any suggestions on how I can select a
> specific partition?
>
> Thanks
> Tom
>
> Magnus Damm wrote:
> >On Sun, 16 Jan 2005 18:33:54 -0500, Tom Sandholm <sandholm@gsinet.net>
wrote:
> >>I found the lomount program that is supposed to mount your qemu
> >>virtual-disk-images; but it isn't working for me.
> >>
> >>I've installed debian "sarge" onto the virtual image, using ext3
> >>filesystems as default, with /dev/hda1 as the primary bootable linux
> >>partition (root).
> >>
> >>When I execute the lomount program, here's what I get.
> >>============================================================
> >>nixsys:/qemu# ./lomount -t ext3 -diskimage debian02_sarge_hda.img /mnt
> >>mount: wrong fs type, bad option, bad superblock on /dev/loop0,
> >> or too many mounted file systems
> >>nixsys:/qemu#
> >>===========================================================
> >>
> >>What am I doing wrong?
> >
> >I don't know about lomount, but are you sure your .img-file is a
> > partition? Maybe the file represents a virtual disk with partition table
> > and partitions?
> >
> >/ magnus
> >
> >
> >_______________________________________________
> >Qemu-devel mailing list
> >Qemu-devel@nongnu.org
> >http://lists.nongnu.org/mailman/listinfo/qemu-devel
next prev parent reply other threads:[~2005-01-17 3:59 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 [this message]
2005-01-17 15:26 ` Jim C. Brown
2005-01-17 21:59 ` Tom Sandholm
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=200501170331.22395.maw48@cl.cam.ac.uk \
--to=maw48@cl.cam.ac.uk \
--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).