Please describe what you mean by a loop back device on a file.
> across reboots? If not how should we make it presistent. Where should
> the mapping information be stored?
--
Andrew Gabriel
[email address is not usable -- followup in the newsgroup]
> In article <d7c2682f-62ca-4c8b...@r66g2000hsg.googlegroups.com>,
> mujoo <amu...@yahoo.com> writes:
>> If we create a loop back device on a file, does it remain persistent
>
> Please describe what you mean by a loop back device on a file.
On Linux, one can associate a device with a file.
This device file can then be used to mount a filesystem.
One common application for easy creation and exploration of CD
images. Try "man losetup" for more info.
>> across reboots?
Persistent across reboots: no.
>> If not how should we make it presistent.
Whichever way you'd like.
>> Where should the mapping information be stored?
Wherever it is most convenient for you.
Cheers,
--
In order to understand recursion you must first understand recursion.
Remove /-nsp/ for email.
If you want your loopback to be mounted automatically, then you could add
a line to your /etc/fstab. That's how I would do it.
The disk image is:
"/home/user/diskimg"
The mount point is:
"/mnt/mountpoint"
The /ect/fstab line is:
"/home/user/diskimg /mnt/mountpoint vfat loop,auto 0 0"
For the format of lines in /ect/fstab read:
man fstab
stonerfish
Ah - gotcha. (I originally thought he was asking something
to do with named pipes and/or looped back pipes.)
In Solaris, this is a function of lofi - loopback file driver.
The command to setup and tear down lofi files is lofiadm(1M).
# lofiadm -a /home/andrew/snv_97.x86.iso
/dev/lofi/1
# mount -F hsfs /dev/lofi/1 /mnt
#
.
.
.
# umount /mnt
# lofiadm -d /home/andrew/snv_97.x86.iso
#
> One common application for easy creation and exploration of CD
> images. Try "man losetup" for more info.
>
>>> across reboots?
>
> Persistent across reboots: no.
In Solaris 11, the lofiadm part has become optional (many
filesystems will do it for you automatically if you mount
the file).
# mount -F hsfs /home/andrew/snv_97.x86.iso /mnt
#
.
.
.
# umount /mnt
#
You can therefore put such mounts directly into /etc/vfstab:
/home/andrew/snv_97.x86.iso - /mnt hsfs - yes -
>>> If not how should we make it presistent.
>
> Whichever way you'd like.
>
>>> Where should the mapping information be stored?
>
> Wherever it is most convenient for you.
>
> Cheers,
--