8

I've written two bash scripts to give read-only or read/write access to my NTFS partition:

read-only access:

sudo umount /media/Data_Drive/  
sudo mount -t ntfs-3g -o ro,user,auto,nls=utf8,umask=0000,uid=1000 /dev/sda2 /media/Data_Drive

read/write access:

sudo umount /media/Data_Drive/  
sudo mount -t ntfs-3g -o rw,user,auto,nls=utf8,umask=0000,uid=1000 /dev/sda2 /media/Data_Drive

It works perfectly if I only use terminal to work with the files. It also works with Nautilus in read-only mode but not in the read/write mode. In fact, Nautilus gives me an error when I try to copy a file to Data_Drive saying "The destination is read-only".

More funny, when I look at the permissions (by right-clicking on Data_Drive and then properties->permissions) I have all the required permissions to write a file in Data_Drive!

I am so confused why Nautilus behaves strangely. I appreciate if anybody could solve the mystery!

Eliah Kagan
  • 119,640
fredzyx
  • 231

3 Answers3

9

It's a bug: Nautilus says the USB stick is read only when it is not https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/1021375

4

This Bug can fixed by:

  • Removing /home/[my-username]/.config/nautilus directory and after logout and new login the problem should be solved.
Willi
  • 618
0

Tl;dr:

Run killall nautilus and remount.


As mentioned by @Luis Medina, this is a bug in Nautilus: https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/1021375.

I'm unclear whether it was fixed at one point, but I still experience it in 16.04, and users on the bug's thread are facing it in 16.10.

As a workaround, unmount the partition and run killall nautilus. Remount and the problem should be solved. This was suggested by users on the bug's thread, and it's worked for me as well.

Nateowami
  • 1,585
  • 4
  • 18
  • 30