My Kingston DT 101 II 2GB infected by autorun.inf & gi2ky.exe and becom read-only!!
Hi,
Just like I said in the subject, and it isn't just in Linux, but in Windows XP too! I tried to turn off the write protection by "hdparm -r 0 /dev/sdc1" and "blockdev --setrw /dev/sdc1" but it still read-only file system, even if I try to format it... for more information: dmesg Code:
usb 1-8: new high speed USB device using ehci_hcd and address 38 Code:
# /etc/fstab: static file system information. |
Hi, Welcome to LQ. With over 3 million posts, many questions have been answered.
you may get a faster answer by using the fantastic search function here at LQ. One thing I see that does not make sense to me is the line... from fstab, Quote:
Quote:
Probably sdc1 as you mention above. The /mnt/"directory-name" must exist, If the system does not create it for you, mkdir for your self. To save changes to this file you need to be root, I hope that helps. regards Glenn |
Hi, sorry for that, but it's not working any way!
I'm going to edit the post right now Thanks |
Any other idea??
|
Quote:
Quote:
|
Hi!
It's formated in fat16, I tried to write vfat in fstab but the problem still the same.. |
Do you have important data on it ? If not, zero it:
Code:
dd if=/dev/zero of=/dev/sdc |
I dont care about the content, so I tried your solution but:
Code:
dd: opening `/dev/sdc1': Read-only file system |
So you ran it on '/dev/sdc' right ? not '/dev/sdc1' ?
|
Both of them!
|
Hi, that is all I have really, the only other things...
1. Mount the flash drive in your home dir. Never tried that with a flashdrive, but It works for other partitions I want access to, I set up /home/glenn/local/ ..... And mount all the other partitions here, as well as the other os's on this box. 2. you might need to be root to dd the drive. 3. Make sure the drive, is formatted fat16, and Has no hidden files, like an encryption program (oem) or backup. .... hope that helps. |
This may seem like a silly question, but does the drive have a write protect switch on it and is it on or off?
|
Quote:
Is there a way to remove the 'autorun.inf' even if it's write protected? Quote:
|
Hi, once the system has laoded and everything is settled, look in...
/etc/mtab this file lists the currently mounted filesystems/partitions. You may find out more about the drive here. I have tried msdos, fat16 and auto. These have worked for me.... Code:
/etc/fstab entries (at some time, but not together).... Some of the args in fstab when changed may negate other args. man fstab Quote:
wiki http://en.wikipedia.org/wiki/Fstab regards Glenn |
I've tried msdos, vfat and auto in fstab...
cat /etc/mtab Code:
/dev/sdc1 /mnt/usb msdos ro,noexec,nosuid,nodev 0 0 |
All times are GMT -5. The time now is 03:58 PM. |