0

I'm using Ubuntu 16, and my 64 GB sandisk ultra pen drive is in read-only mode. I need to modify the files on the pen drive.

How do I change the permissions so that I have write/delete access?

/proc/mounts has the following entry for this pen drive:

/dev/sdb1 /media/ashgan/54E5-2AC5 vfat ro,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro 0 0

I was able to modify these files in the previous computer where I used this pen drive and earlier in the present computer also, but permissions seem to have changed somehow.

Amanda
  • 9,723
ub2016
  • 1

1 Answers1

0

Your drive is mounted read only (as indicated by the ro in the /proc/mounts output. You could try to remount it with read-write permissions:

mount -o remount,rw /dev/sdb1 /media/ashgan/54E5-2AC5

(sudo might be required here)

I expect that this will present some error, which likely is the root cause why your pendrive was not mounted rw from the beginning

mbeyss
  • 1,038