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

Re: interface for tar



2008/8/21 Mag Gam <magawake@gmail.com>:
> Sharchar:
>
> Can I do that with autofs? Lets say I have a directory called
> /home/$userid/image_files; can I have autofs to look for
> /home/$userid/& and automatically mount and unmount these fs images?
> Lets say I keep the fs images in /home/$user/.isos
>
> ANy thoughts about this?
>
> Either way, thanks for all of your help guys!
>
> TIA
>

This is one of the major motivating factors for creating fuse.
Why take the hard road here?

fuse allows users with filesystem access to an image to mount it
within one of their own directories.
There are fuse drivers for iso (fuseiso), ext (fuseext2), tar
(archivemount, avfs), tar, gzip, bzip2, rar (avfs), network (fusesmb).
e.g. iso
  mount:
$ fuseiso /path/to/image.iso ~/mnt
  unmount:
$ fusermount -u ~/mnt

or with avfs, there's an example of using it here:
http://linuxwindows.org/2008/05/how-to-use-avfs.html

>From the article:
"
After installation of AVFS,establish the folder .avfs in the home directory.
Then run mountavfs,which does not require root privileges.
   Open .avfs folder, you will see a mirror structure of the root
directory,which the cabinet can be open as the folder,but not directly
access to them, need with the #, such as
   /home/yourname/garro.rar

  should be visited as follows:

  cd /home/yourname/.avfs/home/yourname/garro.rar#/
"

This works for tar, gzip, rar, bzip2 and others.

cheers,
Owen.


Reply to: