Uninstall GRUB boot loader!


Recommended Posts

Is there a way to uninstall the GRUB boot loader either through a live Linux CD or some diagnostic boot CD?

Currently I've used my Toshiba restore disk to reformat my system--removing partitions containing Linux--but unfortunately it didn't do anything to the MBR, so now I have a system that will never load any OS and goes into an endless cycle of reboots whenever I hit the power button.

Any help will be greatly appreciated. Thanks in advance

Link to comment
https://www.neowin.net/forum/topic/426708-uninstall-grub-boot-loader/
Share on other sites

You need to overwrite the boot sector of your partition, and the only way to do that is to use the Recovery Console and run fixboot (not fixmbr). You could also install Windows again, which would recreate the boot sector, but then you'd have an extra Windows installation...

Either way, you'll need a Windows CD, so go find one, even if it's a friend's (Y)

I've always just had to use FIXMBR and had it work every time. However, I'm not sure what you can do if you don't have the CD.

There might be the possibility that you can use a win98 boot disk and do the fixboot command. that might work... not sure...

  Fit4130Rider said:
There might be the possibility that you can use a win98 boot disk and do the fixboot command. that might work... not sure...

No, that won't work. Windows 98 boot disks don't contain ANY NT files, and as such are practically useless on NT/2000/XP machines because they run DOS. The Recovery Console is technically NT, AFAIK.

  John said:

No, that won't work. Windows 98 boot disks don't contain ANY NT files, and as such are practically useless on NT/2000/XP machines because they run DOS. The Recovery Console is technically NT, AFAIK.

I do have a very old Windows NT CD. Maybe that'll work?

Or, alternatively, should I just reinstall a version of linux to get a bootloader and then uninstall the boot loader from within linux? I'd get a "Missing operating system" message the next time I boot, but I've gotten that before and the recovery disk was somehow able to correct that problem.

Again, any help would be greatly appreciated.

You have access to the i386 folder anywhere on your hard disk or a restore cd? from windows start > run > (path to i386 folder)\winnt32.exe /cmdcons will install the recovery console which can be accessed when you next boot. Then remove the grub loader as described above

  Jason He said:

what about just installing Linux and removing the MBR completely from that os? would that work?

I doubt it because you'll be left without a mbr rather than it returning to the original windows one. I think you'll have an easier time finding a copy of windows xp home (i presume)

  the_upsetter said:
I doubt it because you'll be left without a mbr rather than it returning to the original windows one. I think you'll have an easier time finding a copy of windows xp home (i presume)

I am pretty sure that it has to be XP Pro, as XP Home does not include the Recovery Console, so you cannot do the fixmbr thing.

I had a similar problem last night when trying a dual boot with Ubuntu and XP Pro. To fix it, I used a Mandrake install CD to get into the partitioner, blitzed all the linux partitions, setup a temp Linux partition, put Mandrake on (with LILO overwriting GRUB at the mbr) and then used the rescue mode of Mandrake to restore the XP bootloader.

That got me into Windows and then I removed the Linux partition using Partition Magic. Now back to XP Pro (single boot) and no problems whatsoever.

  the_upsetter said:

I doubt it because you'll be left without a mbr rather than it returning to the original windows one. I think you'll have an easier time finding a copy of windows xp home (i presume)

Yes, I would be left without an MBR, but the recovery disk appears to be able to repair it.

You could get a GRUB boot disk in order to get into windows. Then do the C:\ <path to i386> \winnt /cmdcons thing, I've done that and it works. When you reboot, it will need the GRUB boot disk again, and then it will give you the menu for XP or Recovery Console. Log in to the RC, and type fixmbr. Voila, done.

I'm pretty sure grub boot disks can boot to a hard drive, anyway.

And is anyone else wondering why this is in XP Client?

Also, sorry to say this mark, but XP Home does have the RC. I've used it.

There are also RC bootable disks, without the OS on it.

  the_upsetter said:

Does it not? Blimey that's a bit of a loss! Best of luck with the Linux route Jason

I suppose I could borrow a friend's XP Home or Pro CD, but i'd rather do it myself.

The problem was, when I used a SUSE Live CD to uninstall the boot loader, it didn't actually complete the operation. When the YAST2 module loaded to give me access to boot loader options, it said that there was a partitioning problem :rolleyes:

If anyone can boot a Linux LiveCD on a Windows box, they can use the dd command to copy out the MBR boot info (however many bytes that is, 446 or something), then you can use a Linux LiveCD to use the dd command to re-write it to your drive without needing to find any other utiltites.

EDIT: Yes, it is 446 bytes: http://www.diydatarecovery.nl/mbr.htm

The command dd if=/dev/hda of=/dev/hda1/mbr.bin bs=446 should work to read the MBR, and place it in a file called "mbr.bin" in the root directory of your first partition (assuming your LiveCD can write to it). You can pick a floppy or some other device, too.

You would have to get a copy of the MBR from another PC. You could do it yourself, if you have another PC.

