0

I have a pendrive which is full of viruses. These viruses are .js files. Using linux, I can open the pendrive and see which folders they are in. But when I try to remove them by pressing Del button or via sudo rm filename.extension it gives me an error:

cannot remove 'file.lnk' : Read-only file system

All of the files on the pendrive are like this. I can't even format it with gparted Install gparted but it also gives me an error message.

I have like 3 or 4 folders containing these .js files. I can even open it with gedit Install gedit but can't edit its contents. These folders' names are like:

  • C4
  • d8d8d
  • cfc4c

...and the files are like:

  • gd586d.js
  • id9d9.js

How can I work around this? I would like to remove these files from the pendrive by terminal or any another method.

8
  • What is the error message you're getting from GParted?
    – hmayag
    Jun 18, 2014 at 23:48
  • @hmayag Sorry, actually I get the error when I try to format via Disks. The Gparted format option is Unable. Jun 19, 2014 at 0:14
  • 1
    You should press Unmount button before format Jun 19, 2014 at 0:22
  • @RuslanGerasimov on Disks ? I did it... Jun 19, 2014 at 0:26
  • what happens if you run Benchmark Drive... in Disks ? Jun 19, 2014 at 0:36

1 Answer 1

0

It seems your pendrive device is dead. I am pretty sure, because all times I saw I/O error it meant hardware was damaged.

2
  • I also think so... I have 2 pendrives with the same problem (vírus). The first one I could remove easily with linux live cd, but this second one... No way! And I'm used to see this model of pendrive with problems and stop working... Look, I could get all the importante files from the pendrive and moved to my HD. Even if I Could do so it still may be damaged? Jun 19, 2014 at 4:09
  • You didn't move all files, but if so, there might be physical sectors damages regardless whether they are occupied or not. The IO error is very serious problem, related to a hardware. Jun 19, 2014 at 4:59

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.