LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-15-2004, 08:32 AM   #1
glenn69
Member
 
Registered: Jul 2003
Location: Chicagoland
Distribution: ArchLinux
Posts: 261

Rep: Reputation: 32
Question How to remove linux....yet leave Windows XP?


We have a dual boot of RH9 and Win XP booting through grub. I need to remove linux, yet leave XP and have XP boot as the only OS. How do I do this?

P.S. we are not giving up on linux, just switching linux over to another computer where we can "play" with it without worries
 
Old 09-15-2004, 08:34 AM   #2
Boudewijn
Member
 
Registered: Nov 2003
Location: The Netherlands
Distribution: MDK: 10,10.1,10_amd64,9.2,9.1 . Debian: sarge,woody, Gentoo (X86 amd64 Sparc)
Posts: 219

Rep: Reputation: 30
ok,

you should remove the partition containing Linux (in the control center I gues (i'm not using RH)) .

When using lilo; go to /etc/lilo.conf

edit the bootloader config there, and run 'lilo'

Using grub, it's the same but you don't have to run 'grub'
 
Old 09-15-2004, 08:38 AM   #3
Baldrick65
Member
 
Registered: Aug 2003
Location: Dunedin NZ
Distribution: Mint 13 Cinnamon
Posts: 653

Rep: Reputation: 31
Use fdisk to delete the partition, use a Windows boot disk and run the command fdisk /mbr. That will remove the bootloader and boot directly into Windows. Then either format the old Linux partition or use Partition Magic to delete the Linux partition and resize the Win partition.

Baldrick
 
Old 09-15-2004, 08:54 AM   #4
drowstar
Member
 
Registered: Apr 2004
Location: Germany
Distribution: Slackware, Gentoo, Fedora
Posts: 205

Rep: Reputation: 30
Hi glenn69,
to "delete" one operating system, you best format the partition it was on to a file system supported by the operating system you want use it for from then on.
In your case this means: format the partition you have linux on right now to be of type NTFS.

- Have backups of your data
- apply basic laws of logic
- understand what you are doing (comments)
- double check


Here's what you want to do, step by step:
Disclaimer: Don't blame me for mistakes, I have not done this myself (obviously). Plus, I am only human too.
Code:
fdisk -l       figure out what partitions you need to get rid of
fdisk /dev/hdx replace with identifier for the hard drive you have linux on
d       to delete partitions
?       select a number [refer to step 1 for information on what partitions you want deleted]
?       repeat as necessary to delete all linux partitions (there should be at least one boot and one swap partition)
n       to create a new partition
t       to change the partition type of your new partition
7       NTFS
x       exit and write to disk - THIS STEP WILL DELETE YOUR LINUX PARTITION
Last you need to get rid of grub and have the computer use the windows bootloader again: format the Master Boot Record (MBR) (use DOS fdisk):
Code:
fdisk /mbr
The result is the following:
You have an additional Windows NT partition (for Windows XP) which should show up in windows.
Your linux parititions have vanished.
GRUB is gone.

Good luck,
- drowstar
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Want to leave XP for Linux bigmattxxl Linux - Newbie 13 08-04-2005 06:02 AM
I Want to leave Windows,Wireless USB NIC Help millennia Linux - Newbie 0 07-19-2004 08:51 PM
How to remove Linux and restore Windows on Dual boot using Grub TheBaffledKing Linux - Newbie 13 04-14-2004 06:47 AM
How to remove windows partition and incorporate the free space into linux? Ragnaar Mandriva 7 02-17-2004 07:57 PM
Help me leave the windows world Fuel Linux - Software 13 02-21-2002 05:55 AM


All times are GMT -5. The time now is 04:25 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration