From: nbenitezl . <nbe...@gm...> - 2013-11-09 15:28:36
|
Hi, I have an external usb hard disk with two partitions, one is vfat and the other is ntfs. Nautilus file manager in gnome desktop of my fedora 19 is not showing the filesystem type of the ntfs partition, see empty value on bottom right of this screenshot: http://i.imgur.com/tM4iLOZ.png So after some investigation, it seems it does not show it because the filesystem magic number returned by statfs field is the one of FUSE filesystem, that is right, because ntfs3g uses FUSE.. ..so then I'm looking for a way to detect the real filesystem type under FUSE, to show in the nautilus label, and found this commit by Miklos Szeredi which should have resolved the issue: https://lkml.org/lkml/2007/2/12/154 My understanding of that commit is that /proc/mtab and /proc/mounts should now display 'fuseblk.ntfs' instead of just 'fuseblk' but in my system it's only the later which gets printed: $ cat /proc/mounts | grep "nelson/dev" /dev/sdb2 /run/media/nelson/dev fuseblk rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096 0 0 $ cat /etc/mtab | grep "nelson/dev" /dev/sdb2 /run/media/nelson/dev fuseblk rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other,blksize=4096 0 0 Nonetheless, in /etc/fstab it appears as 'ntfs' : $ cat /etc/fstab | grep "nelson/dev" UUID=786F49A712A2C7E6 /run/media/nelson/dev ntfs nosuid,nodev,nofail,noauto,x-gvfs-show,exec 0 0 but I don't feel good reading it from /etc/fstab as in fedora it is a generated file from anaconda installer, and I feel /etc/mtab of /proc/mounts should be more reliable source to get this info.. so, do you have any idea why my system is not displaying 'fuseblk.ntfs' in /etc/mtab and proc/mounts ? is there a more reliable way to detect ntfs type under fuse ? Thanks |