Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-26-2012, 12:04 PM   #1
LQ Newbie
Registered: Jan 2012
Posts: 1

Rep: Reputation: Disabled
How to Uninstall Ubuntu and Reinstall Without Losing GRUB

I am using Ubuntu in a dual boot system with Windows XP. Somehow I managed to load Ubuntu more than once, so I'd like to start over. The problem is that everything I've read seems to indicate that if I delete Ubuntu partitions, I'll lose the ability to boot windows.

My computer came with XP installed without a CD. So I cannot simply delete Ubuntu and boot back up with a Windows CD.

One solution I've read about suggests using EasyBCD, but it doesn't work with Windows XP, SP3.

I'm at a loss.
Old 01-26-2012, 01:25 PM   #2
Larry Webb
LQ Veteran
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
You can make a small partition of about 20 meg and install grub on it and chainload your windows installation before you start changing your ubuntu partitions. I you google seardh you will also find ways to download and repair xp mbr without the xp cd.

Why delete?
Reinstall and fix partitions on reinstall when it tells you when and where it is going to install ubuntu - select 'expert' or 'edit' and a window should open showing all the partitions on your hd. You can then select to change them or make new. Just do not mess or alter your windows partition.
Old 01-27-2012, 08:11 PM   #3
Wayne Sallee
Registered: Jun 2011
Location: Florida
Posts: 245

Rep: Reputation: 15
You can research the following commands:
To save the MBR to a file (this contains the partition table too):
dd if=/dev/sda of=sda-mbr-full bs=512 count=1

To save the MBR, without the partition table, to a file:
dd if=/dev/sda of=sda-mbr-nopart bs=446 count=1

To restore the MBR:
dd if=sda-mbr-nopart of=/dev/sda

To restore the MBR only part of the MBR and Part:
dd if=sda-mbr-full of=/dev/sda count=1 bs=446
But be very careful with dd, as you can destroy your data if you don't know what you are doing. Don't just copy and past the above code. You would need to rewrite it to your needs. And of course you would need to unmount the drive.

Most Linux distros will check for other os installed and ask you if you want to include them in the boot, when you are installing linux.

There is also a command that you can use while in grub to add another os to the boot menu.

Wayne Sallee


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu 10.10 uninstall and reinstall Windows 7 Abhish Linux - Newbie 6 01-12-2012 02:49 AM
[SOLVED] Grub failure and problems with grub or ubuntu reinstall. bboy2448 Linux - General 9 05-12-2011 06:18 AM
Uninstall ubuntu 10.10 netbook and reinstall 10.04 brucesmith Linux - Newbie 3 11-14-2010 01:38 AM
losing DSL, losing GRUB controller andreas_skw Linux - Newbie 4 06-14-2008 01:36 AM
losing DSL, losing GRUB controller andreas_skw Linux - Newbie 1 06-10-2008 11:46 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:51 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration