Thursday, May 5, 2011

umount: mount disagrees with the fstab

This bug has been around a long time !
I hit it when setting up user mountable cifs shares.
Bug: umount: mount disagrees with the fstab
Bug: umount cifs sharemount with user or users in /etc/fstab arguments doesn't work any more

fix for cifs is in comment 4
The problem is that mount.cifs appends a trailing slash to the share name in /etc/mtab which differs from the line in /etc/fstab.
Adding the trailing slash in /etc/fstab resolved all my issues:
//share/ ~/mountpoint cifs users,noauto,credentials=~/.credentials,iocharset=utf8,uid=1000,gid=1000 0 0

No comments:

Post a Comment