FS#11110 - user can't unmount by uuid

Attached to Project: Arch Linux
Opened by André Prata (nDray) - Monday, 04 August 2008, 09:43 GMT
Last edited by Tobias Powalowski (tpowa) - Monday, 23 March 2009, 06:18 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Tobias Powalowski (tpowa)
Thomas Bächler (brain0)
Architecture i686
Severity Medium
Priority Normal
Reported Version None
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
Whenever I mount a block device by UUID I can't unmount it later unless I'm a root. If I try it as a normal user, I get a "... mount disagrees with the fstab".

Ubuntu seemed have the same problem and seemed to fix it with a patch for umount:
https://bugs.launchpad.net/ubuntu/+bug/94848

fstab:
UUID="bdabc024-47a8-4d26-9dbe-dfd9f33a4fd7" /media/wd ext3 users,rw,noauto 0 0
UUID="470C-76A8" /media/walkman vfat users,rw,noauto 0 0

mtab:
/dev/sdb1 /media/wd ext3 rw,noexec,nosuid,nodev 0 0
/dev/sdc1 /media/walkman vfat rw,noexec,nosuid,nodev 0 0

util-linux-ng:
version 2.13.0.1-2


steps:
1.$ mount /media/wd
2.$ umount /media/wd
umount: /media/wd mount disagrees with the fstab
3.# umount /media/wd
"success"
This task depends upon

Closed by  Tobias Powalowski (tpowa)
Monday, 23 March 2009, 06:18 GMT
Reason for closing:  Fixed
Comment by Gerardo Exequiel Pozzi (djgera) - Sunday, 22 March 2009, 18:50 GMT
Works for me: util-linux-ng-2.14.2-1

UUID="69cd1e26-1e3c-4b14-b413-c37fe81c0319" /home/sys xfs users,ro,noauto,noatime,nosuid,nodev,noexec 0 1

[djgera@gerardo ~]$ mount | grep "home/sys"
/dev/sdc1 on /home/sys type xfs (ro,noexec,nosuid,nodev,noatime)
[djgera@gerardo ~]$ umount /home/sys
[djgera@gerardo ~]$

Loading...