Skip to main content

clean a system infected by a master boot record virus


If you have a hard drive that may have a boot virus on it, how do you clean the virus from the drive?

The "Master Boot Record" or MBR is loosely used to describe the combination of the "Partition Table" and the "Boot Record". The primary Partition Table is used as a pointer to additional partition tables that might exist on the drive. This set of partition tables forms a chain each maintaining pointers to the next partition table with a total of up to four partition tables on a drive. The primary partition table also has a pointer to the Boot Record. The Boot Record is a sector that contains information about the physical characteristics of the hard drive i.e. cylinders, heads, sectors,
drive ID, file system, and so on.

Viruses typically move the real MBR onto "slack space" sectors which is unused by your computer. Then it replaces the real MBR with it own version of the MBR where the real MBR belongs. This way the virus can manipulate the Boot Strap Loader as you start your system, by doing so it can "stealth" itself from detection. A virus in a "stealth" mode, may not be picked up by a normal anti-virus scan. The virus redirects the anti-virus scanner to the real MBR which will scan as normal even though it's in the wrong place.

A MBR virus will usually give an error "Invalid Drive Specification". A simple Boot Record sector virus will usually give you a "General Failure Reading Drive C:" error. But be forewarned, these errors could also indicate a bad sector 0 or 1 on the hard drive. If this is the case the drive is DEAD for all but data keeping. It will never be able to be a boot drive again, and in fact these types of drive should be taken out of service all together. It will most likely continue to lose sectors as time goes on, and usually when you least expect it. It's not worth the risk, trash can it.

Removing a Master Boot Record Virus

Use a clean startup disk (make sure the disk is write-protected before you place it in a potentially infected machine!). This should give you a clean boot to drive A:, which can then remove infection from inactive drive C:. If you are in doubt about the health of the startup disk, get a startup disk from a friend with a clean system. Enter FDISK /MBR. This overwrites your infected MBR and puts a clean MBR in place. Some cleaver viruses may place a secondary interceptor into the boot strap loader and re-infect the system, so be virulent when running the system after this repair. "Note that some overlay software can act in this same infectious way". Do not boot from the C: drive to do the above. The virus software is sure to know what you are attempting and foil your efforts to eradicate it. The clean boot drive method is best to be absolutely sure.

If the Bug Cannot be Cleaned

Hope all your data's backed up! You will need to high level re-format your hard drive. Remember this will not create a new "primary Partition Table" only FDISK will do this, but formatting will create a new "Boot Record" and new "File Allocation Tables". The FAT is the hard drives Table of Contents, and without it does not know where to find this data on your hard drive. Formatting does not actually erase the data contained in the individual sectors. In the worst case you might have to low-level format your drive. You should do this only with the assistance of the hard drive manufacturer. This will erase most of the data but a clever user could still recover data if they really wanted to. Your BIOS may also have some hard disk utilities with a format option.

Note: The original source of this text could not be found.

Comments

Popular posts from this blog

abort, retry, ignore poem

The infamous Abort, Retry, Ignore message box of Windows, with no option given to close it. Found this classic and fun poem about the "Abort, Retry, Ignore" message. I have been able to trace back the source to Annoyances.org. Here it is: Once upon a midnight dreary, fingers cramped and vision bleary, System manuals piled high and wasted paper on the floor, Longing for the warmth of bed sheets, still I sat there doing spreadsheets. Having reached the bottom line I took a floppy from the drawer, I then invoked the SAVE command and waited for the disk to store, Only this and nothing more. Deep into the monitor peering, long I sat there wond'ring, fearing,
 Doubting, while the disk kept churning, turning yet to churn some more.
 But the silence was unbroken, and the stillness gave no token.
 "Save!" I said, "You cursed mother! Save my data from before!"
 One thing did the phosphors answer, only this and nothing more,
 Just, "Abort...

this symbol is called a lemniscate, and other facts

The technical term for your foot "falling asleep" is "taresthesia". "Pins and needles" is really called "paresthesia". Great Britain has invaded about 90% of the world's countries. There's a brand of hand sanitizer called "Maybe You Touched Your Genitals". There was a hoax that the world was ending in 1806 because someone wrote "Christ is coming" on eggs, that were later stuffed into a hen. Gary Numan is actually 13 days older than Gary Oldman. There is a word in the English language with only one vowel, which occurs six times: Indivisibility. Los Angeles's full name is 'El Pueblo de Nuestra la Reina de los Angeles de Porciuncula'. Polyamorous people have invented a word to indicate the opposite feeling of jealousy - compersion. The Macrocilix maia moth confuses predators with wing patterns that mimic two flies eating bird poop. It even releases a pungent odor to drive home the dec...

pan-himalayan railroad

Chinese press is flooding with the news of China’s newest engineering feat – the completion of a railroad linking Lhasa (Tibet) with Eastern China. The country is celebrating this key achievement while the western press is once again applauding in awe and giving out mixed speculations. For example, this photo story contains some lines: “There are fears the railway will speed up the immigration of ethnic Chinese into Tibet, threatening its distinct cultural and religious identity.” “Tibetan groups and foreign critics say the railway’s real aim is political, as a symbol of China’s administrative and military control over a contested border region.” “...............................................” “..............................” All I can say about such statements is that leading people from China will undoubtedly laugh down these types of comments made by western media companies. This task in itself is a great combination of hard work, intellect and brotherhood, which in itself is a s...