You are not logged in.

#1 2007-02-21 15:07:33

ezzetabi
Member
Registered: 2006-08-27
Posts: 947

Allowing user mounting iso files.

One of my users asked to the possibility of mounting iso files.
In order to accomplish that I created a directory called /mnt/isoimage and a directory called /home/iso, the latter with chmod 770, I created a group for people who can mount iso images and /home/iso is now of root:isomounters . Added her to isomounters group and added a line to fstab:

/home/iso/image.iso /mnt/isoimage auto   ro,user,noauto,noexec,loop   0      0

Finally I told her: use ln -s /your/image/full/path.iso /home/iso/image.iso && mount /mnt/isoimage


This simple solution works, but I dislike users may use /home/iso as storage place instead of only create the symbolic link.
Is it avoidable?

Thanks

Offline

#2 2007-02-21 15:42:35

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,001
Website

Re: Allowing user mounting iso files.

Don't you need -o loop and -t iso9660 mount options in your fstab?

About your problem: i don't know, it basically comes down to the question whether one can use different "source" files (dev nodes etc) for one fstab entry.  i'ld like to know this too smile


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#3 2007-02-21 22:33:56

ezzetabi
Member
Registered: 2006-08-27
Posts: 947

Re: Allowing user mounting iso files.

Maybe it is more clear:

#<file system>      <dir>         <type> <options>                    <dump> <pass>
/home/iso/image.iso /mnt/isoimage auto   ro,user,noauto,noexec,loop   0      0

As you can see the option loop IS set, about the filesystem I usually set auto for removable devices, yet... Yes, iso9660 is more precise.

Last edited by ezzetabi (2007-02-21 22:35:04)

Offline

#4 2007-02-22 10:31:01

mouse256
Member
From: Antwerpen, Belgium
Registered: 2005-08-24
Posts: 247

Re: Allowing user mounting iso files.

I think that what you'll like to do is possible with fuseiso (it's in aur)

Offline

#5 2007-03-06 09:33:38

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,001
Website

Re: Allowing user mounting iso files.

ezzetabi wrote:

As you can see the option loop IS set, about the filesystem I usually set auto for removable devices, yet... Yes, iso9660 is more precise.

You're right, my mistake

freshmeat.net/projects/fuseiso wrote:

FuseIso is a FUSE module to mount ISO filesystem images (.iso, .nrg, .bin, .mdf and .img files). It currently support plain ISO9660 Level 1 and 2, Rock Ridge, Joliet, and zisofs.

neat !


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

Board footer

Powered by FluxBB