How to uninstall Linux from a Dual-Boot Windows 7/Vista Netbook using Startup Repair

OK, so, you’ve tried a Linux distro for netbooks (like Ubuntu) and you’ve decided, “Hey, I don’t like this.” I’ve been there, too.

But now, whenever you boot, you get an annoying GRUB menu asking you to select what OS you want to boot into, and you have to scramble to switch to Windows 7. Plus, you’ve got a swath of disk space you can’t use anymore because the Linux distro you don’t want any more is using it. Most people would advise using a Windows repair disk, which isn’t really helpful on a netbook. (But if your netbook runs Windows XP, you’re going to have to make a Windows XP USB boot disk or boot from your vendor’s recovery partition either from the BIOS menu or from an entry in GRUB; the manufacturer’s manual will tell you how to do that).

The good news is if you run Windows Vista (unlikely, as it wasn’t shipped with many netbooks) or Windows 7 (much more likely), you can uninstall Linux from your netbook without a repair CD. To do so, boot your netbook and select the Windows 7/Vista entry. As soon as you do this, start hitting the F8 key until you reach a startup options menu. From that menu, choose “Startup Repair” (normally the first option). Windows setup will then load, ask you to select your language, and, if you have a password-protected account, ask you to log in with that account. From there, select “Command Prompt” and in the prompt run the following:

bootrec.exe /fixmbr

The system should respond with “The operation completed successfully.” Close the command prompt and choose the “Restart” button to continue. At this point, your netbook should boot directly into Windows 7 without GRUB appearing at all. Once Windows has started, right click Computer in the Start menu and choose “Manage.” You’ll need to “Allow” this if UAC is enabled. From the left side of the window that appears, choose “Disk Management” under “Storage.”

At this point, you should see all of your drives listed, as well as the one or two primary partitions, without any label or file system information. You can now delete these to recover the hard-drive space from your Linux installation. DON’T delete any entry marked "recovery partition," however; these are restore tools provide by your vendor to allow you to reinstall Windows if necessary — you want them around. Once you’ve deleted the Linux partitions, you’ll see a healthy chunk of free space on your drive. You can select the NTFS partition nearest this block from the free space, right click it, and choose “Extend volume” to add this free space to your volume.

That’s it! Linux is now totally removed from your netbook.

Addition 1: Windows won’t let me use “Extend volume” after deleting Linux

This can occur in a number of situations, including having the free space to the left of the partition to extend or if Windows has decided to store system files at the end of the partition. If this happens, you have two choices.

Your first choice is to make a new drive in the empty space and assign it a new drive letter. This will make the additional space appear as a second drive in "Computer," and you can use it that way (although it won’t give you additional space in your primary partition).

If your heart is set on expanding your primary partition, your best bet is to use GParted, humorously enough, from whatever USB drive you used to installed Linux in the first place. Use the “Try” or “LiveCD” option of the distro, open a terminal, and run "sudo gparted."

Select your main drive from the top-right drop-down menu. This will let you expand the main partition as you see fit. (Don’t delete any partitions from here). Once you’re done, you can save the changes to the drive and restart. Chkdsk will probably run the first time Windows starts; this is normal and doesn’t mean anything is wrong with your drive.

See also: Using GParted to Resize Your Windows 7 or Vista Partition (How-to Geek)

