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!
Notices
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.
Ihave 3 trojans and 275 worms in my windows partition. My brother set my computer into partitions but now the win partition is corrupt. Could someone please give me step-by-step instructions on how to reformat that partition and use the "badblocks random scrub" process. Thank you
What else do you have on this computer? Other Operating Systems? a Linux version? How many partitions? You re-format and will likely lose all data, is that your intent?
You could download Parted Magic (free download) and re-format and re-partition or do pretty much whatever needs to be done with it. More information on what you have on your computer and the type of computer/hardware would be helpful to help you.
You say that you have a trojan and worm problem. The standard cost free anti-virus program is AVG. It is quite good, but may not find everything. Try it and then google for other scanning tools, being mindful only to download from such sources as CNET or Tucows.
After you have cleaned up your Windows files, you can copy those Windows and linux files that you want to keep to another HDD or storage medium.
At that point you can use a partitioning live-cd as suggested to re-install Window or linux or both. Re-installing Windows will require that you either already have a Windows CD or that you make a restore CD from your rescue partition before you begin.
Formatting and beginning again may well solve your problem, but will require some thought and research if you have not tried it before.
You should post more information for a better and more detailed response. You might also try searching the forum posts for help and ideas.
By simply reinstalling Windows XP from installation CD, you can relieve most worries. During the installation stage when you point the installer to use the same partition it will suggest leaving it as is if it is already formatted NTFS, but your best bet is to instruct it to reformat. By reformatting, Windows won't have access to the trojans and worms to allow them to be executed.
But, for a more paranoid approach, one should wipe the partition of all residual data. Root kits are malicious code which can be executed from slack space, which is space the operating system would not venture in as it is unallocated space. Who's to say there are no well designed viruses that can do the same. So it is always good to be overly cautious.
If you have a Linux or Mac OS X installation on the computer as well, or have a Linux live CD, from Linux you can figure out the device name of the Windows partition by issuing the command: fdisk -l from terminal as root or sudo fdisk -l from Ununtu terminal. Once you know which device it is, you can use dd to wipe the partition as in the examples below, in the examples below I assume the Windows partition is /dev/sda1, make sure to use the correct device as was found from the fdisk -l command or you may make matters worst by wiping out the wrong partition and loosing something precious. The first example will zero fill the partition, the second will write random data, both of which will overwrite all sectors in the partition, effectively overwriting the worms and all. If you are using Ubuntu or Ubuntu from live CD, precede the commands with sudo as in the fdisk -l command quoted above.
Wait till the prompt returns, for a 60GB partition, it could take an hour or so. You can use dd in Mac OS X also, but the partition name would be similar to "/dev/disk0s1" or something rather than /dev/sda1.
Last edited by Junior Hacker; 04-18-2009 at 07:12 PM.
Reason: Added some
Ihave 3 trojans and 275 worms in my windows partition.
Could you tell us what software scanner you used that could find this stuff, but couldn't get rid of it? If you were informed that you had this malware by a screen that popped up on your browser, then you've been had. If I were in your place, I'd run the free anti-virus scanner at http://housecall.trendmicro.com/. Of course, if you want to completely wipe your disk and start all over, that's your choice. Boot a liveCD, then use the "dd" command to clear the disk. There's an intro to "dd" somewhere on the newbies forum, written by awesomemachine.
You can also use this shareware DOS mode GUI application to do the same as dd if you're not into command line stuff. Just create the bootable CD or floppy disk, boot the computer from the disk you created, hit cancel at the first window which prompts to install the boot manager, hit OK to go into maintenance, click on 'Partition work' icon, highlight the Windows partition and hit "Delete" on the right. Select 'Clear boot sector' and 'Wipe'. If you are worried about the law and want to make sure nothing can be found, select 'secure wipe'. Hit OK to begin.
When the progress finishes and it says it's done, you will now see "free space" where the partition was. Click on 'Create' on the right and select NTFS as the file system, leave the size as is and hit OK. Now you have a clean partition ready to install Windows on. Or you can select a different file system type depending on what you want to do with the partition.
As for the rest of the people who posted, the question asked is: Could someone please give me step-by-step instructions on how to reformat that partition and use the "badblocks random scrub" process. Why do you answer a question by asking questions?
Last edited by Junior Hacker; 04-18-2009 at 07:28 PM.
As for the rest of the people who posted, the question asked is: Could someone please give me step-by-step instructions on how to reformat that partition and use the "badblocks random scrub" process. Why do you answer a question by asking questions?
Ihave 3 trojans and 275 worms in my windows partition. My brother set my computer into partitions but now the win partition is corrupt. Could someone please give me step-by-step instructions on how to reformat that partition and use the "badblocks random scrub" process. Thank you
I reformatted partition hda1(winxp) & reinstalled winxp but now it will not let me back into my Linux partitions. I have 4 partitions total. so I need a program that will allow me access to my linux partitions. I ran AVG antivirus on my puter 1st that was how I found the Trojans & worms. It was soon after that, that Windows crashed and burned. I like Linux but I need windows for my games.
Re-installing xp will overwrite your master boot record without notifying you or giving you any option. You can use this method to boot from windows: http://www.linux.com/articles/113945
This link describes booting Linux from windows on a second drive so you will need to make minor changes.
Or you can simply re-install Grub and boot Linux and windows. For specific instructions on how to do that, run 'fdisk -l' command and post the output here. That will give us your partition information. It's a lower case Letter L, not a number one. If your using Ubuntu or derivative, put sudo in front of the command.
to be honest I am one of the biggest sceptics on window$ scan tools because they always find something wrong. Best advise that i live up to is back up data and try have a boot partition for just that and a few programs. when ever a problem occurs its always a great feeling when windows runs faster, after re-installation doesnt it? anti-virus, avast has my vote & OS any linux
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.