LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 04-13-2007, 05:55 AM   #1
ShanxT
Member
 
Registered: Apr 2007
Location: India
Distribution: Ubuntu 10.04, RHEL/Centos 5.x, Knoppix
Posts: 41

Rep: Reputation: 3
can a windows virus be removed in linux?


One of my friend's usb drives has got a windows virus on it. He tried removing it using various anti-viruses, but none worked.. he tried formatting it, and it was write-protected. So I plugged it in my FC6, and tried deleting the files off it, but it obviously didn't work since it was write-protected.. So, my questions are,
1) Can I remove the write-protection?
2) Can I format the drive in linux? if so, how?
3) What file system does a usb drive use? (like cds use iso-9660)
4) Is there anything I can do to remove it?

I don't know if I posted in the right forum, but it seemed right.. Please don't flame me if it's wrong..
 
Old 04-13-2007, 06:09 AM   #2
Okie
Senior Member
 
Registered: Mar 2002
Location: Oklahoma
Posts: 1,154

Rep: Reputation: 187Reputation: 187
try clamav, it runs in an xterm or CLI and be sure to update both main & daily virus definitions...

i think there are some GUI frontends that use clamav for a scanning engine but i never used them...
 
Old 04-13-2007, 06:38 AM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
1. you can remount the usb drive:
mount -o remount,rw /dev/hda2 /mnt/usb_drive/

rw means read/write

where /dev/hda2 should be replaced by the usb device and /mnt/usb_drive should be replaced with the usb drives mount point in your filesystem.

2. reformat using the mkfs command in a terminal window. see the man pages for mkfs for details.

3. whatever filesystem you want (almost). with mkfs you can make ext2, ext3, reiserFS, and a couple of others. see the man pages.

4. remove what? the drive, the filesyste, the virus?
 
Old 04-13-2007, 06:51 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
In addition to formatting the drive, there are articles on the 'net about using Knoppix to clean up an infected Windoze machine. With fprot maybe - hit google.

There are probably specific distros just for this by now.
 
Old 04-14-2007, 03:16 AM   #5
ShanxT
Member
 
Registered: Apr 2007
Location: India
Distribution: Ubuntu 10.04, RHEL/Centos 5.x, Knoppix
Posts: 41

Original Poster
Rep: Reputation: 3
Thumbs up

Thanks a lot for all the help! I did what bigrigdriver said.. worked wonderfully... I'll get clamav too..
Thanks for the knoppix tip too.. I'll learn how to do that.. Damn useful since most of my friends keep getting windows viruses..
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Would a hardware virus get both Windows and Linux MBA Whore Linux - Security 2 08-29-2006 05:55 AM
Linux Windows virus scanners? NetRAVEN5000 Linux - Software 6 03-26-2006 05:16 PM
I removed linux off of machine now it wornt boot to windows XP kamby Linux - Software 3 01-05-2005 01:11 PM
Sending a virus to /mnt/windows via Linux d1l2w3 Linux - Security 7 06-01-2004 04:51 PM
Removed linux partitions, now won't boot to windows! EnigmaZ Linux - Software 18 04-10-2004 05:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration