I would like to do a loopback filesystem, where can I get information
about how to do this?
On Tue, 24 Jun 1997 14:06:07 +0200, Mats Liljegren
First, create a file for your loopback (This will make a 10 meg file):
dd if=/dev/zero of=myloop bs=1048576 count=10
Now put a filesystem on it:
now just mount it:
mount -t ext2 -o loop=/dev/loop1 myloop /mnt
Now just use it like you would any other filesystem. You'll get a
couple of warnings with the above commands (like myloop not being a
regular block device), but it will work.
Wayne D. Hoxsie Jr.
My company whole-heartedly endorses everything I say :)
WARNING: Use of the above Email address for unsolicited
commercial Email or as part of a mailing list for any
purpose, without express consent of the addressee is a
violation of US Law (see below).
Permission to use the above Email address for soliciation
purposes may be granted by the addressee for a fee of
US $1000.00. Use of this address for solicitation or
other purposes constitutes agreement to these terms.
"By US Code Title 47, Sec.227(a)(2)(B), a computer/modem/printer meets
the definition of a telephone fax machine. By Sec.227(b)(1)(C), it is
unlawful to send any unsolicited adverti*t to such equipment. By
Sec.227(b)(3)(C), a violation of the aforementioned Section is
punishable by action to recover actual monetary loss, or $500, whichever
is greater, for each violation."
Is a filesystem based on the new loopback (not to be confused
with the loop back device related to TCP/IP networking) device of Linux
v2.0.0 slower, faster, or just the same as a "real" (i.e. on a real
partition on the HD) filesystem?
I ask this because I got an idea for users using the UMSDOS
filesystem. I'm thinking people use UMSDOS 'cause they don't want to
repartition their drives. The price they pay for using UMSDOS is a
slower filesystem, and wasted disk space due to the way FAT stores data.
I'm thinking, that UMSDOS users can mount a ext2fs formatted
loop-back based filesystem as thier /usr filesystem. Would this offer
any advantages? Assuming that using a loopback device is just as fast as
using a real partition, there would be a speed advantage. Also, storage
efficiency may be increased; just make the size of loopback file a
multiple of cluster size.
Comments please .....
-- "D.A.R.E. .... to keep cops off donuts."
Arcadio Alivio Sincero, Jr.
Sophomore, Computer Science Major at the University of Maryland at College Park
Amateur competitive bodybuilder
"D.A.R.E. .... to keep cops off donuts."