From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Crznv-0006DB-2p for mharc-grub-devel@gnu.org; Fri, 21 Jan 2005 09:30:27 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CrznC-00064u-MC for grub-devel@gnu.org; Fri, 21 Jan 2005 09:29:42 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Crzn0-0005yJ-83 for grub-devel@gnu.org; Fri, 21 Jan 2005 09:29:34 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Crzmz-0005pG-7J for grub-devel@gnu.org; Fri, 21 Jan 2005 09:29:29 -0500 Received: from [213.94.219.177] (helo=corvil.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CrzM9-00056m-Pa for grub-devel@gnu.org; Fri, 21 Jan 2005 09:01:46 -0500 Received: from draigBrady.com (pixelbeat.local.corvil.com [172.18.1.170]) by corvil.com (8.12.9/8.12.5) with ESMTP id j0LE1hwS060363 for ; Fri, 21 Jan 2005 14:01:43 GMT (envelope-from P@draigBrady.com) Message-ID: <41F10B47.5010900@draigBrady.com> Date: Fri, 21 Jan 2005 14:01:43 +0000 From: P@draigBrady.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040124 X-Accept-Language: en-us, en MIME-Version: 1.0 To: The development of GRUB 2 References: <87mzv3vdvt.fsf@marco.marco-g.com> <200501211432.54494.okuji@enbug.org> In-Reply-To: <200501211432.54494.okuji@enbug.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by corvil.com id j0LE1hwS060363 Subject: Re: Loopback device X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Jan 2005 14:30:25 -0000 Yoshinori K. Okuji wrote: > On Friday 21 January 2005 01:12, Marco Gerards wrote: >=20 >>Here is a patch to add loopback support to GRUB. Although a lot of >>people told me they would find it useful, I just wrote it out of >>boredom without thinking about its use, just to figure out how hard >>it would be. >=20 >=20 > That's great. That is the very thing I wanted to have. >=20 > BTW, I think it is better to make it possible to choose a device type=20 > (i.e. if it has a partition table or not). I'm always annoyed with that= =20 > Linux cannot deal with a hard disk image. Yes that's annoying. Have a look at: ftp://ftp.hq.nasa.gov/pub/ig/ccd/enhanced_loopback/ I get around the problem with this script: #!/bin/sh FILE=3D$1 PART=3D$2 DEST=3D$3 UNITS=3D`fdisk -lu $FILE 2>/dev/null | grep $FILE$PART | tr -s ' ' | cut=20 -f2 -d' '` OFFSET=3D`expr 512 '*' $UNITS` mount -o loop,offset=3D$OFFSET $FILE $DEST --=20 P=E1draig Brady - http://www.pixelbeat.org --