LinuxQuestions.org
Visit Jeremy's Blog.
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 10-01-2004, 12:55 PM   #1
jpan
Member
 
Registered: Aug 2004
Distribution: Debian Libranet
Posts: 69

Rep: Reputation: 15
Question about removing Linux


Hi, I currently installed windows XP and Linux in my PC.
the MBR is now managed by GRUB of Linux.

Now i want to remove Linux from my PC, what should i do?
if i just format the linux partition in Win XP, will i not be able
to boot up since the MBR isn't occupied by WinXP?? Please
tell me the steps to remove the Linux completely and cleanly,
thanks a lot!! I'm gonna install Linux in a separate PC.



Jimmy
 
Old 10-01-2004, 01:00 PM   #2
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 473Reputation: 473Reputation: 473Reputation: 473Reputation: 473
This is asked an awful lot. The answer is that you should remove your Linux partitions (fdisk works) and run fdisk /mbr to clear out GRUB.
 
Old 10-01-2004, 01:10 PM   #3
jpan
Member
 
Registered: Aug 2004
Distribution: Debian Libranet
Posts: 69

Original Poster
Rep: Reputation: 15
should I run "fdisk /mbr" first, or clear the linux partition first??
may i do it in WinXP by running command window?
 
Old 10-01-2004, 01:35 PM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 473Reputation: 473Reputation: 473Reputation: 473Reputation: 473
You need to boot from a dos disk or a Windows disk (if you don't have a vanilla XP cd or 2k cd or 98 cd - go to www.putergeek.com and download a boot disk) then issue the commands.
 
Old 10-01-2004, 03:37 PM   #5
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
XP writes to the mbr on instal, so if you wanted to keep grub, you'd have to reinstall it. Saying that, you can obviously conclude that what you want to do is trivially easy.

If you want to reinstall XP on the whole disk, you can fdisk from Linux and delete all partitions, then create one large one as win95-fat32. Then you can install XP on it (I'd let XP format NTFS, though). Too easy.
 
Old 10-02-2004, 12:05 AM   #6
Bluenoser
Member
 
Registered: Jun 2004
Location: Nova Scotia, Canada
Distribution: Ubuntu 8.04 LTS
Posts: 138

Rep: Reputation: 15
The fdisk /mbr only works with Win98/Me as far as I know. I tried it and never got it to work. Here's how you do it with XP. Put your XP cd in your drive and reboot. Press R to get to the recovery console. At the command line, type fixmbr and this will get rid of the linux bootloader. You can reformat the linux partitions with XP's built in disk management. Hope this helps
 
Old 10-02-2004, 12:11 AM   #7
Tinku
Member
 
Registered: Jul 2004
Location: INDIA
Distribution: SusE, Gentoo,Debian,FreeBSD
Posts: 197

Rep: Reputation: 30
the best thing for a newbie would be this

Install the linux cd/or the boot options and select the following option
"Give the boot locader back to windows"
 
Old 10-02-2004, 08:44 AM   #8
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Quote:
Originally posted by Bluenoser
The fdisk /mbr only works with Win98/Me as far as I know. I tried it and never got it to work. Here's how you do it with XP. Put your XP cd in your drive and reboot. Press R to get to the recovery console. At the command line, type fixmbr and this will get rid of the linux bootloader. You can reformat the linux partitions with XP's built in disk management. Hope this helps
This will usually work, but is an extra step if your reinstalling XP. Many times, though, XP's install routine won't recognize a mbr that includes a non-windows bootloader. This is why I suggest the method I did. I've done this 100s of times and quite often, you're stuck with what you have unless you know the trick to get around it.

BTW, a search of the answers here on LQ would have saved this thread from being posted. This question gets asked probably once a week or so.
 
Old 10-02-2004, 08:50 AM   #9
vectordrake
Senior Member
 
Registered: Nov 2003
Location: NB,Canada
Distribution: Something alpha or beta, binary or source...
Posts: 2,280
Blog Entries: 4

Rep: Reputation: 47
Quote:
Originally posted by Tinku
the best thing for a newbie would be this

Install the linux cd/or the boot options and select the following option
"Give the boot locader back to windows"
This will also work if your windows disk actually will recognize the non-dos partitions, which it often does not (unless you do it from within windows itself. Then, if it will format over it, you're one of the lucky. If you've formatted your linux as reiser or xfs, good luck!

If you remember that Windows doesn't really recognize an "upgrade" path from anything besides ntfs or FAT(32), then you'll save yourself a headache. Remember that Microsoft doesn't promote the happiness and joy that other companies/OSs do and you'll be able to save yourself a lot of grief. Follow the advice in this thread. One or all of the methods will work. I have tried them all, and a few more. Good luck.
 
  


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
Removing Packages (quick question) talkingwires Debian 16 03-17-2009 07:13 AM
dpkg question about removing info juice99 Debian 1 09-04-2005 06:53 AM
A question on removing spare kernels satimis Fedora 2 01-09-2005 09:39 PM
Question on removing programs mandrake ru4life Linux - Newbie 1 07-20-2004 07:56 PM
GRUB question - removing old kernel ? hildog Linux - Newbie 1 09-30-2003 12:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:29 AM.

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