I can mount a loopback squashfs file image as a user, but cannot then unmount it again.
I have the following line in my /etc/fstab file:
Code:
/home/ubuntu/dos/cd.squashfs /home/ubuntu/dos/cd squashfs user,loop,ro 0 0
When I try and mount the directory (as a regular user), it mounts okay.
mount then reports:
Code:
/dev/loop0 on /home/ubuntu/dos/cd type squashfs (ro,noexec,nosuid,nodev,user=ubuntu)
The exact same line appears in /etc/mtab.
But when I try to unmount it as the same regular user, I get the following error:
Code:
umount: /home/ubuntu/dos/cd mount disagrees with the fstab
I then have to unmount the file using root permissions.
Having read the mount manpage, it suggests that the user option will fail if /etc/mtab is a symlink to /proc/mtab (which it isn't).
I have also tried with various fstab options and seen the same error. The options I've tried include:
Code:
user,owner,loop,ro,noexec,nosuid,nodev
users,owner,loop,ro,noexec,nosuid,nodev
users,loop,ro,noexec,nosuid,nodev
Is there any way to debug why I'm getting this error when unmounting?
Thanks in advance for any help,
— Robert J Lee