5

My 8 Gb pen drive has suddenly change to read-only. In fact 2 pen drives have changed to read-only.

I don't know about how the first pen drive changed into read-only, but with the second pen drive I tried to make a bootable pen drive using start-up disk creator. In the middle of writing suddenly it threw some error. After this I couldn't copy any files to the drive or delete any file from it any more.

How can I make a read-only drive writeable?

Zanna
  • 72,312
Hari Prasath
  • 59
  • 1
  • 1
  • 2

1 Answers1

1

find /dev/sdb -type f -exec chmod 666 {} \;

will make all the files read-writable by all { -rw-rw-rw- }

find /dev/sdb -type f -exec chmod 644 {} \;

will make all files readable by all and writable by the owner { -rw-r--r-- }

-

assuming the flash drive is /dev/sdb (which is typical - but your mileage may vary).

K7AAY
  • 17,705