You are not logged in.

#26 2013-12-02 14:33:04

yermandu
Member
Registered: 2012-05-04
Posts: 6

Re: Cannot wipe USB stick - filesystem is read only

I have same issue, on 3 usbsticky.

One I self do it, i was putting files on windows 7 and i take over usbsticky without eject securily, then now is ready-only.

I do the same things in the post #1.

I try some hardcore step, make a badblock destructive mode in usb key.

# badblocks -wsv -o wrongblocks.txt /dev/sdb

No errors was founded. This destroy partition table and filesystem.

Then i use gpt table, read-only again.
And use fdisk to make mbr partition, and read-only again.

I dont have ideas, and no solve at moment.

Offline

#27 2014-06-16 01:23:13

Flukey
Member
Registered: 2014-06-15
Posts: 1

Re: Cannot wipe USB stick - filesystem is read only

Try dd if=/dev/zero of=/dev/sdb.
I let it run for 2 hours and I stopped it.
Note I set it to write to SDB not sdb1.   

sdb is a USB key that has been originally used for a Debian live system.Since it most likely had the time to overwrite the first 1.2 G of that read only partition I was able to create a new partition table and reformat it.

Hope this is making your day after that long wait smile, or may be it makes your year smile)

Offline

#28 2014-11-19 06:02:45

Mario Chapa
Member
From: Tokyo
Registered: 2013-08-02
Posts: 12

Re: Cannot wipe USB stick - filesystem is read only

I was having exactly the same problem and stumbled upon this thread.
After some more research I found that issuing the next command:

 sudo mkfs.vfat -I  /dev/sdX 

Formats the USB wiping out all contents in the process and getting rid of the read-only issue (-I is to tell mkfs to use the whole device for the partition)

Just make sure to use the correct device, check  the output of

 lsblk -l 

first to issue the command on the correct disk.


~Simplicity is the ultimate sophistication.

Offline

#29 2014-12-02 18:46:05

Larckov
Member
From: Mexico city, and nearbys...
Registered: 2014-06-17
Posts: 15

Re: Cannot wipe USB stick - filesystem is read only

Hi,

I know the thread is old but I have the same problem and nothing appear to work. I tried the 'dd' command, and some other things and keep showing the message that is read only.

Any new ideas?


"Not all those who wander are lost"  J. R. R. Tolkien

Offline

Board footer

Powered by FluxBB