Mounting images of filesystems
I have a need to mount images of file systems for different purposes. To facilitate this I have added a line in my fstab that allows me to use an symlink and a directory in my home directory (I own both the link and directory).
/home/thomasl/.image /home/thomasl/image auto noauto,loop,suid,user 0 0
Basically I set the symlink to point to the image I want to mount and then run mount on the directory. (image.reiserfs is the partition image)
ln -s image.reiserfs .image
mount image
This mounts fine except for the fact that root now owns the directory that the image is mounted on. That means that I can not write to the file like I need to. Is there something in fstab I can add to be able to own the directory? Also is there a program that would allow me to do this? Keep in mind I don't want to have to log in as root to mount and chown the directory.
Thanks,
Thomas
|