I have a usb flash memory which I can't do anything on it because its read only:
sudo fdisk -l
Device Boot Start End Sectors Size Id Type
/dev/sdc1 * 2048 7864319 7862272 3.8G b W95 FAT32
I've tried to fix file system with mkfs and I got this :
sudo mkfs.fat -F 32 /dev/sdc1
mkfs.fat 3.0.28 (2015-05-16)
mkfs.fat: unable to open /dev/sdc1: Read-only file system
How can I fix this?
PS: Let's assume the USB is not write-protected by design, such as with a manual switch.
mount(probably as root) is the one to use to change mounted filesystem state, notmkfs.blockdev --setrworhdparm -r 0