[dundee] user mount locations

Andrew Clayton andrew at digital-domain.net
Mon Feb 25 15:10:34 GMT 2008


On Mon, 25 Feb 2008 14:48:24 +0000, Nistur wrote:

> I'm sorry, I wrote the post when I was very tired and was being 
> deliberately vague as I knew my project was a pointless endeavor and
> I didn't know if I'd continue with it. Basically I'm writing a script
> to mount a loopback filesystem (probably ext3) temporarily, run the 
> contents (by default the same as the name of the loopback file) and 
> unmount it, basically I think I'm going to use it for backing up my 
> previous projects more neatly as I can keep them as one "file" and
> still run and edit them without having to go through the whole untar,
> make changes/run, re-tar etc.
> I have tried in a 777 directory, I've made sure the loopback file is
> 777 (777 just for testing, would be reduced once it worked) it's
> still saying that only root may mount.

From the mount man page

(iii) Normally, only the superuser can mount  file  systems.   However,
       when  fstab  contains  the user option on a line, anybody can
mount the corresponding system.


So in your case try adding a line like

/path/to/fs-image	/path/to/mount/point	ext3	loop,user	0 0

to /etc/fstab


Andrew



More information about the dundee mailing list