Bug 571508 - ntfs-3g ignores some options from fstab
Summary: ntfs-3g ignores some options from fstab
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: ntfs-3g
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Tom "spot" Callaway
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-03-08 17:32 UTC by Luigi Cardeles
Modified: 2010-03-08 23:13 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-03-08 20:33:00 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Luigi Cardeles 2010-03-08 17:32:57 UTC
Description of problem:
Using fstab entry to mount a ntfs device (external hd), some options are not used.

[root@localhost ~]# cat /etc/fstab | grep sdc1
/dev/sdc1	/media/external_hd	ntfs-3g	rw,async,uid=500	0 0

[root@localhost ~]# mount -a

[root@localhost ~]# mount | grep sdc1

/dev/sdc1 on /media/external_hd type fuseblk (rw,allow_other,blksize=4096)

[root@localhost ~]# umount /dev/sdc1

[root@localhost ~]# cat /etc/fstab | grep sdc1
/dev/sdc1	/media/external_hd	ntfs	rw,async,uid=500	0 0

[root@localhost ~]# mount -a

[root@localhost ~]# mount | grep sdc1

/dev/sdc1 on /media/external_hd type fuseblk (rw,allow_other,blksize=4096)

I use fedora 12 on a dell inspiron 1545 laptop. (2.6.31.12-174.2.22.fc12.x86_64).
i have a external usb hd and i can't make it connect like a usb 2.0 device.
this device is ntfs format

I check if the device is using ehci (dmesg after i plug the device)
[root@localhost ~]# dmesg | grep USB
usb 2-2: new high speed USB device using ehci_hcd and address 2

I check if this device is connected on a usb 2.0 hub
[root@localhost ~]# lsusb
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 015: ID 0471:2021 Philips 
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

but if i see device mount options using mount command, the options are wrong.

/dev/sdc1 on /media/external_hd type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)

Version-Release number of selected component (if applicable):

[root@localhost ~]# ntfs-3g -V
ntfs-3g 2010.1.16 integrated FUSE 27

How reproducible:


Steps to Reproduce:
1. 
2.
3.
  
Actual results:

The mount options are ignored.

Expected results:

mount with mount options listed on fstab

Additional info:

I found this bug #474282 (https://bugzilla.redhat.com/show_bug.cgi?id=474282) but it was closed. Maybe this is related.
And i also see this bug (not a fedora bug but a debian bug):http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=537336

Comment 1 Tom "spot" Callaway 2010-03-08 20:33:00 UTC
Umm, I'm pretty sure that ntfs-3g isn't required to accept any arbitrary mount option that you can think of. :)

If you look through the mount.ntfs-3g man page, you'll see that the following mount options are the only understood ones:

uid=value and gid=value
umask=value
fmask=value
dmask=value
usermapping=
default_permissions
inherit
ro
locale=
force
remove_hiberfile
atime, noatime, relatime
show_sys_files
allow_other
max_read=value
silent
no_def_opts
streams_interface=value
user_xattr
efs_raw
debug
no_detach

Noteworthy is that "exec" and "async" are not considered valid options, so I would expect ntfs-3g to ignore them when read in from /etc/fstab.

Please reopen if you can clarify an option which is explicitly claimed to be supported by ntfs-3g which is not being used.

Comment 2 Luigi Cardeles 2010-03-08 23:13:24 UTC
(In reply to comment #1)
> Umm, I'm pretty sure that ntfs-3g isn't required to accept any arbitrary mount
> option that you can think of. :)
> 
> If you look through the mount.ntfs-3g man page, you'll see that the following
> mount options are the only understood ones:
> 
> uid=value and gid=value
> umask=value
> fmask=value
> dmask=value
> usermapping=
> default_permissions
> inherit
> ro
> locale=
> force
> remove_hiberfile
> atime, noatime, relatime
> show_sys_files
> allow_other
> max_read=value
> silent
> no_def_opts
> streams_interface=value
> user_xattr
> efs_raw
> debug
> no_detach
> 
> Noteworthy is that "exec" and "async" are not considered valid options, so I
> would expect ntfs-3g to ignore them when read in from /etc/fstab.
> 
> Please reopen if you can clarify an option which is explicitly claimed to be
> supported by ntfs-3g which is not being used.    

hum, you are right. Sorry Tom, i should read the docs before post... Very sorry.


Note You need to log in before you can comment on or make changes to this bug.