
Code: Select all
mount -t ntfs /dev/hdXY /mnt/DIR
Code: Select all
/dev/hda1 /mnt/windows ntfs rw,auto,user,nls=utf8 0 0Code: Select all
/dev/sda1 /mnt/usb auto rw,noauto,user,exec,sync 0 0
first of all NEVER use ntfs-rw in linuxashtrash wrote:Of course i have in-kernel support for ntfs, ntfs-rw.
Code: Select all
modprobe ntfsCode: Select all
/dev/hda2 /mnt/ntfs ntfs dmask=007,fmask=317,ro 0 0Code: Select all
man mountreading is fine, just don't try writing...ashtrash wrote:Masks don't change anything...
Actually reading ntfs works - but only under root, so support works fine. I can force 755 permissions under root, but:
1. It must be done with -r (it takes time)
2. It doesn't work on all files.
So there must be something that doesn't allow fstab to change permissions of hda1... But what?
uid and gid is what you wantMount options for ntfs
iocharset=name
Character set to use when returning file names. Unlike VFAT, NTFS suppresses names that contain unconvertible characters. Deprecated.
nls=name
New name for the option earlier called iocharset.
utf8
Use UTF-8 for converting file names.
uni_xlate=[0|1|2]
For 0 (or `no' or `false'), do not use escape sequences for unknown Unicode characters. For 1 (or `yes' or `true') or 2, use vfat-style 4-byte escape sequences starting with ":". Here 2 give a little-endian encoding and 1 a byteswapped bigendian encoding.
posix=[0|1]
If enabled (posix=1), the file system distinguishes between upper and lower case. The 8.3 alias names are presented as hard links instead of being suppressed.
uid=value, gid=value and umask=value
Set the file permission on the filesystem. The umask value is given in octal. By default, the files are owned by root and not readable by somebody else
Code: Select all
chmod 644 /mnt/windows/
chmod: changing permissions of `windows/': Read-only file systemCode: Select all
/dev/hda1 /mnt/windows ntfs ro,auto,user,nls=utf8,gid=410,umask=0555 0 0that will never work, forget itashtrash wrote:Code: Select all
chmod 644 /mnt/windows/ chmod: changing permissions of `windows/': Read-only file system
user is not needed, but you can experiment with umask, try different values, some time ago i had sam proble and found a sollution by experimenting with umask...ashtrash wrote:At the moment my fstab windows line looks like that:
Where 410 is id of group windows to which my user belong. I'm totally confused now with all these attributes. Theoretically defaults should enable reading for me but it doesn't. It's also said, that option user is required, but adding it doesn't help. Neither does umask=755 nor gid=410. What more can I do?Code: Select all
/dev/hda1 /mnt/windows ntfs ro,auto,user,nls=utf8,gid=410,umask=0555 0 0