LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Mounted NTFS drive is RO (http://www.linuxquestions.org/questions/linux-server-73/mounted-ntfs-drive-is-ro-4175419460/)

MetaMan 07-30-2012 09:08 PM

Mounted NTFS drive is RO
 
I have followed many online guides exactly and seem to keeping having this problem. I am trying to mount USB-connected NTFS drive at boot on a Debian server.

The related line in /etc/fstab is as follows:
Code:

UUID=8A74E40274E3EEBF /media/drive0 ntfs defaults,umask=0022,uid=1000,gid=1000 0 0
(I use mount -a to test my work and umount /media/drive0 afterwards)

Running the mount command results in this:
Code:

/dev/sdb1 on /media/drive0 type ntfs (rw,umask=0022,uid=1000,gid=1000)
I can access the directory afterwards, but when I try to create a folder, I get the following error:
Code:

mkdir: cannot create directory `test': Read-only file system
:banghead:

If I run id jesse I get the following:
Code:

uid=1000(jesse) gid=1000(jesse) groups=1000(jesse),24(cdrom),25(floppy),29(audio),30(dip),33(www-data),44(video),46(plugdev)
What am I doing wrong?
Thanks! :D

chrism01 07-31-2012 12:07 AM

You can try
Code:

mount -o remount,rw /dev/sdb1

MetaMan 07-31-2012 01:51 PM

Quote:

Originally Posted by chrism01 (Post 4741850)
You can try
Code:

mount -o remount,rw /dev/sdb1

Code:

jesse@Server:/media$ sudo mount -o remount,rw /dev/sdb1
[sudo] password for jesse:
mount: cannot remount block device /dev/sdb1 read-write, is write-protected

What would cause it to be write-protected?

michaelk 07-31-2012 02:10 PM

The ntfs is read only, ntfs-3g is read/write.

ntfs-3g can be easily installed via apt-get if necessary.

MetaMan 07-31-2012 02:19 PM

Quote:

Originally Posted by michaelk (Post 4742384)
The ntfs is read only, ntfs-3g is read/write.

ntfs-3g can be easily installed via apt-get if necessary.

Should the type be 'ntfs-3g' then?

michaelk 07-31-2012 02:22 PM

Yes.

MetaMan 07-31-2012 02:23 PM

Quote:

Originally Posted by michaelk (Post 4742393)
Yes.

Much thanks! :D

One more thing... is this Debian specific? I believe using 'ntfs' on Arch would mount RW..

michaelk 07-31-2012 02:47 PM

As far as I know it is distribution agnostic. There is more then one ntfs driver and I do not know which one is included with Arch but AFAIK in general ntfs-3g supports all file system write operations except for encryption.

Roken 07-31-2012 06:05 PM

Be aware, though I'm trying to confirm this. If you are a bleeding edge user who builds kernels from git, there may be a bug in the latest git releases (since 26 July) in the fuse module that prevents creation of new files on NTFS volumes (you can create directories and modify existing files).

I've been through all the usual channels to resolve this, and gone to the devs of ntfs-3g. Since the only change that sparked this is to the kernel , I've contacted the fuse driver maintainer and am waiting to hear back. The released kernel version is fine, but if you are a git user that depends on ntfs compatibility be aware that there may be problems.

MetaMan 08-01-2012 09:33 AM

Thanks for the info, I was just wondering. The server is running Debian Squeeze and everything is working fine now.


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