Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a PenDrive wich are full of virus, these vírus are .js files, using linux, I can open the pendrive and see in which folders they are. But when I try to remove by pressing DELETE button or via sudo rm filename.extension it gives me an error, they say that:

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

The entire pendrive's files are like these, I can't even format it with gpard that 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 but can't edit it's content. These folders name are like C4, d8d8d, cfc4c and the files are like gd586d.js, id9d9.js.

How may I work around this? Clean this pendrive from these files by terminal or whatever...

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

1 Answer 1

up vote 0 down vote accepted

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

share|improve this answer
    
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? –  PlayHardGoPro Jun 19 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. –  Ruslan Gerasimov Jun 19 at 4:59

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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