From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Baup1-0002N0-3A for qemu-devel@nongnu.org; Thu, 17 Jun 2004 07:12:43 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Bauoz-0002Mc-T1 for qemu-devel@nongnu.org; Thu, 17 Jun 2004 07:12:42 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bauoz-0002MD-Qc for qemu-devel@nongnu.org; Thu, 17 Jun 2004 07:12:41 -0400 Received: from [204.127.198.39] (helo=rwcrmhc13.comcast.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BaunI-0001mh-HM for qemu-devel@nongnu.org; Thu, 17 Jun 2004 07:10:56 -0400 From: Jason Gress Date: Thu, 17 Jun 2004 06:25:27 -0500 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200406170625.27797.jasong@ccgr.org> Subject: [Qemu-devel] Found helpful link on mounting loopback files Reply-To: jasong@ccgr.org, 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 I was trying to figure out how to mount just the partition inside of a raw image as loopback, and I found this: http://www.trekweb.com/~jasonb/articles/linux_loopback.shtml That link was very useful, and I thought the list might like a copy. :) With a typically DD'd zero image, this is the resulting command needed to mount the first partition on a simple image: # mount -t vfat -o loop,offset=32256,umask=000 /windata/win2kpci.img /mnt/tmp/ Or, at least that worked for me. (The umask=000 simply allows everyone access so my user could read/write stuff w/o hassle.) I hope this helps someone! An abbreviated version of this information perhaps should be on a FAQ somewhere? Jason