You could always just put 
mount -t ext2 -o loop /path/to/image /usr/doc
into one of your startup scripts.

-CJO-

On Thu, 29 Apr 1999, Henning Rohde wrote:

>Hi everybody,
>
>could someone tell me, how to setup a loopback-filesystem.
>
>I would like to put /usr/doc on my VFAT-disc, because of the symbolic
>links this seems not to be possible.
>
>As a proper solution i thougt of putting it into a single file
>containing ext2fs.
>
>At the very first point i did: 
>       dd if=dev/zero of=mnt/vfat/usrdoc.fs bs=1024 count=16386
>       mke2fs /mnt/vfat/usrdoc.fs
>       mount /mnt/vfat/usrdoc.fs /usr/doc -o loopback
>
>So far it does work, but after rebooting, i have to setup /dev/loop0
>by losetup before mounting the file. 
>
>I would like to have it mounted automatically at booting, how have i
>to setup /etc/fstab?
>
>Thanks in advance
>
>Henning Rohde
>
>By the way, is it possible to have this file compressed online?
>
>

                C.J. Oster (Linux Guru/Surge Addict)
------------------------------------------------------------------
| [EMAIL PROTECTED]   |   910 S. 3rd St, #1218  |   CCSO, WSG, UIUC  |
| [EMAIL PROTECTED]  |   Champaign, IL 61820   |   1443 DCL, Urbana |
| ---------------------------------------------------------------|
|    PGP: 87D5 4216 43A1 42D6 754D  8F5E 24B3 992A B7A1 F556     |
------------------------------------------------------------------
                   (580)761-6393 (217)328-8934
      "Linux, for people with an IQ above 98" - Bumper Sticker
 "Hm, a little big for a cup holder... Why does it say '4x' on it?"

Reply via email to