Mole's suggestion works almost all the time. But if your hard drive has more than 4 partitions or was formatted by a compression program other than Drivespace/Doublespace then DO NOT use fdisk /mbr, it will probably ruin your hd.
Not necessarily. Most boot sector viruses make a copy of the original boot code and execute it after the virus code. FDISK /MBR writes a standard DOS/Win boot block and destroys any reference to the original code.
I agree that the setup I described is rare, but it does occasionally occur, particularly on drives with something like Linux installed (Win95+Linux+a few swap partitions = 5 or 6).
What happens when fdisk /mbr doesn't remove the bios warning: "Boot Sector Write!! Virus Continue? (Y/N)" ?
I've deleted all files, tried (unsuccessfully) to repartition/reformat the HD, but still get this message when trying either fdisk alone or with the /mbr switch.
I know this thread is OLD, but it's current for me.
Thanks for any/all advice.
this is solved through disabling the write boot sector option in the bios. You should be on your way. It is best to wipe the hard disk clean using the utilties from the manufacturer's website. eg zero fill utility.