From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CqfFM-0006o1-NE for qemu-devel@nongnu.org; Mon, 17 Jan 2005 17:21:17 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CqfEn-0006cK-GM for qemu-devel@nongnu.org; Mon, 17 Jan 2005 17:20:47 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CqfEm-0006Ze-M2 for qemu-devel@nongnu.org; Mon, 17 Jan 2005 17:20:40 -0500 Received: from [216.198.101.68] (helo=trueband.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1Cqeza-0007uP-Jh for qemu-devel@nongnu.org; Mon, 17 Jan 2005 17:04:58 -0500 Message-ID: <41EC3687.20805@gsinet.net> Date: Mon, 17 Jan 2005 17:04:55 -0500 From: Tom Sandholm MIME-Version: 1.0 Subject: Re: [Qemu-devel] Mounting qemu virtual disk images from host linux os References: <41EAF9E2.9030108@gsinet.net> <20050117142640.GC5486@jbrown.mylinuxbox.org> In-Reply-To: <20050117142640.GC5486@jbrown.mylinuxbox.org> Content-Type: multipart/mixed; boundary="------------020401020908080404000704" Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This is a multi-part message in MIME format. --------------020401020908080404000704 Content-Type: multipart/alternative; boundary="------------030304000807020403000803" --------------030304000807020403000803 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Output of "sfdisk -l debian02_sarge_hda.img". ==================================================== :nixsys:/qemu# sfdisk -l debian02_sarge_hda.img Disk debian02_sarge_hda.img: cannot get geometry Disk debian02_sarge_hda.img: 0 cylinders, 0 heads, 0 sectors/track Warning: The partition table looks like it was made for C/H/S=*/16/63 (instead of 0/0/0). For this listing I'll assume that geometry. Units = cylinders of 516096 bytes, blocks of 1024 bytes, counting from 0 Device Boot Start End #cyls #blocks Id System debian02_sarge_hda.img1 * 0+ 7903 7904- 3983584+ 83 Linux debian02_sarge_hda.img2 7904 8321 418 210672 f W95 Ext'd (LBA) debian02_sarge_hda.img3 0 - 0 0 0 Empty debian02_sarge_hda.img4 0 - 0 0 0 Empty debian02_sarge_hda.img5 7904+ 8321 418- 210640+ 82 Linux swap >On Sun, Jan 16, 2005 at 06:33:54PM -0500, Tom Sandholm 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? >>Thanks! >> >>Tom Sandholm >> >> >> > >What partition do you want to mount? Are you sure it is the very first parition? >What is the output of "sdisk -l debian02_sarge_hda.img" ? > > > >>_______________________________________________ >>Qemu-devel mailing list >>Qemu-devel@nongnu.org >>http://lists.nongnu.org/mailman/listinfo/qemu-devel >> >> > > > > --------------030304000807020403000803 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Output of "sfdisk -l  debian02_sarge_hda.img".

====================================================
:nixsys:/qemu# sfdisk -l debian02_sarge_hda.img
Disk debian02_sarge_hda.img: cannot get geometry

Disk debian02_sarge_hda.img: 0 cylinders, 0 heads, 0 sectors/track
Warning: The partition table looks like it was made
  for C/H/S=*/16/63 (instead of 0/0/0).
For this listing I'll assume that geometry.
Units = cylinders of 516096 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
debian02_sarge_hda.img1   *      0+   7903    7904-   3983584+  83  Linux
debian02_sarge_hda.img2       7904    8321     418     210672    f  W95 Ext'd (LBA)
debian02_sarge_hda.img3          0       -       0          0    0  Empty
debian02_sarge_hda.img4          0       -       0          0    0  Empty
debian02_sarge_hda.img5       7904+   8321     418-    210640+  82  Linux swap

On Sun, Jan 16, 2005 at 06:33:54PM -0500, Tom Sandholm 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?
Thanks!

Tom Sandholm

    

What partition do you want to mount? Are you sure it is the very first parition?
What is the output of "sdisk -l debian02_sarge_hda.img" ?

  
_______________________________________________
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel
    


  
--------------030304000807020403000803-- --------------020401020908080404000704 Content-Type: text/x-vcard; charset=utf-8; name="sandholm.vcf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="sandholm.vcf" begin:vcard fn:Tom Sandholm n:Sandholm;Tom email;internet:sandholm@gsinet.net version:2.1 end:vcard --------------020401020908080404000704--