How do I uninstall Grub after uninstalling Fedora Linux?

"Please leave a message at the beep, we will get back to you when your support contract expires."

Moderators: phlip, Larson, Moderators General, Prelates

How do I uninstall Grub after uninstalling Fedora Linux?

Postby Alex_K » Tue Jun 19, 2012 4:07 am UTC

I posted this a few hours ago on Yahoo Answers but then remembered that it's Yahoo Answers, so went to the biggest source of Linux/OS/freeware lovers and emerita I could think of. Here's the extent of my knowledge on the problem as a Linux noob after two hours of Googling.

I installed Fedora Linux a few days ago by dividing my disk space between my Windows 7 install and Fedora 17. I recently uninstalled it by deleting its partition and giving the space back to Windows, but now Grub is still the main bootloader, and thus tells me that the partition isn't there, because it's not. I got back on to Windows using the Super Grub disk and the Detect OS option, but how do I permanently uninstall Grub, or at the very least, make NTLoader the main bootloader? I don't have a Windows 7 install disk, it came preloaded on this computer. Is there any way I can maybe make one, just to switch back to NTLoader? I can also make another Fedora Live Media disk, which is how I installed it in the first place. Getting another copy of Windows isn't an option, nor is switching entirely to any Linux distro or getting a full-sized Linux install disk; I'm on DSL through a wireless connection and get like 100 kbps when nobody else is using it, which they always are. Similarly sized downloads have taken literally days.

I can keep using the Super Grub disk to get on Windows until this gets fixed, but the sooner I get NTLoader back in charge the better. I can supply any other pertinent data you need in good time, but until then, thanks in advanced, you beautiful, beautiful geeks.
Alex_K
 
Posts: 1
Joined: Tue Jun 19, 2012 3:38 am UTC

Re: How do I uninstall Grub after uninstalling Fedora Linux?

Postby scarecrovv » Tue Jun 19, 2012 4:10 pm UTC

Edit: Follow Jorpho's advice below.

I'm not sure if it's possible to put the windows bootloader back without having a windows CD/DVD. However, you might be able to configure grub to boot windows, and windows alone. I'm assuming that when you "uninstalled it by deleting its partition and giving the space back to Windows" you overwrote your /boot partition as well, and it's this that grub is complaining about being unable to find. Perhaps someone else has a better solution, but here's what I suggest:

Install Fedora 17 like you did before, except check the "review and modify partitions" checkbox when it offers to partition your disk. Now Fedora will probably automatically come up with something like this:

/dev/sda1 - Windows
/dev/sda2 - /boot
/dev/sda3 - LVM containing:
* /swap
* /

Rearrange it like this, so that the partition with /boot comes at the end of the disk:

/dev/sda1 - Windows
/dev/sda2 - LVM containing:
* /swap
* /
/dev/sda3 - /boot

After the install completes, you can give the second partition back to windows, but keep the third intact. Now grub will (hopefully) be able to boot windows, and won't care that there's no linux system present. You may want to edit /boot/grub/menu.lst to make it just boot windows without asking questions or giving you 5 seconds to think about it, once everything else works. If you need help with any of these steps, just ask.
Last edited by scarecrovv on Thu Jun 21, 2012 7:16 am UTC, edited 1 time in total.
User avatar
scarecrovv
 
Posts: 581
Joined: Wed Jul 30, 2008 4:09 pm UTC
Location: Massachusetts

Re: How do I uninstall Grub after uninstalling Fedora Linux?

Postby Jorpho » Wed Jun 20, 2012 1:54 am UTC

The standard tool for mucking with the Windows bootloader is EasyBCD. It looks like you should be able to use it to restore the Win7 bootloader without a Win7 retail CD.
http://neosmart.net/EasyBCD/
User avatar
Jorpho
 
Posts: 5036
Joined: Wed Dec 12, 2007 5:31 am UTC
Location: Canada


Return to The Help Desk

Who is online

Users browsing this forum: No registered users and 6 guests