PDA

View Full Version : Removing Linux from primary drive


DarqHelmet
02-14-2006, 06:45 PM
I have an extrenal hard drive now and want to take Kubuntu off my laptops internal drive and run Linux off the external. How can I do this and put the 10 gigs back to windows?

mohapi
02-14-2006, 07:25 PM
Is this (http://ubuntuforums.org/showthread.php?t=80811) what you're after? It looks like it's a fairly straightforward procedure.

abf
02-14-2006, 07:57 PM
to remove ubuntu.

run a livecd or partition magic. delete the linux and swap partitions. resize windows back to 100%
boot up with WinXP cd and go to "restore", pick your windows installation, then do "fix mbr" it will give you a message trying to scare you like "if something goes wrong you'll lose the bootability of your drive blah blah blah" just shut it up... say "y" and press enter. Wait for it (takes about a minute or so). When it says its done, reboot, take the windows cd out. You're now back to having a Windows bootloader and have XP be 100% of your drive.

if you don't mind having grub, then just edit grub.conf and remove all the linux entries. then you don't need to do the fix mbr.

DarqHelmet
02-14-2006, 09:09 PM
to remove ubuntu.

run a livecd or partition magic. delete the linux and swap partitions. resize windows back to 100%
boot up with WinXP cd and go to "restore", pick your windows installation, then do "fix mbr" it will give you a message trying to scare you like "if something goes wrong you'll lose the bootability of your drive blah blah blah" just shut it up... say "y" and press enter. Wait for it (takes about a minute or so). When it says its done, reboot, take the windows cd out. You're now back to having a Windows bootloader and have XP be 100% of your drive.

if you don't mind having grub, then just edit grub.conf and remove all the linux entries. then you don't need to do the fix mbr.

Ok so run the live cd kill the linux parts and resize windows back to 100%. How do you edit grub so that I dont have to deal with MBR.

DarqHelmet
02-14-2006, 09:09 PM
Oh and thanks abf.

abf
02-14-2006, 09:45 PM
just run the mbr. its pretty easy

1.Restore Windows XP MBR

To start the computer and use the Recovery Console to replace the MBR

1.Insert the Windows XP Professional Setup CD-ROM into the CD-ROM drive.

2.Restart the computer. If prompted to press a key to start the computer from the CD-ROM, press the appropriate key.

3.When the text-based part of Setup begins, follow the prompts. Press the R key to repair a Windows XP Professional installation.

4.If you are repairing a system that has more than one operating system installed, from the Recovery Console choose the Windows XP Professional installation that you need to repair.

Note: If you press ENTER without typing a number, the Recovery Console quits and restarts the computer. The Recovery Console might also show valid installations of Windows NT 4.0. However, the results of attempting to access a Windows NT 4.0 installation can be unpredictable.

5.When prompted, type the Administrator password. If you do not have the correct password, or if the security database for the installation of Windows XP Professional you are attempting to access is corrupted, Recovery Console does not allow access to the local disks and you cannot repair the MBR.

6.To replace the MBR, at the Recovery Console command prompt, type:

fixmbr

Verify if you want to proceed. Depending upon the location and the cause of the corruption within the damaged MBR, this operation can cause the data on the hard disk to become inaccessible. Press the Y key to proceed, or press the N key to cancel.

drizek
02-14-2006, 09:52 PM
and you can also set the grub timer to 1 second so it will pretty much just boot windows automatically.

seablade
02-15-2006, 08:50 AM
Actually I believe you can set grub to 0 seconds if you wanted to;)

Seablade

abf
02-15-2006, 03:41 PM
Actually I believe you can set grub to 0 seconds if you wanted to;)

Seablade


false.


timeout 0


means unlimited time, so it grub will remain forever until you make a selection manually.

seablade
02-15-2006, 04:26 PM
Hmm Ok now I gotta remember, maybe I set it to half a second or sometihng, I used to have it set to an near instantaneous boot I think.

Seablade

DarqHelmet
02-16-2006, 11:59 AM
Thanks abf worked great.

masahiro
03-25-2006, 01:06 PM
does anybody know for a fact whether the fixmbr procedure will work if you use an original xp 'sp1' cd, but you are running xp 'sp2'?

e.g., you have a dual boot system with linux and xp sp2. you want to restore system to just xp sp2. if you use an original xp 'sp1' cd to operate fixboot and fixmbr, should that work, or is there the potential for errors?

i know you can create a slipstreamed sp2 cd, but i can't do that with my copy of my xp cd...

crashovrride
03-28-2006, 08:40 AM
masahiro, it will work.