LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 05-29-2007, 12:13 AM   #1
battle_scarred
LQ Newbie
 
Registered: May 2007
Distribution: *buntu family
Posts: 13

Rep: Reputation: 0
Uninstalling Ubuntu on a machine with WinXP Dual-Boot


Okay, so, I have an HP Pavillion.
With it being an HP, it didnt come with any XP Cds. It only has a recovery partition that has the WinXP disk image on it.

A little while ago, I installed Ubuntu to dual-boot with WinXP.
However, I wanted to remove it now, because I want the 80 GB it allowed to linux back to my Windows partition.

I was wondering how I could un-install Ubuntu and restore that 80 GB back to Windows without having to completely format my hard drive.

If it helps anyone, My partitions are as follows:

WinXP 62.47 GB NTFS
Windows Recovery Partition 4.86 GB FAT32
Primary Linux Partition 32.69 GB EXT3
Linux Swap Partition 27.65 GB linux-swap

I know the linux doesnt add to 80 GB, but theres 21.38 unallocated drive space.

Thx in advanced

-John
 
Old 05-29-2007, 01:12 AM   #2
pda_h4x0r
Member
 
Registered: Feb 2006
Location: somewhere in cyberspace
Distribution: Debian, Familiar
Posts: 380

Rep: Reputation: 30
You can just reformat that 80 GB partition as ntfs and allow Windows to give it a drive name, and have two Windows partitions if you want. This way, you can use the second one to store data, and if the first one fails, the second one is still recoverable. As far as combining your current partition with the Linux partition, you should be able to use something like Partition Magic to do that. Just make sure to back up your data beforehand--it doesn't always work, I'm afraid.
 
Old 05-29-2007, 01:19 AM   #3
battle_scarred
LQ Newbie
 
Registered: May 2007
Distribution: *buntu family
Posts: 13

Original Poster
Rep: Reputation: 0
Well, if i did do that, which i wouldnt know how to, wouldnt there be a problem with the boot loader GRUB?
 
Old 05-29-2007, 01:21 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,241

Rep: Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020
Nope - don't do that. Especially if you are using grub as the boot loader.
You'll need to sort out the loader first, else you won't be able to boot anything. This is normally done from the (XP) CD using recovery console - can you even run Recovery Console if you don't have the CD ???.
Then you can worry about reclaiming the space.

Edit: O.K., it looks like you can install Recovery console in XP - see the Help search on the "Start" menu.
Erk - just thought ... this might need the CD as well. Bummer.

I'd install it and boot into it to make sure, then run fixmbr.
Reboot to make sure it looks like the XP loader, then just delete the Linux partitions. The gparted CD will do the NTFS resizing for you - else Partition Magic should handle it also if you have that.

Last edited by syg00; 05-29-2007 at 01:33 AM.
 
Old 05-29-2007, 01:32 AM   #5
battle_scarred
LQ Newbie
 
Registered: May 2007
Distribution: *buntu family
Posts: 13

Original Poster
Rep: Reputation: 0
Well what do you mean by "recovery console"?
It being an HP machine, it didnt come with an XP cd, just the recovery partition.
That partition is only avaliable at startup by pressing F5. When the recovery is run, it gives only two options- destructive recovery; which basically formats the drive, and reinstalls windows; and non-destructive recovery, which deletes all the current changes made by the previous user, and reinstalls the core applications.
 
Old 05-29-2007, 01:44 AM   #6
battle_scarred
LQ Newbie
 
Registered: May 2007
Distribution: *buntu family
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by syg00

Edit: O.K., it looks like you can install Recovery console in XP - see the Help search on the "Start" menu.
Erk - just thought ... this might need the CD as well. Bummer.

I'd install it and boot into it to make sure, then run fixmbr.
Reboot to make sure it looks like the XP loader, then just delete the Linux partitions. The gparted CD will do the NTFS resizing for you - else Partition Magic should handle it also if you have that.
Sorry, but I cant gather what you mean with "it". And i dont have Partition Magic.

When I was logged into Ubuntu (im in XP right now) i looked in gparted and tried resizing my windows parition with the 21 GB of unallocated drive space, but it had the resize/move option unavaliable.
 
Old 05-29-2007, 02:01 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,241

Rep: Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020
Sorry - I add the "erk" line later, and it threw things out a bit.

The "it" was in reference to Recovery Console - once it's installed, it is added as another option on the XP boot.ini Hence you'd be able to boot grub to select XP, to get another menu - including Recovery Console.
As for gparted, go get the liveCD - only about 50-60 Meg.
 
Old 05-29-2007, 02:08 AM   #8
battle_scarred
LQ Newbie
 
