Thread: Removing Ubuntu and getting its space back

  1. #1
    Hail to the king, baby. Akkernight's Avatar
    Join Date
    Oct 2008
    Location
    Faroe Islands
    Posts
    717

    Removing Ubuntu and getting its space back

    Hello!

    I've been using Ubuntu for the past days, but now I want to just move back to Windows. So how do I Uninstall Ubuntu, and get the space back for the partition I made for it?
    Like, the 200 GB I gave Ubuntu when I installed it?

    Thanks in advance!
    Currently research OpenGL

  2. #2
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by Akkernight View Post
    Hello!

    I've been using Ubuntu for the past days, but now I want to just move back to Windows. So how do I Uninstall Ubuntu, and get the space back for the partition I made for it?
    Like, the 200 GB I gave Ubuntu when I installed it?

    Thanks in advance!
    What tool did you use to resize the partition to make space for Ubuntu? Just use the same tool to merge the partition back into your Windows partition.
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  3. #3
    Hail to the king, baby. Akkernight's Avatar
    Join Date
    Oct 2008
    Location
    Faroe Islands
    Posts
    717
    I used the Ubuntu installation process thing... How do I use it again?
    Currently research OpenGL

  4. #4
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    Sent from my iPadŽ

  5. #5
    Hail to the king, baby. Akkernight's Avatar
    Join Date
    Oct 2008
    Location
    Faroe Islands
    Posts
    717
    So, I burn that to DVD, restart the PC with the newly burnt DVD in the DVD drive, and I should get an partitioning application started that should help me through the process?
    Currently research OpenGL

  6. #6
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,229
    Ubuntu Live-CD (which you presumably already have) includes that.

    Just boot into Live-CD, open a gnome-terminal, and type
    Code:
    sudo gparted

  7. #7
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Can't you just format the partition and install Windows? I believe Windows even gives you that option during install.
    (although getting rid of the Linux boot loader is a pain in the ass. You'll probably have to run fdisk /mbr to get rid of it)
    "I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008

    "the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010

  8. #8
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,229
    I think he meant he has a dual-boot system right now, and want to merge the Linux partition into the Windows one.

    (although getting rid of the Linux boot loader is a pain in the ass. You'll probably have to run fdisk /mbr to get rid of it)
    Just installing Windows will do. It will overwrite the Linux boot loader without your permission (and there is no way to prevent it, making installing Windows after Linux for dual-boot a hassle).

  9. #9
    Hail to the king, baby. Akkernight's Avatar
    Join Date
    Oct 2008
    Location
    Faroe Islands
    Posts
    717
    ok, I did start gparted, still I couldn't remove the Ubuntu partition 'cause Linux swap partition was beneath it -.-
    Any suggestions?
    Currently research OpenGL

  10. #10
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    Remove the swap partition too?
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  11. #11
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    Quote Originally Posted by cyberfish View Post
    Just installing Windows will do. It will overwrite the Linux boot loader without your permission (and there is no way to prevent it, making installing Windows after Linux for dual-boot a hassle).
    I remember having to do an fdisk /mbr a long time ago to remove the boot loader. I was using Grub, so maybe that isn't a problem with Lilo, or maybe the newer versions of Windows are better at getting rid of it?
    "I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008

    "the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010

  12. #12
    Registered User
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    3,229
    I'm pretty sure everything since at least XP will overwrite the MBR during install.

    Linux installers (at least the few I have used) on the other hand, will give you the option of installing (overwriting) the boot sectors or not (many modern ones will even detect existing Windows installations and add them to grub config).

Popular pages Recent additions subscribe to a feed