Same device as on this question

I have a device which has been infected with a malware (the one which transform file to .lnk, windows shortcut). After cleaning, it didn t show on windows, but on linux.

I ended up to dd /dev/zero on it, the time to get mkfs.ntfs (even thought it take way much time to wipe than download) to be sure the malware were truly gone.

Now, mkfs say the device is 0kb, as do windows.

Did I just brick the USB storage?



dd if=/dev/zero of=/dev/sdc (where sdc is whatever block device it was) will wipe out the partition table as well

as a matter of fact, just to be sure the malware isn't hiding in the MBR, I'd go ahead and wipe the partition table anyway

General idea:

  1. Put a new MBR or GPT partition table on the device using parted, gparted, cfdisk, or even Windows' own Computer Management MMC snap-in, depending on what's convenient for you.
  2. Reformat it.
  3. If it doesn't work, it's probably bricked, but it is not likely to be due to the dd command -- more likely is that the NAND chips gave up due to the number of times they've been overwritten, which could mean your device is just old and worn out.
  4. If it works, that was the problem ;)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.