38 thoughts on “How to uninstall Linux from a Dual-Boot Windows 7/Vista Netbook using Startup Repair

  1. Waw thank you SO SO SO much! Ive spent hours trying to find away to do this on my netbook and this was exactly what I needed!
    Works totally fine and no more stupid grub!
    I didnt close the command prompt after it accepted the bootrec.exe thing,, i just clicked restart but it didnt matter =]
    Again thank you so much!

  2. wow its supop, it worked nicely, i recommend this to everyone, nodoubt..i have successfully remove linux without affecting window7 in my dell vostro 3550, thank u.. I m so so happy

  3. I have tried this many times…. it isn’t working, it always reboots to the GRUB menu… uggg anyone have anymore suggestions?

  4. ive got a problem when i use testdisk it says i have 750 all together, and I do. when i boot windows i can only find my windows disks and nothing extra from the deleted linux.

    1. Hey!

      So, you don’t see the extra space in the disk management dialog? There’s a few possible reasons for that; before I get into the more unlikely it’s possible the window for some reason isn’t big enough to show the free space on the volume, so right click on the partition and see if the extend option is available anyways.
      If it isn’t, possibilities become weirder — one of the scarier ones being you have a rootkit that has placed your windows system in a transparent virtual machine (make sure to have a recent anti-virus installed and updated, obviously).
      You can try to use a tool such as Parted Magic instead of the windows disk manager. There is a larger, although still minor chance of data loss with this method so backups of important documents should be taken. Go to http://unetbootin.sourceforge.net/ and download the tool; then grab an empty USB flash drive and start unetbootin and choose “Parted Magic” as the distribution, the drive letter for your flash drive, and make a bootable disk. From there you’ll need to reboot your PC and allow parted magic to boot (if it boots straight into Windows again, enter your system BIOS to make sure the USB drive has boot priority, this varies from pc to pc and more detailed instructions can be found by searching for your computer or motherboard model on Google).
      You can then use GParted from within Parted Magic to extend your system partition to the remainder of the disk. After applying the change and reboot windows should scan the disk for errors and boot into the new, larger, system disk.

  5. Thanks Man. But i can’t seem to create a new volume on that partition any more. I use the new volume creation wizard and it always says “You do not have enough sapce” on finish

    1. In that case you’ll need to make a bootable USB key and use GParted to fully extend the partition. Windows’ own tools aren’t always able to extend that partition in every circumstance. There’re also a few other Windows-based partition tools that can run from within Windows such as the MiniTool partition wizard, but I haven’t tested them. There’s a good list of the 5 top partition tools (Windows and Linux based) along with reviews over here: http://www.top5freeware.com/top-5-free-disk-partition-software-for-windows

      1. I used a tool “EaseUS” and it worked perfectly. Installed it, and just created a new volume. Making the USB bootable and using gparted was getting quite tedious. Thanks a lot guys.

  6. Great write up.
    I tried, but did not work on my HP computer with Ubuntu and Grub.
    I selected the Win7 and hit F8, but the response issued a request for a StartUp CD. Which I don’t have. I have just the recovery CDs.
    Instructions say to contact Sys Admin or manufacturer.
    If I continue I get the usual Win7 start up.

    Do you have any idea of a work around for this?
    thanks, Hevad.

  7. Hello, First off thank you for this guide

    Unfortunately after restarting my computer, I recieve the error message, ” Error: no such partition
    grub rescue> ”
    I’m not quite sure what I messed up, as I had THOUGHT I was following the directions exactly, but it seems that I did not. =/
    I’m wondering if I forgot to “extend Volume” after removing the partitions.
    Is there a way that I can fix this?

    1. At this point your options are somewhat limited. You’ll need to boot to a windows rescue USB key (or a CD if you have a CD drive). You can follow the instructions here from a working PC to do that:

      http://www.techradar.com/news/software/operating-systems/how-to-create-a-windows-rescue-usb-stick-984726

      Once that’s done, you will need to boot from the USB key and then run startup repair three times. (Boot from USB, run start-up repair completely, reboot into USB, run startup repair completely, reboot into USB, run startup repair completely, remove USB and boot normally).

      You’ll need to run start-up repair three times because Windows is programmed with three possible solutions to fix startup issues it will apply in order, running it three times ensures all three occur.

      /Robin

  8. thanks! thorough and precise instructions, worked perfectly!
    diskmgmt extend did not work for me (it was “to the left”, I used minitool partition wizard (free home version could do it with like two clicks)

  9. Thanx so much but to extend volume when I right click it was shrink volume that was enabled and don’t know what it used for. Anyway thanx.

  10. My Windows 7 Pro on HP Mobile Workstation only had Safe Mode with Command Prompt. I chose that and a command window came up. However, bootrec.exe does not exist in System32.

  11. Thanks so much for your article. Huge help.

    As a note (Specs: Acer Aspire One 722, Windows 7):
    After I went through the first steps, according to Windows Disk Management I had 75 GB of “Free Space” but I could not allocate extend my primary partition to include it.

    I booted into Linux and using the GNOME Utility Manager saw that there was a logical partition on top of the free space. Using this utility manager, I deleted the logical partition.

    When I booted back into Windows, the 75GB was now labelled as “Unallocated” and I was able to extend my primary partition easily.

    Thanks for your help!

  12. Thanks a lot. I got to do it smoothly thanks to you 🙂

    A first restart after hitting F8, GRUB is still appearing, so I repeat the stuff after F8 once again but it didn’t work
    so I try to turn off my laptop manually, and after that GRUB didn’t even appear anymore
    No idea but hey, that works, so I got that going for me, which is nice

    Thanks once again, keep up the good work!

  13. Hi, unfortunately the GRUB page still appearing, although I’ve done all your steps.
    there is no error message. nothing, but somehow I still see GRUB page instead logging in directly to Windows
    please help, thanks

    1. Do you know if the windows boot manager is loading first? I know it might be awkward, but, can you take a photo of the boot selection screen that appears?

      1. Thanks for your reply, but I’ve already solved it by deleting Linux uption at EasyBCD application.
        Thanks 🙂

  14. I was using dual boot on my windows 7 and I had partition C:(windows), D:(linux), E:(Data drive). I thought of deleting linux so I go to disk management console and right click on D and delete this. This gave me an empty space so I extend my C drive with some space and remaining portion as a new D drive. But after doing this, my E drive is disabled. E is giving only delete volume option and I can’t access my data as It has no label and I’m unable to assign label. C and D drive are working fine. Please help me.

    1. I’d recommend booting into GParted (see the instructions above) and mounting the drive there to make sure everything is OK, if it is, rebooting into Windows after should have Windows automatically re-detect the partition.

      1. I have tried using gparted too but failed. I think that has corrupted my file system that’s why its showing me file system as ext4 and the file shown are viewable only because the actual files are of ntfs. Please tell me how I can fix that issue. I don’t wants to lose my data.

  15. I succeeded in following instructions but the Dual Boot remained. Then, through Control panel I started to remove unwanted programs and in the list was Ububntu. I uninstalled that and the Dual boot was gone.

  16. Thank you MAN ! works like a charme in removing GRUB.
    I also had to resize my partitions with Gparted, to use the free space,
    Booting in Win7 did some checks but I confirm for Win7 + Ubunutu 10.4 Robin’s method works wonderfully.
    Thank you again

  17. I just used your instructions to remove Ubuntu from my HP G60 running Vista. Your clear instructions worked like a charm. I think I’ll use Ubuntu on a trial basis… Feb. 22, 2017… Thanks, Robin!

Leave a Reply