Re: user mounts and uuid handling

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jan 06, 2009 at 09:42:13AM -0500, Mike Frysinger wrote:
> if a disk is named in /etc/fstab by UUID and given user access, it cannot be 
> unmounted by the user (root works fine).  for example:
> $ blkid /dev/sdb1
> /dev/sdb1: UUID="4583-4324" SEC_TYPE="msdos" TYPE="vfat"
> $ grep 4583-4324 /etc/fstab
> UUID="4583-4324" /mnt/tmp auto noauto,quiet,rw,defaults,users 0 0
> $ mount /mnt/tmp/
> $ umount /mnt/tmp/
> umount: /mnt/tmp mount disagrees with the fstab

 I cannot reproduce this problem (tested on v2.14.1 and the latest git):

$ /sbin/blkid | grep test
/dev/sda2: LABEL="test" UUID="8f13c27d-a3a2-4ddb-a66c-79da25b29f9f" TYPE="ext3" SEC_TYPE="ext2"

$ grep test /etc/fstab
UUID=8f13c27d-a3a2-4ddb-a66c-79da25b29f9f /mnt/test     ext3 users,noatime,defaults 1 2

$ mount /mnt/test

$ grep test /etc/mtab
/dev/sda2 /mnt/test ext3 rw,noexec,nosuid,nodev,noatime 0 0

$ umount /mnt/test

 ... so it works for me.

 Please, send your /etc/mtab (the situation before the umount).

> Daniel V <padawan.hu@xxxxxxxxx> reported the issue here:
> http://bugs.gentoo.org/253811
> and refers to an old Ubuntu bug against util-linux-2.12r (with a fix that 
> doesnt apply cleanly at all to latest git):

 This 2.12 bug has been fixed already in 2.13.

    Karel

-- 
 Karel Zak  <kzak@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux