Results 1 to 9 of 9

Thread: How to uninstall ubuntu on a dual boot PC

  1. #1
    Join Date
    Oct 2009
    Beans
    46
    Distro
    Ubuntu 13.04 Raring Ringtail

    How to uninstall ubuntu on a dual boot PC

    Hi

    I have dual booted with windows 7 and ubuntu for a couple of years. Over the last 6 months I have found I rarely use ubuntu as I have specific software that I regularly use on Windows that I prefer to the open source alternatives (and WiINE wasn't reliable enough for those programs).

    Anyway, is there any way I can uninstall ubuntu so my PC boots straight to windows 7 rather than going to the GRUB menu and loading ubuntu after 10 seconds? I can't seem to find how to get rid of it going to the grub menu (short of reinstalling windows 7 over the whole pC)

    Thanks

  2. #2
    Join Date
    Feb 2007
    Location
    /home/paris
    Beans
    690
    Distro
    Lubuntu 12.10 Quantal Quetzal

    Re: How to uninstall ubuntu on a dual boot PC

    mushypeas,

    I've never performed this option, but here is some info that may get you most of the way to where you want to go.

    First back up your data that you need to keep. Ensure that you have instalation media for your windows system (just in case).

    Read all the following before you start, if you have a concern you don't want to do this untill you are absolutely sure of what 'should' happen. Also as I say I have never done this, this is information that I have gathered from searching the net, you may do well to read the reference threads also prior to starting, as it may give you some idea of the problems you may get, and further search terms to investigate

    Boot into the Ubuntu live CD.

    Find out where the GRUB boot manager is located, you do not want to delete this, although you may need / decide to re-install a new grub partition (probably advisable). Read the instruction on the GRUB installing on the ubuntu wiki pages. You need to confirm that GRUB is installed on a separate device, I have had a quick read of the page I linked to, you should read this carefully to decide how you want to proceed.

    Edit the GRUB boot loader to default to boot the windows partition.

    Open gParted and you will be able to format the partition that has Ubuntu on it. You will need to format it to NTFS or windows will not be able to see it. Be carefull not to format the partition that has windows on it (it should be fairly obvious, but if not you'll need to log into your main ubuntu partition and gParted or fdisk from there to figure it out).


    Second option.

    This may sound safer, and is probably how I would go about it.

    You will want to get the 'alternate install ISO' of ubuntu or another Linux OS.
    Again format the original ubuntu partition back to NTFS
    Create a 'new' very small partition for a minial linux install. This will be a command line only install, no extra stuff, you should be able to find a linux version that requires only a few MB of disk space.
    Install your minimal linux to this new tiny space.
    This will ensure that GRUB is correctly installed on your system.
    Make sure that windows is the default OS to boot to from this newly installed GRUB (should be accessable from the GRUB menu)

    Some references:
    removing an unwanted second ubuntu partition: this is where most of my ideas where taken from
    GRUB
    ubuntu GRUB tutorial
    Smallest possible Linux install


    Hope these ideas help out.

    David
    Eee pc via Wubi install.
    evertying works straight out of the box

    My Launchpad page

  3. #3
    Join Date
    Dec 2009
    Location
    Fareham, UK
    Beans
    2,109
    Distro
    Ubuntu

    Re: How to uninstall ubuntu on a dual boot PC

    @ mushypeas
    If you are going to keep your Linux partitions 'theDavetheRave's advice is right.
    If you want to completely remove the non-Windows OS to will need either a Windows recovery CD or an original Windows DVD.

    Boot from the Windows media and select the 'Repair computer' option, do not use the 'Automatic Repair', it won't work. Instead drop to a 'Dos Prompt' - usually this is at the bottom of the window.

    In here you will need to run these commands:-

    1 Bootrec.exe /FixMBR
    2 Bootrec.exe /FixBoot
    3 Bootrec.exe /RebuildBCD

    Exit out of everything and reboot to Windows.

    These instructions will over-write the GRUB Boot-loader so you will not be able to boot into any other OS even though the other partitions are intact.
    You can then either wipe that partition and reformat it to use with Windows or leave it as is for when you want to come back to Linux.


    Hope this helps.

  4. #4
    Join Date
    Apr 2012
    Beans
    7

    Re: How to uninstall ubuntu on a dual boot PC

    i have tried the same thing but the grub did not go .
    i have even tried from this link
    http://askubuntu.com/questions/63610...bios-boot-menu
    help me solve out this issue

  5. #5
    Join Date
    May 2007
    Location
    Virginia, USA
    Beans
    13,263
    Distro
    Ubuntu Mate Development Release

    Re: How to uninstall ubuntu on a dual boot PC

    Boot into Win7, then use the Backup feature to create and burn a Win7 Repair CD.

    Boot from that CD and run Startup Repair three times -- that's right, three times.

    When you reboot after that, you should go straight into Win7.
    Ubuntu 17.04 Mate, Mint 18.1 Mate; MS Win 8.1, MS Win10 Pro.
    Will not respond to PM requests for support -- use the forums.

  6. #6
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: How to uninstall ubuntu on a dual boot PC

    If this is UEFI boot you have to manually remove the ubuntu folder from the efi partition and UEFI internally stores boot info and you have to erase that firmware entry in UEFI.

    Some UEFI may have this:
    Enter your UEFI menu, select "Boot maintenance manager", then "Boot options"

    Or launch an efi shell.

    # from live CD and use efibootmgr
    sudo efibootmgr -v
    The "-v" option displays all the entries so you can confirm you're deleting the right one, and then you use the combination of "-b ####" (to specify the entry) and "-B" (to delete it). Examples #5 is delete:
    http://linux.dell.com/cgi-bin/gitweb...README;hb=HEAD
    http://software.intel.com/en-us/arti...and-scripting/
    Launch EFI Shell from File System Device
    https://wiki.archlinux.org/index.php...ace#UEFI_Shell
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  7. #7
    Join Date
    Apr 2012
    Beans
    7

    Re: How to uninstall ubuntu on a dual boot PC

    i tried that but that dint work out .
    actually i wanted to reinstall ubuntu .i installed it .
    thanks oldfred

  8. #8
    Join Date
    Oct 2009
    Beans
    46
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: How to uninstall ubuntu on a dual boot PC

    Thanks for help everyone. Will have a go

  9. #9
    Join Date
    Apr 2011
    Location
    Ohio
    Beans
    99
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: How to uninstall ubuntu on a dual boot PC

    Hopefully you didn't wipe your recovery partition. Most manufacturers do not include Recovery discs anymore. And to top that off, most only have two options in their recovery environments, System Restore and Factory reset.

    You could use Grub Customizer to make Windows 7 the default OS and keep both. You can get it from Softpedia.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •