LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-08-2012, 01:53 PM   #1
bobacker
LQ Newbie
 
Registered: Dec 2011
Posts: 10
Blog Entries: 2

Rep: Reputation: Disabled
Question Would you use old exteral hard drive or get rid of it, if it have virus?


This might seem like a crazy question to ask here.
I have a virus in my Seagate 500 GB Exteral Hard Drive. Question can I still use on my Ubuntu or Kubuntu, with out getting a virus into my new computer? I don't like to throwing it away yet, I don't think can format like you can a hard drive inside your computer. As know they say can't get virus on Ubuntu so this is reason why I like to use on a Kubuntu.
What you think?
 
Old 01-08-2012, 01:57 PM   #2
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 343Reputation: 343Reputation: 343Reputation: 343
Hi there,

Quote:
Originally Posted by bobacker View Post
I have a virus in my Seagate 500 GB Exteral Hard Drive. Question can I still use on my Ubuntu or Kubuntu, with out getting a virus into my new computer?
of course you can.

Quote:
Originally Posted by bobacker View Post
I don't like to throwing it away yet, I don't think can format like you can a hard drive inside your computer. As know they say can't get virus on Ubuntu so this is reason why I like to use on a Kubuntu.
All computer viruses need a particular scenario to become "effective". Most of them are targeted at Windows or some Windows-based program.
But to avoid all risk, I'd simply re-format the drive, or better even, re-partition it including recreating the MBR, just in case there's a hidden partition or some malicious code in the MBR.

[X] Doc CPU
 
Old 01-08-2012, 02:00 PM   #3
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 4,037

Rep: Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099
You can wipe the drive using a program like DBAN, this will remove all contents of the drive (including the virus) making it safe and like-new.

http://www.dban.org
 
1 members found this post helpful.
Old 01-08-2012, 02:04 PM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285
I agree with snowpine.
 
Old 01-08-2012, 06:31 PM   #5
bobacker
LQ Newbie
 
Registered: Dec 2011
Posts: 10
Blog Entries: 2

Original Poster
Rep: Reputation: Disabled
Okay bare with me here, you are saying to download a Darik's Boot, and nuke program from Dban.org?
Question when download, can I made into a CD, from myburner and use it as software? Then boot from it?
Question 2: How do I direct it to right hard drive, so won't wipe out my Computer hard drive?
I only want to clean virus out my Seagate 500 GB External Hard Drive second hard , only attach to this computer not first hard drive inside my computer. Can be done ? How would know pick right hard drive?
Remember very new at this, you could call me a greenhorn or newbie learning.
thank
Jim
 
Old 01-08-2012, 07:03 PM   #6
theW
Member
 
Registered: Jul 2011
Distribution: arch, vector, mint
Posts: 37

Rep: Reputation: Disabled
Uh, DBAN is really powerful and will get rid of the virus really well, but I think that you may be a bit better using a bootable like PartedMagic since this includes a drive zeroing tool and is more intuitive. To make a bootable disk or usb drive go to this link, and download the first file. Then install infra recorder or something like it and burn the file to the disk. (There are good tips to doing this all over the internet). Then boot from it and use the Nwipe command to wipe the drive. Make sure to get the right drive though or remove the computer's internal drive to be sure to get the external drive. I would keep the drive for sure. Good Luck!
 
Old 01-08-2012, 07:15 PM   #7
grim76
Member
 
Registered: Jun 2007
Distribution: Debian, SLES, Ubuntu
Posts: 308

Rep: Reputation: 50
Going with DBAN seems to be going a bit far. Why not just format the drive (Provided you don't need data that is present on the device)?
 
Old 01-08-2012, 07:46 PM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
Is this 'I have a virus in my Seagate 500 GB Exteral Hard Drive' an (ex-) MSWindows drive?
If so, just installing Linux on top will suffice, as the installer will re-format first anyway...
TBH, unless you've got something really spooky there, even if it's an old Linux drive, re-installing over the top will do the job.
 
Old 01-08-2012, 08:09 PM   #9
bobacker
LQ Newbie
 
Registered: Dec 2011
Posts: 10
Blog Entries: 2

Original Poster
Rep: Reputation: Disabled
Okay getting confuse about this. Like I told you early, here I'm green horn, never done this before.
So again question if I download this can be burn it into a CD? So I can reboot, from my computer when I restart computer?
Remember I do not wish to wipe out my first hard drive, only second hard drive, call Seagate External Drive provides extra storage, attach to computer. Which have virus in it. Not both hard drive. Do have choice to pick which hard drive I can format, with this DBAN program or software?
 
Old 01-08-2012, 08:40 PM   #10
grim76
Member
 
Registered: Jun 2007
Distribution: Debian, SLES, Ubuntu
Posts: 308

Rep: Reputation: 50
I don't think DBAN is really what you need here. I would just format the disk and use it. Formatting the disk under linux would wipe out any data that is on it including the virus that is there.
 
Old 01-08-2012, 09:02 PM   #11
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 4,037

Rep: Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099Reputation: 1099
DBAN may be overkill, I agree. I used it as an example that it's possible to reformat the disk and therefore eliminate the virus. Any live CD Linux or recovery disk should have the necessary tools. Do you have any Linux CDs or live USBs lying around? For example if you have Ubuntu you can use GParted Partition Editor.

Whatever tool you use, it will ask you which disk to format, and give you opportunity to confirm the changes before proceeding. When in doubt you can click Cancel and come back and ask here!

Drives in Linux are not called C:, D:, E: but rather /dev/sda, /dev/sdb, etc. Usually the internal HDD is /dev/sda, the 1st external drive is /dev/sdb, and so on (but it is important to double-check). Also if the drives are different sizes, it will be obvious, when you see "500gb Seagate" as /dev/sdb then you know for sure.

Last edited by snowpine; 01-08-2012 at 09:10 PM.
 
Old 01-09-2012, 03:58 AM   #12
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285
Personally, I would burn and boot the ubcd:
http://www.ultimatebootcd.com/
Then you can use one of the wipe features to wipe the drive. To be safe you probably should remove other drives just in case you select the wrong drive.

Formatting may get rid of the virus, or the virus may be on the MBR (rare, but possible).
 
Old 01-09-2012, 09:49 AM   #13
grim76
Member
 
Registered: Jun 2007
Distribution: Debian, SLES, Ubuntu
Posts: 308

Rep: Reputation: 50
You can always use DD to wipe out the MBR.

Code:
dd if=/dev/zero of=/dev/hda bs=512 count=1
 
Old 01-09-2012, 10:11 AM   #14
TroN-0074
Senior Member
 
Registered: Dec 2011
Location: Michigan USA
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
Posts: 1,444

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340
Are you dual booting Microsoft and Linux in your computer?
If you are then you need to boot in your Linux partition and download a virus removal tool then use it to scan your external hard drive. I heard there are lots of virus removal tools that would work under Linux environment with the purpose of fixing windows software.

Clamav is a tool I heard works good. but I am sure there are more suggestions.
 
Old 01-09-2012, 11:02 AM   #15
Ion Silverbolt
Member
 
Registered: Sep 2004
Distribution: Gentoo/Xfce, Manjaro/Xfce, SolydXK
Posts: 194

Rep: Reputation: 36
The dd command is the easiest method. You already have Ubuntu installed.

Check for your drive in the list. Your external probably has only one partition and will likely be sdb1. It will also be either ntfs or fat32.

Open a terminal:

Code:
sudo blkid
After you identify your external drive, use in the dd command:
Code:
sudo dd if=/dev/zero of=/dev/sdb1/ bs=446 count=1
That will wipe the mbr, but leave the partition table. From there, reformat the drive to your desired file system. You can even reformat it in Windows provided you have autorun disabled. As long as you don't execute an infected file from the drive while in Windows, it shouldn't be capable of infecting the OS, or the mbr.

Last edited by Ion Silverbolt; 01-09-2012 at 11:09 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Get Rid of XP and Install Feather Live CD to Hard Drive? Amphere Feather 9 08-01-2010 08:52 AM
Removing trojans from hidden trailing sectors of hard drive. (harddisk residue virus) sundialsvcs Linux - Security 2 08-25-2009 12:20 PM
Virus destroys hard drive ? Txabuzer Linux - Security 6 12-20-2007 04:59 PM
Getting Rid Of Hard Drive? carlosinfl Linux - Hardware 20 01-17-2007 12:31 PM
Exteral USB hard drive with multiple partitions moxx Linux - Hardware 5 05-02-2004 03:50 PM


All times are GMT -5. The time now is 10:24 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration