[HOW TO] Get back your Windows XP Bootloader


Recommended Posts

fixmbr does not trash your partitions. It just returns the Microsoft boot loader to the Master Boot Record. Microsoft cannot (will not?) see the Linux partitions, but they exist and can be used or removed, at the user's discretion.

You can re-install GRUB (or LILO) to re-allow mutli-boot, or you can set up your NT boot loader to do the same thing.

  • 4 weeks later...
  • 3 months later...

very very thanks to you........................................

there is lot of formulas to remove linux and bring back the xp boot loader but easiest way is posted in first post of this thread and that way is also secure.......

thanks

  • 3 weeks later...
  • 3 months later...
Hmm, that must be if you've installed Linux in a VERY specific way, because now I can't boot into either OS. Wonderful.
No. It is very general, as it restores the Microsoft MBR to the hard drive.

Chances are that some other action has corrupted your partitions if this doesn't work.

Well, here is a method that will work, if you can boot Linux (installed or LiveCD, it doesn't matter).

The "code" part of the MBR is the first 446 bytes of the hard drive. If you can get that as a file, then you use the command (as root):

dd if=mbr.bin of=/dev/hda bs=446 count=1

Now, all we need is some nice soul with XP and a LiveCD to grab the 446 bytes from his XP box and post it here, so others can use it to write to their MBR.

That eliminates any problems with booting the XP CD and getting to recovery console, or booting from a floppy from bootdisk.com.

  • 1 month later...

well I have tried the fixmbr in the windows recovery console, but wasn't sure if I had screwed up beacuse after typing that in, installation then rebooted right into the windows xp install. Now even if i try to stop it midway, the installation pop up again even if I reboot. Basically, my concern is if my files will still be avaible to me besides the fact that the windows installation is installnig windows xp again

Yes (if I understand you correctly).

Your Linux partition(s) will be there, untouched. The fixmbr just reset the Windows bootloader to its Microsoft-default settings. You can do a grub-install to get the ability to use GRUB to boot back into Linux.

Use a LiveCD to browse around and verify your data is untouched for yourself. :)

  • 1 month later...

It is fdisk /mbr (no space in the "/mbr" part), or fixmbr. That might be part of the problem.

