mount ignores options from fstab

Bug #396874 reported by yurikoles
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Util-Linux-ng
New
Undecided
Unassigned
util-linux (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Binary package hint: ntfs-3g

cat /etc/fstab |grep sda1
/dev/sda1 /mnt/sda1 ext4 exec,dev,suid,user,relatime 0 1
cat /etc/mtab |grep sda1
/dev/sda1 /mnt/sda1 ext4 rw,noexec,nosuid,nodev,relatime 0 0
mount |grep sda1
/dev/sda1 on /mnt/sda1 type ext4 (rw,noexec,nosuid,nodev,relatime)
at /proc/mounts |grep sda1
/dev/sda1 /mnt/sda1 ext4 rw,nosuid,nodev,noexec,relatime,barrier=1,data=ordered 0 0

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
ExecutablePath: /bin/ntfs-3g
NonfreeKernelModules: nvidia
Package: ntfs-3g 1:2009.2.1-0ubuntu2
ProcAttrCurrent: unconfined
ProcEnviron: LANG=uk_UA.UTF-8
SourcePackage: ntfs-3g
Tags: ubuntu-unr
Uname: Linux 2.6.28-13-server x86_64

Revision history for this message
yurikoles (yurikoles) wrote :
Revision history for this message
yurikoles (yurikoles) wrote :

cat /etc/fstab |grep sda5
/dev/sda5 /mnt/sda5 ntfs-3g exec,user,utf8 0 1
cat /etc/mtab |grep sda5
/dev/sda5 /mnt/sda5 fuseblk rw,noexec,nosuid,nodev,allow_other,blksize=4096 0 0
mount |grep sda5
/dev/sda5 on /mnt/sda5 type fuseblk (rw,noexec,nosuid,nodev,allow_other,blksize=4096)
cat /proc/mounts |grep sda5
/dev/sda5 /mnt/sda5 fuseblk rw,nosuid,nodev,noexec,user_id=0,group_id=0,allow_other,blksize=4096 0 0

affects: ntfs-3g (Ubuntu) → util-linux (Ubuntu)
yurikoles (yurikoles)
visibility: private → public
Kees Cook (kees)
affects: util-linux (Ubuntu) → ntfs-3g (Ubuntu)
security vulnerability: yes → no
Revision history for this message
yurikoles (yurikoles) wrote :

Kees, its bug in util-linux.

Revision history for this message
Karel Zak (kzak) wrote :

man mount, section BUGS:

       It is possible that files /etc/mtab and /proc/mounts don’t match. The first file is
       based only on the mount command options, but the content of the second file also
       depends on the kernel and others settings (e.g. remote NFS server. In particular
       case the mount command may reports unreliable information about a NFS mount point
       and the /proc/mounts file usually contains more reliable information.)

The other issue is that the /etc/mtab file for ntfs-3g is maintained by /sbin/mount.ntfs-3g.

Revision history for this message
Szabolcs Szakacsits (szaka) wrote :

http://ntfs-3g.org/support.html#wine

It's a mount(8) bug/feature. Use 'users,exec', not 'exec,user'.

affects: ntfs-3g (Ubuntu) → util-linux (Ubuntu)
Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

The discontinuity between /etc/mtab and mount information is well documented, use /proc/self/mountinfo instead

Changed in util-linux (Ubuntu):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.