Feb 04

I know I know, “why would you want to go and do this?” Assuming you have your reasons though, it’s not as straightforward as it might seem. I don’t fully understand the details but the crux of the problem has to do with the fact that linux blows away the master boot record. There are other sites that can explain the details but this one had the winning solution which finally worked. And here is the key set of instructions:


Boot with a DOS floppy that has “debug” on it; run “debug”. At the ‘-‘ prompt, “block-fill” a 512-byte chunk of memory with zeroes:

f 9000:0 200 0

Start assembly mode with the ‘a’ command, and enter the following code:

mov dx,9000
mov es,dx
xor bx,bx
mov cx,0001
mov dx,0080
mov ax,0301
int 13
int 20

Press <Enter> to exit assembly mode, take a deep breath – and press “g” to execute, then “q” to quit “debug”. Your HD is now in a virgin state, and ready for partitioning and installation.


Kudos to this person whoever it was for figuring this out. Assembly language is no joke. We found a dos boot disk with debug.exe here. File this under "priceless gems" if you ever need to convert a linux box back to windows someday.

© 2005 Lights Out Production – All Rights Reserved Worldwide

2 Responses to “Converting a linux box to windows”

  1. Francis says:

    Wow, that’s pretty impressive! Kudos, for sure. I’m afraid however, that there’s a much simpler way. If you boot from the the WinXP cd, you can access the Recovery Console, then use the FIXMBR command. This will ‘repair’ your Master Boot Record, and allow you to run windows.

  2. Sean Tierney says:

    what, and miss a chance to write assembly?? naw, that’s great- even better. thanks for the tip.

    -sean

Leave a Reply

preload preload preload