Feb 17

Read only…

Tag: 01,SystemsJoaquim Anguas @ 4:45 pm

Some weeks ago I got an USB flash drive somehow corrupted.

Every time I connected it to my computer a message saying it had to be scanned and repaired popped up, but after accepting the scan, it said it could not repair it.

I could access its content, but I could not write, modify or erase it.

After googling a lot, I tried everything I found without any result.

At last I got to the solution.

I booted my computer to Knoppix (https://www.knoppix.net/) and issued this command in a command line window: «sudo dd if=/dev/zero of=/dev/your_usb_drive_device». This fills your device with «0».

You will see the corresponding device under the icon that appears on your desktop when you connect it to your system. Do not especify the final digit, as it refers to the partition number (e.g. instead of /dev/sda1 use /dev/sda). You want to fill the whole device with zeros, not only one partition.

After doing this, I booted up to MS Windows Vista and connected the device again. I was surprised to see the contents again (I suppose it was somehow cached…) but then I was able to format it.

I hope this helps.