Blog Stats
  • Posts - 157
  • Articles - 0
  • Comments - 90
  • Trackbacks - 19

 

How to: restore the Windows XP bootloader after dual booting with Windows Vista

Assume that you have a dual boot system with Windows XP and Windows Vista and you have gotten sick and tired of Windows Vista (like myself) and you want to restore the Windows XP bootloader. Now there is an easy way to accomplish this, well actually there are several ways to do this but I will focus on the utility bootsect.exe that you can find on the Windows Vista installation DVD in the folder Boot.

About bootsect

Bootsect.exe is a Boot Sector Restoration Tool. It updates the master boot code for hard disk partitions in order to switch between BOOTMGR and NTLDR.  You can use this tool to restore the boot sector on your computer.

Parameters 

bootsect {/help|/nt60|/nt52} {SYS|ALL|:} [/force]

/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 volume
labeled E:, use the following command:

bootsect /nt52 E:

Restoring the Windows XP bootloader on my machine 

These are the steps I took to restore the Windows XP bootloader:

  1. Booted in Windows XP
  2. Formatted the Vista partition
  3. Inserted the Windows Vista installation DVD
  4. Executed bootsect.exe as follows:
    X:\Boot\bootsect.exe /nt52 C: /force
  5. Reboot the machine

Cross-posted from The .NET Aficionado
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Feedback

# re: How to: restore the Windows XP bootloader after dual booting with Windows Vista

Gravatar please i installed linux fedora core4 on ma hp pavilion dv8233cl laptop already windows xp was installed on it first, after the installation the linux installed its grub bootloader, and ma system crashed, now i put in a bootable winxp cd and after scanning through ma system it does not detect any of ma hard drives. Vista did detect the hard drives all right but now even when u boot with bootable xp cd u still r unable to see the hard drives. please help 7/23/2008 1:50 PM | frank

# Sochi 2014

Gravatar Доброго времени суток,дамы и господа. Сегодня всем нам продемонстрировали эмблему грядущей в 2014 году Олимпиады, и я конечно не могу себе отказать в удовольствии нафлудить тут у Вас... :)
Итак, буквально по всем каналам прокатилось данное известие, как подобает, с наивысшей степенью ПиаРа. Сам президент подержал футболку с логотипчиком, замутили пресс-конференцию, на Первом забабахали концерт, ну и конечно, рекламные ролики о нашей необыкновенной Олимпиаде.
При этом как то на 2-й план отошла сама картинка, что будет красоваться на флагах, шарфиках, и прочей сувенирной продукции через 4 года. А хотелось бы приглядеться к ней по-внимательнее. Откровенно говоря, когда увидел, был немного разочарован. Сразу всплыла в голове такая картина: сидят значит наши организаторы Олимпиады, и тут один вскакивает с дивана и кричит "мужики, нам ведь завтра эмблему в Олимпийский коммитет надо отсылать". Начинается паника, но не долго думая наши функционеры садятся за ближайший компьютер, набирают незамысловатым шрифтом текст Sochi2014 (конечно же по английски) добавляют затёртое .RU А чтобы не заморачиваться с графикой, в Гугле находят олимпийские кольца и впихивают их рядом с этой надписью в фотошопе :)
Ребят, просто нет слов! Всё могу понять: кольца, название города, год проведения, но где тут фишка??? та, чтобы цепляла. Где нестандартные дизайнерские решения? Взять к примеру лого той же прошедшей Олимпиады 2006 года в Турине, где изображен силуэт “Моле-Антонеллины”, который нельзя перепутать ни с чем. Он плавно переходит в изображение горы, окруженной кристалликами льда, на которой снег сливается с небом. Кристаллики переплетаются между собой, образовывая сеть: сеть новых технологий и вечного Олимпийского единства.
Я вот совсем не понимаю, зачем нам нужно это .RU Посещаемость сайта решили повысить? так я думаю он и без эмблемы имел бы посетителей. К тому же официальный сайт олимпиады будет на английском и явно не в зоне RU. Да и вообще на фоне продвижения государством доменной зоны RF, как то уже начинаешь привыкать к мысли что зона RU вскоре станет "устаревшей" чтоли, а то и вообще сгинет как пережиток прошлого..
ЗЫ То ли ещё будет, весной талисман нужно миру показывать..
ЗЗЫ Простите за эмоции, высказался, успокоился.. :) А может не так уж он и плох? :) 12/3/2009 5:07 AM | Сенситив

# спасибо автору

Gravatar Привет! я лично рад, что хоть у кого-то получается добиться успеха!
Идея в общем понятна, раньше не предавал ей значение. Поздравляю!


3/17/2010 8:42 AM | feedime

Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification:
 
 

 

 

Copyright © Gabriel Lozano-Morán