That fixes the MBR. If for some (non-Linux) reason, your boot.ini file is in need of repair (Linux doesn't touch NTFS, so it could not have modified it*), you can do a fixboot, and I believe that it will fix the boot.ini and NTLDR for you.

* Technically Linux can write to your NTFS partition, but it would take several deliberate actions on your part.

Honestly, I don't know.

Conventional wisdom has been when I started using Linux that it was experimental and not recommended.

I don't know how much native NTFS has improved since then. Also, CaptiveNTFS made its debut a few years ago, and that uses Windows' own NTFS.SYS file to 'understand' the NTFS filesystem. I have heard it works, but is a bit more sluggish.

You will always be safe writing to a Linux native filesystem, or FAT, so that is what I would probably recommend.

well what basicaly happens with me is i did sepll it right, i typed "fdisk /mbr" and it said "are you sure you want to write a new mbr?" and i hit enter, than it just says it again and again, so i couldnt figure out how to restart my pc from there so i hat to hit th power and it was still GRUB.

well what basicaly happens with me is i did sepll it right, i typed "fdisk /mbr" and it said "are you sure you want to write a new mbr?" and i hit enter, than it just says it again and again, so i couldnt figure out how to restart my pc from there so i hat to hit th power and it was still GRUB.

You are not supposed to keep hitting enter, you press "y" and then hit enter.

well, it doesnt say what to do, and it only lets me type one letter

So you have to type a "Y" or a "N" and then <Enter>.... yes? I've done this multiple times and it works ok for me (no looping back).

Barney

**Edit... the guy above me beat me to this! :pinch:

If for some reason you find the need to get back to your Windows XP bootloader instead of the one installed by your Linux distro, simply follow these instructions:

1. Boot up with your Windows XP disc.

2. Select the option Recovery Console.

3. At the prompt, type "fdisk /mbr" (without the quotes of course)

4. Restart your computer.

Edited with correct info from the following posts...

What do you do if your Windows XP CD resides on a HD, for example on a Dell, and the HD you are wanting to recover is on a separate HD. How do you recover it then? Is there a Boot CD that can be downloaded and used?

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Astra 0.6.1 Beta by Razvan Serea Astra is an audiophile music player designed for local music libraries, supporting MP3, FLAC, WAV, AAC, OGG, M4A, OPUS, WMA, AIFF, and more via FFmpeg. It offers gapless playback with pre-buffering, multichannel audio remapping, and Dolby Atmos decoding, ensuring albums play seamlessly while maintaining high-fidelity sound. Astra features real-time DSP visualizers powered by a native C++ engine, including an oscilloscope, spectrum analyzer, and vectorscope. A fully parametric 10-band EQ with live frequency response, built-in presets, and AutoEQ headphone calibration import lets you precisely shape your sound. Playback controls include shuffle, repeat, and drag-and-drop queue management, while the library automatically extracts metadata, album artwork, and supports global search, favorites, and recently played tracking. Additional features include output device selection, delay calibration, customizable themes, fullscreen and mini-player modes, Discord Rich Presence, optional Last.fm scrobbling, and an opt-in local API for integrations. Astra delivers a complete, high-quality desktop audio experience with no telemetry, accounts, or streaming. Astra 0.6.1 Beta changelog: Lyrics Initial XLRC support via @boof2015/xlrc 0.2.0 (#131) XLRC sidecar scanning, manual import, and renderer support Word timing, furigana, translations, voice labels, and translation-priority controls for XLRC Fullscreen lyrics overhaul with additional layout polish Manual lyrics editor with LRC, XLRC, and plain-text modes Drag-and-drop lyrics import plus sync offset controls Clickable synced lyrics for seeking, with popout and transport lyrics updates (#138) Fixed lyrics info sidebar scrolling (#138) Added a workaround for LRCLIB instability Metadata & Library Metadata editor rebuilt as a side panel Virtual DB metadata overrides and optional direct file tag writing Bulk metadata editing for title, artist, album, album artist, genre, year, track/disc numbers, and artwork Undo/redo support for virtual metadata edits Clear overrides action and default save-mode preference Artist page grid view added, with later design and sizing refinements Improved Jump to Playing with smart source, queue, album, artist, and library track targets Fixed smart source jump behavior Playlists Fixed VLC-style M3U import failures (#127) Added playlist export to M3U/M3U8 (#118) Improved imported playlist path resolution and missing-entry preservation Shuffle added to playlist pages (#121) Remove tracks directly from playlist views (#128) Fixed create-playlist-from-track modal closing when clicking inside it (#137) Multi-select quality-of-life fixes Right-click context menus no longer clear multiselections UI & Navigation Fixed UI scaling regressions in sidebar and home surfaces (#122, #123) Fixed transport bar regression (#126) Fixed horizontal scrolling on Home and Library rails Fixed artist grid sizing while searching Updated playlist action buttons and related layout polish Additional fullscreen lyrics visual adjustments Visualization Scopes and visualizers now respect UI scaling settings (#155) Added shared canvas sizing logic for correct DPR/backing-store behavior Canvas sizing tests added for visualizer scaling regressions Discord RPC Discord Rich Presence activity structure refactored Compact status can prioritize title or artist Profile info line can show file info or album Title and artist links can target YouTube Music, Last.fm, or be disabled Optional small Astra badge for cover-art presence Configurable “clear when paused” timing Added Discord activity tests Scrobbling Fixed custom Last.fm2 API profiles being accidentally blocked Expanded scrobbler profile protocol handling coverage Stability & Tests Added/expanded tests for XLRC parsing, lyrics presentation, metadata editor state, playlist import/export path handling, artist grid layout, horizontal scrolling, canvas sizing, and Discord RPC activity building Download: Astra 0.6.1 Beta | 138.0 MB (Open Source) View: Astra Home Page | Github | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • How does it compare to the "SeeStar S30 Pro" and the "Vespera PRO 2"?
    • Indeed. And note that those units are MUCH cheaper than this new Steam Machine...ahem.
    • Microsoft have found a way to convert RAM and SSDs into water.
  • Recent Achievements

    • Week One Done
      Almohandis earned a badge
      Week One Done
    • Rookie
      dorf went up a rank
      Rookie
    • First Post
      mike_rumble earned a badge
      First Post
    • Dedicated
      tuben earned a badge
      Dedicated
    • Week One Done
      mnsgroup earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      503
    2. 2
      +Edouard
      209
    3. 3
      PsYcHoKiLLa
      100
    4. 4
      Michael Scrip
      85
    5. 5
      neufuse
      69
  • Tell a friend

    Love Neowin? Tell a friend!