5

I've got an external USB drive that is formatted with NTFS mounted on ~/tmp. I can read it just fine, but cannot write to it, even as root (temp is a folder on the USB drive):

[root@Plugbox temp]# touch test
touch: cannot touch `test': Permission denied
[root@Plugbox temp]#

However, if I do a cat /proc/mounts, it looks like I do have NTFS read/write support:

[root@Plugbox temp]# grep /dev/sdb1 /proc/mounts
/dev/sdb1 /root/tmp ntfs rw,relatime,uid=0,gid=100,umask=02,nls=utf8,errors=continue,mft_zone_multiplier=1 0 0
[root@Plugbox temp]#

Finally, if I go to the folder above temp, it looks like I should have plenty of permissions to write to the folder:

[root@Plugbox tmp]# ls -al
total 61500764
...
drwxrwxr-x 1 root users           0 Apr 19  2010 temp
...
[root@Plugbox tmp]#

What am I missing?

1
  • 1
    rw means the file system driver was told to allow writing; it doesn't mean there's support for it. Jul 4, 2011 at 21:41

3 Answers 3

5

Try out NTFS-3g. It has write support for NTFS. You may be using an NTFS module that doesn't support NTFS writes.

0

NTFS write support needs not only a mount option, but a write-capable driver. Which NTFS filesystem driver are you using, one that came with the kernel or a module downloaded elsewhere?

1
  • I've got an external USB drive that is formatted with NTFS. I had a folder of JPGs (20GB). Under Ubuntu it was removed in seconds, but in XP it took ages. Interesting.
    – Aki
    Jul 4, 2011 at 19:03
0

Like others have mentioned, you'll probably want to install NTFS-3g. After doing that, however, what might help is adding an entry to your /etc/fstab like the following one from mine:

# <file system> <mount point>   <type>      <options>             <dump>  <pass>
/dev/sdb2       /media/Windows   ntfs-3g rw,auto,user,fmask=0111,dmask=0000 0 0

Replace "/dev/sdb2" with whatever partition you are trying to mount and "/media/Windows" with your preferred mount point. This makes it so the partition will be automatically mounted on startup, and you will be able to both read and write files on the disk.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .