Why can't I set user read access for mounted ntfs drives?
I've put these lines in my fstab to mount my windows partitions:
/dev/hda1 /mnt/c-drive ntfs ro,auto,user 0 0 /dev/hdb1 /mnt/d-drive ntfs rw,auto,user 0 0 This mounts them successfully, but I can only access them as root. Even when I am root, it won't let me change the permissions, since it says they are read only drives. As you can see I did specify hdb1 to have write access, but I guess linux ntfs doesn't have write support yet. I don't want to have to log in as root every time I access these drives, especially since I won't have write access anyway and can't do any harm. When I have those drives mounted, doing and ls -l on the /mnt folder shows this: dr-x------ 1 root root 8192 2006-01-08 15:38 c-drive drwxr-xr-x 2 root root 4096 2006-01-07 22:42 common dr-x------ 1 root root 4096 2006-01-08 15:39 d-drive and I am unable to change the permissions of c-drive or d-drive, even as root. If I unmount the drives, the permissions automatically change to this: drwxr-xr-x 2 root root 4096 2006-01-07 22:47 c-drive drwxr-xr-x 2 root root 4096 2006-01-07 22:42 common drwxr-xr-x 2 root root 4096 2006-01-08 16:56 d-drive Anyone know how I can get read access to these drives as a regular user? |
The key is in the umask value.
Have a search, this is asked and answered all the time. Cheers, Tink |
You'll need to check your kernel to see if you have write support for ntfs compiled in, you've obviously already got read support.
Check the man page for mount - as well as the umask option mentioned by Tinkster you'll probably need to set either uid or gid. From the man page under Mount options for ntfs: Quote:
|
Added umask=000 to the mount options and now it's working fine. How is ntfs write support these days, is it safe to use?
|
Not according to the documentation for the kernel. If you
use the ntfstools from sourceforge it's a whole different story, though :} Cheers, Tink |
Nope ... not last time I tested (2.6.13)
Edit: - just rechecked the site after seeing Tinks post. Think I have a 2.6.15 system laying around somewhere - might be time to re-test. |
Quote:
|
All times are GMT -5. The time now is 12:42 PM. |