Would you use old exteral hard drive or get rid of it, if it have virus?
Linux - NewbieThis 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!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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?
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.
Originally Posted by bobacker
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.
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.
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!
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.
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?
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.
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).
Distribution: OpenSUSE 13.2 64bit-Gnome on ASUS U52F
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.
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:
After you identify your external drive, use in the dd command:
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 10:09 AM.