Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Security > Pendrive affected by 'folder virus' and keeps remounting every two minutes or so.

Forgot Password?
 Linux Security   Discussion about keeping your machines secure, and the crackers out.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 04-05-2008   #1 (permalink)
Just Joined!
 
Join Date: Nov 2007
Location: Bangalore, India
Posts: 27
Send a message via Yahoo to svzard
Pendrive affected by 'folder virus' and keeps remounting every two minutes or so.

Hi all,
I've a problem with my pendrive. I'm looking for some help. It
sure is a windows virus but it has corrupted my pendrive and
hence I'm seeking help here in linux forums. If this is not the
proper forum kindly move it to the proper one. But somehow
help me with the problem.

I don't know the exact name of this virus/trojan. I usually call
it 'the folder virus'. It creates an exe file by the same name as
the folder. The more folders you have the more exe files by their
name you have. Apart from these 'foldername.exe' files we can
sometimes see a file by name 'MicrosoftPowerPoint.exe' and/or
'autorun.inf'. All these days I either used the anti-virus s/w or
would login to linux and manually delete the exe files.

This time however the pendrive had an additional file by name
'VirusRemoval.vbs' apart from the exe files I named earlier. The
problem I faced this time is that the pen drive would auto-mount
several times. That way I had a terrible time in using linux to
remove the exe files and copying the data files. I persisted and
somehow managed to remove all the exe files. I then formatted the
pendrive. I thought that would have solved my problem and tried
to copy back the data to the pendrive. But to my horror the drive
again started to remount itself every two minutes or so, not
allowing me to copy back the files.

Let me add that the pendrive is a Transcend V30 series 4GB drive.
I searched for firmware but didnot find anything in their site.
Found a software called mFormat and used it to format the drive
again. But still no help. Whether I connect it to windows or
linux it doesnot matter, it just keeps remounting itself. It
either mounts as sdb1 or as sdc1. Whats wrong? How to get rid
of this? If I scan the pendrive it doesnot show any sign of virus.

The drive is almost dead now. Don't know what to do. Has anybody
faced similar problem. Can anybody help me with it.

Expecting a positive reply,

Regards,
SV
svzard is offline  



Reply With Quote
Old 04-05-2008   #2 (permalink)
Super Moderator
 
devils casper's Avatar
 
Join Date: Jun 2006
Location: Chandigarh, India
Posts: 22,156
I have never faced such problem but it looks like problem is with PenDrive only. Try wiping Pen Drive using 'dd' command.
Code:
dd if=/dev/zero of=/dev/sdc bs=521 count=1
Be careful while executing 'dd'. Make sure to type correct device name.
__________________
It takes a lot of time to be a genius, you have to sit around so much doing nothing, really doing nothing. - Gertrude Stein
New Users: Read This First
devils casper is offline   Reply With Quote
Old 04-13-2008   #3 (permalink)
Just Joined!
 
Join Date: Nov 2007
Location: Bangalore, India
Posts: 27
Send a message via Yahoo to svzard
update on the virus problem

Hi Casper,
I tried the 'dd' command (with correct drive letter). But after that the
pendrive is NOT mounting at all... forget about the repeated auto-remounting...


I tried the mount command but it failed to mount. Below is
what I got for dmesg:
Code:
SV-Debian:/media# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda3             10317860   7079232   2714508  73% /
tmpfs                   485684         0    485684   0% /lib/init/rw
udev                     10240        84     10156   1% /dev
tmpfs                   485684         0    485684   0% /dev/shm
/dev/sda5             10472104   8251104   2221000  79% /mnt/datashare
/dev/sda7             20962544  20357200    605344  98% /mnt/media
/dev/sda9             15480800   5741084   8953336  40% /mnt/personal

SV-Debian:/media# mount -t vfat /dev/sdb1 /mnt/pd
mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

SV-Debian:/media# dmesg | tail
sdb: assuming drive cache: write through
SCSI device sdb: 8028158 512-byte hdwr sectors (4110 MB)
sdb: Write Protect is off
sdb: Mode Sense: 03 00 00 00
sdb: assuming drive cache: write through
 sdb: sdb1
sd 23:0:0:0: Attached scsi removable disk sdb
usb-storage: device scan complete
FAT: bogus number of reserved sectors
VFS: Can't find a valid FAT filesystem on dev sdb1.
Can you make anything out of it?

And, I saw my modem 'reboot' immediately after the 'dd' command.
It was not the occassional disconnect. It rebooted completely.
Now, I don't know if it is related or just a co-incidence.

Now, when I log-into windows it gets auto-mounted repeatedly!
I scanned it with Avast Home edition. It does not find any
traces of virus in the pen drive. I also formatted it several
times but its of no use.