Disclaimer: I have *NEVER* tried this personally, so cannot vouch that it will work.

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

    • No registered users viewing this page.
  • Posts

    • Helldivers 2 announced for Xbox, finally ditching PlayStation console exclusivity by Pulasthi Ariyasinghe In a surprise announcement, a massive PlayStation console exclusive has been announced for Xbox consoles. Over two years after launching, Helldivers 2 has now been confirmed for Xbox, and pre-orders are already live. Catch the brand-new platform announcement trailer above. "A new dawn is upon us. Super Earth is expanding its operations and opening new enlistment centres," says the announcement on Helldivers' social media channels today. "Xbox players, your opportunity to enlist is coming when HELLDIVERS 2 deploys to Xbox Series X|S." Developed by Arrowhead Game Studios, the studio behind Magicka, Helldivers 2 comes in as a third-person shooter experience focused on cooperative play. Set in a future society, players take the role of shock troops going across the galaxy to defend humanity against aliens, robots, and other threats as well as 'spread democracy.' “We know gamers have been asking for this for some time and we are so excited to bring more Helldivers into our game," says Helldivers 2 Game Director Mikael Eriksson. "We have so much more in store for the future months and years – and the more players we have the more stories we can tell! The fight for Super Earth has only just begun." Helldivers 2 on Xbox Series X|S will be released on August 26. Both the Standard Edition and Super Citizen Edition versions are now available for pre-order, costing $39.99 and $59.99, respectively. Crossplay has also been confirmed as a feature, connecting Xbox with PlayStation and PC players.
    • I'd probably use the word consistent instead of reliable. It isn't that games crash more on Windows 11 (short of the NVidia driver issues, but you can't really blame Windows for that). It is true that Windows 10 produces more consistent benchmarks, which would translate into a smoother gaming experience. Windows 11 requires more customization to make in a "clean" test system. Also, you're likely not wrong that 25H2 will be the last version before Windows 12, but there will likely be Windows 11 version releases after Windows 12 comes out. Keep in mind that Windows 10 got both 21H2 and 22H2 after Windows 11 came out, I don't see why Windows 12 would be any different. Maybe Microsoft will be comfortable shutting Windows 11 development down sooner if Windows 12 doesn't have the same kind of spike in hardware requirements that 11 did, but this is all just speculation, we will have to wait and see what happens.
    • Google open-sources zero-knowledge proof code for enhanced online privacy by Paul Hill When you go out to a physical store and attempt to buy alcohol or cigarettes, you’ll get asked to show some ID; online, when you want to visit adult sites, you don’t currently need to prove your age, but lawmakers in various countries are looking to change this. One technology that has been developed to address the age checks needed is Zero-Knowledge Proof, where you prove your age without having to reveal other data like birth date or ID. To help companies develop their own Zero-Knowledge Proof (ZKP) technologies, Google has released its ZKP libraries as open-source, meaning they can be taken and used in other projects or adapted. This will make it easier for third-party developers to create privacy-enhancing age verification applications. We heard a bit about ZKP from Google earlier this year when the company said that it was integrating the technology into Google Wallet to help disconnect your age from your identity. It also said at the time that it would be using it in other Google products and partner with apps like Bumble to help with verification. It also said at the time that it would open-source ZKP; that promise has now been fulfilled. As libraries, Google’s newly open-sourced software can be integrated into a whole range of applications. As mentioned, Google is using it in Google Wallet, and it could also be used to verify the age of people visiting adult websites without needing to reveal their identity as part of the verification process. Google has also said that the European Union’s eIDAS regulation encourages EU member states to integrate technologies like ZKP into the European Digital Identity Wallet (EUDI Wallet). The open-sourcing of ZKP could help with the acceleration of the development of these EUDI Wallets. The open-sourcing of the ZKP libraries by Google will benefit various groups of people. We’ve mentioned that developers will benefit as they can use the libraries in a variety of apps. Businesses will also benefit by being able to meet privacy needs more easily. Another group to benefit will be researchers who can use this “more efficient and performant ZKP implementation” to help create new applications and uses of technology. Finally, users will benefit from more private and secure digital ecosystems. Now it remains to be seen how much adoption these ZKP libraries will get, given the growing need for such technology. Image via Depositphotos.com
    • I Have a batch file that opens 2 websites dealing with money. I want to add to it with the first step to remind me to start a vpn extension that I use with chrome.  If  it is easier to use powershell that is fine too.  thx   Hope this is enough info.
  • Recent Achievements

    • Week One Done
      956400 earned a badge
      Week One Done
    • First Post
      loose_observer earned a badge
      First Post
    • Week One Done
      BeeJay_Balu earned a badge
      Week One Done
    • Week One Done
      filminutz earned a badge
      Week One Done
    • Reacting Well
      SteveJaye earned a badge
      Reacting Well
  • Popular Contributors

    1. 1
      +primortal
      446
    2. 2
      ATLien_0
      158
    3. 3
      +FloatingFatMan
      150
    4. 4
      Nick H.
      65
    5. 5
      +thexfile
      62
  • Tell a friend

    Love Neowin? Tell a friend!