LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   mount ntfs with fstab dmask=027,fmask=137 but no write access (https://www.linuxquestions.org/questions/debian-26/mount-ntfs-with-fstab-dmask%3D027-fmask%3D137-but-no-write-access-926356/)

menthor 01-29-2012 04:06 PM

mount ntfs with fstab dmask=027,fmask=137 but no write access
 
My /etc/fstab looks like this:
Code:

UUID=XXXXXXXXXXXXXXXX  /media/sda1    ntfs    auto,gid=test,dmask=027,fmask=137      0      0
UUID=XXXXXXXXXXXXXXXX  /media/sda5    ntfs    auto,gid=test,dmask=027,fmask=137      0      0
UUID=XXXXXXXXXXXXXXXX  /media/sda6    ntfs    auto,gid=test,dmask=027,fmask=137      0      0

So far so good but when I do
Code:

ls -l /media
I get:
Code:

dr-xr-x--- 1 root test 4096 Jan  2 23:11 sda1
dr-xr-x--- 1 root test 8192 Apr  2  2011 sda5
dr-xr-x--- 1 root test 4096 Apr  2  2011 sda6

Why does root not receive write access?
Even when I change the dmask and fmask to
Code:

dmask=000,fmask=000
I get:
Code:

dr-xr-xr-x 1 root test 4096 Jan  2 23:11 sda1
But still no write acces. Am I missing something?

Hungry ghost 01-29-2012 04:16 PM

Hi,

You need to install the ntfs-3g package from the repositories (it's the ntfs read/write driver), and in the file system type column, change "ntfs" for "ntfs-3g" (without the quotes). This way, you will tell fstab to use the ntfs-3g driver, instead of the kernel generic one.

Cheers.

menthor 01-29-2012 04:35 PM

Quote:

Originally Posted by odiseo77 (Post 4587680)
Hi,

You need to install the ntfs-3g package from the repositories (it's the ntfs read/write driver), and in the file system type column, change "ntfs" for "ntfs-3g" (without the quotes). This way, you will tell fstab to use the ntfs-3g driver, instead of the kernel generic one.

Cheers.

I did as you said, but now only one of the 3 partitions is mounted with write access.
edit: I just restarted and now all of them have write access.
Thank you

widget 01-29-2012 04:56 PM

Mark this puppy solved. You do that in Forum tools at the top of the page.

This is a common problem and anyone smart enough to use a forum search will be happy to find a thread marked Solved.


All times are GMT -5. The time now is 05:19 AM.