I have a USB stick, and I just want to format it. But when I try to do it with Nautilus or Gparted, there is an error because the USB stick file system is read-only...
I found some posts about it, and I try commands like :
mount -o remount,rw /dev/sdx
hdparm -r0 /dev/sdx
dosfsck -a /dev/sdx1
mkfs.msdos -F 32 /dev/sdx1
mkfs.msdos -F 32 /dev/sdx1
Replacing the x of /dev/sdx
by the right letter of course.
But each time, I have a message telling me that the operation is not allowed because of read-only.
How can I format my USB stick and remove this read-only mode please ?
gnome-disks
and try to delete any partitions on the USB stick drive. – FedKad Jun 03 '19 at 09:34gnome-disks
,all options likeFormat...
,Edit partition...
,Edit Filesystem...
, etc... are disabled. The USB stick is coming from a Store, and I know that it was only used on a Windows computer... But the problem is the same on Windows : I can't remove the read-only mode. – Rémi Jun 03 '19 at 09:43dd if=/dev/zero of=/dev/sdx
Then attempt formatting with Gparted etc Worth a try before putting it in the bin – Nick Jun 03 '19 at 10:11dd if=/dev/zero of=/dev/sdx
, but I have an error : > dd: impossible to open '/dev/sdx' : read-only filesystem... There is no solution to reset the USB stick ? – Rémi Jun 03 '19 at 10:16