Now, I had connected my good drive and after I unmounted it and
connected the bad drive, the mount point of the good drive is still visible
in /media!!! Even with the (good) drive unmounted and disconnected from
the system, I'm able to cd into it! Here is what I saw:
Code:
SV-Debian:/media# ls
cdrom  cdrom0  floppy  floppy0  SAI VINOBA
SV-Debian:/media# rmdir SAI*
rmdir: SAI VINOBA: Directory not empty
SV-Debian:/media# ls -la SAI*
total 8
drwxr-xr-x 2 root root 4096 2008-04-13 11:28 .
drwxr-xr-x 5 root root 4096 2008-04-13 13:51 ..
-rw------- 1 root root    0 2008-04-13 11:28 .created_by_pmount
SV-Debian:/media# file ./SAI*/.creat*
./SAI VINOBA/.created_by_pmount: empty
SV-Debian:/media#
Do you make anything out of it?
svzard is offline   Reply With Quote
Old 04-13-2008   #4 (permalink)
/etc/init.d/moderator
 
bigtomrodney's Avatar
 
Join Date: Nov 2004
Location: Sunny South-East of Ireland
Posts: 6,076
Well dd was being used to wipe the drive, you will need to format it again now before it can be mounted. Try using gparted if you can.
__________________
Registered Linux user #378740
New members read here / Forum Rules
#linuxforums on irc.freenode.net
bigtomrodney is offline   Reply With Quote
Old 04-17-2008   #5 (permalink)
Just Joined!
 
Join Date: Nov 2007
Location: Bangalore, India
Posts: 27
Send a message via Yahoo to svzard
hi 'big' brother,

I tried that too. I did 'dd' as 'casper' told with correct drive letter for my thumbdrive and
then used gparted (coz, in debian i was not able to find the format command, even while
in root account!) to formated it. Now, strangely though the repeated automounting in
linux has stopped but it is continuing under windows!

One senior in one of the other forums suggested to check if 'FUSE' is enabled in my set-up
of Debian. How to check if it is enabled? If that is enabled can that be a cause of this
behaviour? In that case isn't it a bad idea from security point of view to enable FUSE by
default, coz I did not enable it...
svzard is offline   Reply With Quote
Old 04-17-2008   #6 (permalink)
/etc/init.d/moderator
 
bigtomrodney's Avatar
 
Join Date: Nov 2004
Location: Sunny South-East of Ireland
Posts: 6,076
I wouldn't be worried about FUSE at the moment, if it's continuing in Windows after a reformat this would point to my first gues when I read this thread which is that the USB drive is faulty.

It could be anything froma faulty controller chip to a bad connection on the jack. I have seen drives becoming hit and miss after being bent slightly or submitted to pressure. Does this sound likely to you?
__________________
Registered Linux user #378740
New members read here / Forum Rules
#linuxforums on irc.freenode.net
bigtomrodney is offline   Reply With Quote
Old 04-17-2008   #7 (permalink)
Just Joined!
 
Join Date: Nov 2007
Location: Bangalore, India
Posts: 27
Send a message via Yahoo to svzard
Update to my earlier post...It still automounts repeatedly in Debian albeit not at the rate it remounts in Windows.

Well, I'm little rough in handling devices...but infact the affected drive
is of my friend. Don't know how he has handled it. After he gave it
to me to check I might have plugged it in and taken out roughly.

But, seriously does that matter so much? In that case what can be
done now?
svzard is offline   Reply With Quote
Old 04-30-2008   #8 (permalink)
Just Joined!
 
Join Date: Apr 2008
Posts: 2
Hi all friend. I am using linux Fedora version.
while formating my pendrive using command #/sbin/mkdosfs -F32 -I /dev/sda , I formatted my pendrive. But I also used both sda and sda1. After this, my system is not booting and asking to insert some bootable cd.

What should I do and can i recover my data. I was having both windows xp with 120GB partition and linux Fedora with 40GB partition.
Please guide me.
subrat is offline   Reply With Quote
Old 05-01-2008   #9 (permalink)
Just Joined!
 
Join Date: Nov 2007
Location: Bangalore, India
Posts: 27
Send a message via Yahoo to svzard
did you say /dev/sda???

Hi subrat,
If you have a harddisk connected the usual way and you connect a pendrive, its usually /dev/sda for harddisk and /dev/sdb for the pendrive or any other drives. sda1, sda2... or sdb1, sdb2...etc denote the partitions on those physical drives.

I'm afraid you have erased your harddisk and all your data has gone and the only option you have is to reinstall both windows xp and linux. I would love to be wrong though...

You should always excise extreme caution when using commands like format, dd etc. Even if you are an expert user...
svzard is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.
subscribe
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 09:25 PM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1