[Top][All Lists]

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

Re: Loopback device

From: P
Subject: Re: Loopback device
Date: Fri, 21 Jan 2005 14:01:43 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040124

Yoshinori K. Okuji wrote:
On Friday 21 January 2005 01:12, Marco Gerards wrote:

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.

That's great. That is the very thing I wanted to have.

BTW, I think it is better to make it possible to choose a device type (i.e. if it has a partition table or not). I'm always annoyed with that Linux cannot deal with a hard disk image.

Yes that's annoying. Have a look at:

I get around the problem with this script:


UNITS=`fdisk -lu $FILE 2>/dev/null | grep $FILE$PART | tr -s ' ' | cut -f2 -d' '`
OFFSET=`expr 512 '*' $UNITS`
mount -o loop,offset=$OFFSET $FILE $DEST

Pádraig Brady -

reply via email to

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