qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Mounting qemu virtual disk images from host linux os


From: Mark Williamson
Subject: Re: [Qemu-devel] Mounting qemu virtual disk images from host linux os
Date: Mon, 17 Jan 2005 03:31:22 +0000
User-agent: KMail/1.7.1

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 <address@hidden> 
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
> >address@hidden
> >http://lists.nongnu.org/mailman/listinfo/qemu-devel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]