Neko Jam! 0 Report post Posted December 11, 2007 This was a tough one, but I managed to prove my theory that XP can beinstalled last and still added to the bootloader. It was simple to dowith two cmd lines, but damn hard to find and figure out.Myfirst problem getting Vista off of XP (I didn't want to useVistaBootPro in solving this puzzle) so I could add XP after the Vistainstall without any traces of it left from the bootloader. I could havereinstalled XP and cleaned it up, but a little research revealed a muchquicker way with bootsect.exe. The syntax is:E:\boot\bootsect.exe/nt52 ALL /force (E is your Vista install DVD). The ALL is all systemsolder than Vista. Ignore the errors from your USB drives. It basicallyswitches XP from Vista BOOTMGR to the older NTLDR.Having acleaned up XP I installed Vista on my second freshly formated drivewith the XP drive disconnected. This of course was to keep Vista frombesmirching it with the bootloader. Install went fine and afterreconnecting XP, I could boot either OS by selecting the appropriatedrive in BIOS.However this isn't what I was after; I stillneeded to get a bootloader onto XP somehow AFTER installing Vista. Icouldn't get Vista install to do the job without doing a clean installon the old Vista, and that would be cheating as I would make XP theprevious system. An upgrade would only upgrade XP and not Vista.Iwas about to give up when the thoughs of the "bootsect.exe" waswhispering to me about something on the screen when I used it,something about "restoraton tool." Whoa! I quickly opend a CMD andtyped:E:\boot\bootsect.exe /? and got the following:bootsect {/help|/nt60|/nt52} {SYS|ALL|:} [/force]Boot sector restoration toolBootsect.exe updates the master boot code for hard disk partitions in order toswitch between BOOTMGR and NTLDR. You can use this tool to restore the bootsector on your computer.Run "bootsect /help" for detailed usage instructions.Wow!There is was!!! Now I see I need /help instead of /?. Which I did, andcame up with detailed instructions. Now by this time I copies thebootsect.exe to my root dir where it was handy. Why was this such asecret. Here is what I used to install the boot loader, two simplelines:C:\>bootsect.exe /nt52 C: /force (for XP just to be sure it is NTLDR)C:\>bootsect.exe /nt60 D: /force (to fix Vista)For reference here is the help file displayed for bootsect.exe, the boot sector restoration tool.CODEC:\>f:\boot\bootsect.exe /helpbootsect {/help|/nt60|/nt52} {SYS|ALL|:} [/force]Boot sector restoration toolBootsect.exe updates the master boot code for hard disk partitions in order toswitch between BOOTMGR and NTLDR. You can use this tool to restore the bootsector on your computer./help Displays these usage instructions./nt52 Applies the master boot code that is compatible with NTLDR to SYS, ALL, or . The operating system installed on SYS, ALL, or must be older than Windows Vista./nt60 Applies the master boot code that is compatible with BOOTMGR to SYS, ALL, or . The operating system installed on SYS, ALL, or must be Windows Vista or WindowsServer "Longhorn".SYS Updates the master boot code on the system partition used to boot Windows.ALL Updates the master boot code on all partitions. ALL does not necessarily update the boot code for each volume. Instead, this option updates the boot code on volumes that could be used as Windows boot volumes, which excludes any dynamic volumes that are not connected with an underlying disk partition. This restriction is present because boot code must be located at the beginning of a disk partition.Updates the master boot code on the volume associated with this drive letter. Boot code will not be updated if either 1) is not associated with a volume or 2) is associated with a volume not connected to an underlying disk partition./force Forcibly dismounts the volume(s) during the boot code update. You should use this option with caution. If Bootsect.exe cannot gain exclusive volume access then the file system may overwrite the boot code before the next reboot. Bootsect.exe always attempts to lock and dismount the volume before each update. When /force is specified, a forced dismount is attempted if the initial lock attempt fails. A lock can fail, for example, if files on the target volume are currently opened by other programs. When successful, a forced dismount allows exclusive volume access and a reliable boot code update even though the initial lock failed. At the same time, a forced dismount invalidates all open handles to files on the target volume. This could result in unexpected behavior from the programs that opened these files. Therefore, you should use this option with caution.Example:To apply the master boot code that is compatible with NTLDR to the volumelabeled E:, use the following command:bootsect /nt52 E:C:\>Apparently the /nt60 must also causebootsect.exe to modify the BCDedit. Damn why does Microsoft hide thiswonderful stuff. Well probably because using the /force can bedangerous too. Thanks for Sandi. http://forums.xisto.com/no_longer_exists/ Share this post Link to post Share on other sites