Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I installed two OSes, Windows 7 and Linux. Now when I merge my disk partition D and F the grub> prompt is opened when I start my PC. I need to enter four commands to boot into Windows.

I want to uninstall Linux (which is installed in some logical drive), but I have no clue on how to find the drive and remove Linux from there.

share|improve this question
3  
Use windows installation disk and repair the boot process. It will do this for you automatically. –  mnmnc Dec 19 '12 at 9:18
3  
in regards to removing the linux data - use Drive Management in compmgmt.msc in Windows. You will see some Uninitialised space or some drives that cannot be accessible from Windows. Format them and you will be able to use it, or format and extend existing partitions to use the space on other drive/partition as well. –  mnmnc Dec 19 '12 at 9:42
2  
Yes, or you can use a more friendly program like EASUS Partition Manager. Also, I'm sad you're uninstalling Linux. :-( –  ÃŁŁǫǛȉЖΦΤїҪ Dec 19 '12 at 15:04
    
@allquixotic, So am I. I love Linux. Actually, I use OS X, but Linux is way better than Windows... In my opinion of course. –  Josiah Dec 19 '12 at 15:08

1 Answer 1

I'm building on @mnmnc's comments, here.

What you are seeing isn't really Linux per se, it's GRUB's boot prompt. GRUB is the boot loader commonly used for Linux on x86 and compatible architectures these days, but it's not the only way to bootstrap the Linux kernel. Before GRUB became mainstream and stable, I believe LILO (the Linux Loader) was the most common. For bootstrapping from DOS (yes, this was once reasonably common) one would use LOADLIN. I'm sure there have been others as well, even if we restrict ourselves to the x86/IA-32 architecture.

When you installed Linux, the installation placed GRUB in two distinct locations. The bare-bones boot loader gets written directly to disk, and additional functionality for it (such as that to display a fancy menu, the configuration specifying the menu options available, and the code that lets you choose between them) probably went into /boot/grub on your Linux root partition. Since those files are now no longer available, you have to enter the boot commands manually. Hence the grub> prompt.

The (relatively) simply fix, as has been pointed out in the comments to the original question, is to use your Windows installation media to perform a repair installation. This will overwrite the boot sector part of GRUB, for all intents and purposes "uninstalling" GRUB. The fact that Windows has no understanding of alternate boot loaders and most often simply overwrites them without even prompting is a common failure case when setting up dual boot (the easy way around that is to always install Windows first, followed by any other OSes one wants to run in a multi-boot setup), but in this case you can use it to your advantage to knowingly revert to a single-OS configuration fairly easily.

Once all remnants of your Linux installation have been removed, you can safely remove the partitions that previously held that installation using Disk Management, and then expand your Windows partition(s) into the then free disk space.

TL;DR: Do a Windows repair installation to get rid of the boot prompt.

share|improve this answer
    
This is perfect –  pratnala Dec 19 '12 at 15:39
2  
Full repair installation isn't necessary, you CAN reinstall just the bootloader. For windows 7 it's using bootrec, fixmbr, and fixboot commands. –  Rob Dec 19 '12 at 16:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.