Registered: May 2007
Distribution: *buntu family
Posts: 13

Original Poster
Rep: Reputation: 0
Wouldnt I need the XP CD to install the Recovery console?

Sorry, its 1 Am and my brain is a little out of whack right now.
 
Old 05-29-2007, 02:14 AM   #9
hand of fate
Member
 
Registered: Nov 2003
Distribution: Mandriva
Posts: 441

Rep: Reputation: 30
Quote:
Originally Posted by syg00
Reboot to make sure it looks like the XP loader, then just delete the Linux partitions. The gparted CD will do the NTFS resizing for you - else Partition Magic should handle it also if you have that.
There's no need for Partition Magic or GParted here, you can delete the partition using built in Windows tools.

In Windows, right-click on "My Computer" and seleck "Manage", then go to the "Disk management" option.
 
Old 05-29-2007, 02:18 AM   #10
battle_scarred
LQ Newbie
 
Registered: May 2007
Distribution: *buntu family
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by hand of fate
There's no need for Partition Magic or GParted here, you can delete the partition using built in Windows tools.

In Windows, right-click on "My Computer" and seleck "Manage", then go to the "Disk management" option.
Doesnt work since theres already four partitions, and it wont let me add the unallocated drive space to windows. Also, if i just deleted the linux partitions, there would be an error with GRUB, and itd freeze during startup.
 
Old 05-29-2007, 08:01 AM   #11
hand of fate
Member
 
Registered: Nov 2003
Distribution: Mandriva
Posts: 441

Rep: Reputation: 30
Quote:
Originally Posted by battle_scarred
Doesnt work since theres already four partitions, and it wont let me add the unallocated drive space to windows. Also, if i just deleted the linux partitions, there would be an error with GRUB, and itd freeze during startup.
Wouldn't you get exactly the same issues if you used GParted or Partition Magic?
 
Old 05-29-2007, 09:58 AM   #12
battle_scarred
LQ Newbie
 
Registered: May 2007
Distribution: *buntu family
Posts: 13

Original Poster
Rep: Reputation: 0
Probably. But if i did do that, delete the linux partitions in Windows, how do i solve the grub issue without an XP cd?
 
Old 05-29-2007, 10:19 AM   #13
drizake
LQ Newbie
 
Registered: Dec 2006
Posts: 2

Rep: Reputation: 0
You definitely need to fix the XP MBR before you delete the linux partition. I googled for "restore windows XP mbr without CD" and found the following link:

http://www.softwaretipsandtricks.com...out-xp-cd.html

It seems to offer a simple solution.

After your mbr is fixed in windows, you'll have to use knoppix or some other bootable OS with qtparted on it to resize your original windows partition to take up the whole disk. You can't resize an NTFS partition from within windows using the disk management tool. Also, another poster was correct in saying that you can just delete the Linux partition from disk management and then reformat it using NTFS. You would just have two NTFS partitions instead of one which can actually come in handy...
 
Old 05-29-2007, 10:30 AM   #14
battle_scarred
LQ Newbie
 
Registered: May 2007
Distribution: *buntu family
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks.

And which should I do first, delete the partitions and make a new windows partition, or run this clone fixmbr?

Edit:
The program didnt run for me.
I double clicked on it after the download. It brought up command prompt with various things displayed. Then it opened a webpage, similar to a README. Once it opened that webpage, command prompt close. So i tried running the Program again, and it just opens command prompt and then closes it within a second, not letting me do anything in the program.

I do have administrative privellages.

Edit 2:
Okay, I get it now. But the question still stands, which first? Delete partitions, or fix mbr?

Last edited by battle_scarred; 05-29-2007 at 12:04 PM.
 
Old 05-29-2007, 06:56 PM   #15
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,241

Rep: Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020Reputation: 1020
See my post above - fix the loader first.
Always leave yourself a fallback.
 
  


Reply


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make XP boot as default OS in WinXP-Ubuntu dual boot system svin Ubuntu 14 11-04-2009 04:49 PM
uninstalling ubuntu from a dual boot linux box ragoetz Linux - Software 1 04-02-2007 12:22 PM
Dual Boot Machine Fedora 5 / WinXP, XP messes up the IP addressing hferretluv Linux - Newbie 11 06-12-2006 11:47 PM
Dual Boot Machine, WinXP on SATA, Slack on IDE Poindexter Slackware 8 03-05-2006 06:31 AM
Installing Mandrake9.2 on a Fedora winxp dual boot machine dhanakom Mandriva 2 07-04-2004 09:24 AM


All times are GMT -5. The time now is 12:02 AM.

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