in reply to Perl script to mount iso file

If you only need one mount at a time, you could add an entry to your /etc/fstat like this:
/tmp/isofile /tmp/isomnt iso9660 user,loop 0 0
Which allows you to mount /tmp/isofile as /tmp/isomount without being root. You can then simply symlink the .ISO file to /tmp/isofile when you need it.

Note that you probably should pick a safer place than /tmp.

Replies are listed 'Best First'.
Re^2: Perl script to mount iso file
by BerSerK (Initiate) on Dec 17, 2007 at 18:04 UTC
    I only need one mount at a time but how could I change which iso file is mounted from my php form...I would have to copy the desired iso file to /tmp/isofile each time ?
        ok for the symlink part... I tried adding this to my /etc/fstab /tmp/vdrv0iso /media/vdrv0 iso9660 user,loop 0 0 my /tmp/vdrv0iso symlink points to /home/user/isos/file.iso but I still need root to mount that, I must be missing something. what command do I have to run after creating the symlink ?