Someone felt the need to resurrect a year old thread of mine. He got negged for it because he had some inaccurate info in the post(and wasn't by me..even though I need to BALANCE). He claimed that the only way to get rid of bugbear was to fdisk. That statement isn't true. There are some nasty little buggers that only fdisk can get rid of however. There are a few that even fdisk can't deal with. For those slick buggers there is a debug script that will wipe the partion table clean. It invokes the low level bios int 13h and the dos write int 20h. THEN you fdisk. Here it is:

A:\>debug <enter>
-F 200 L1000 0 <enter>
-A CS:100 <enter>
xxxx:0100 MOV AX,301 <enter>
xxxx:0103 MOV BX,200 <enter>
xxxx:0106 MOV CX,1 <enter>
xxxx:0109 MOV DX,80 <enter>

(80 for hd 0 or 81 for hd 1 )

xxxx:010C INT 13 <enter>
xxxx:010E INT 20 <enter>
xxxx:0110 <enter>
-g <enter>
Program terminated normally

THis will even get rid of a virus that writes itself to a harddrives diagnostic cylinder because the retrieve routine will be wiped may still be there but there isn't anyway to invoke it.
and yes..if you know how to invoke the harddrive controller's input/output commands with machine code you CAN write to the diagnostic cylinder.