LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 01-08-2004, 03:21 PM   #1
crash89
Member
 
Registered: Jul 2001
Location: Northern VA
Distribution: SuSE 9.0
Posts: 61

Rep: Reputation: 15
Removing linux partition


I have a sad request... I have Mandrake and XP on the same machine -my wife's machine.. She wants me to remove linux from that machine. Is there a "safe" way to do this without re-installing the OS? Any help would be appreciated.
 
Old 01-08-2004, 03:36 PM   #2
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
just use a windows bootdisk and run fdisk and your xp partition will remain untouched ..
 
Old 01-08-2004, 03:55 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,245

Rep: Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624
Be sure to select to delete non-DOS partitions.

On the other hand
Assuming you dual boot the PC, create a boot floppy (if you don't already have one) then delete the boot loader. Tell the wife that you do not know how to reclaim the disk space then you can still boot linux with out her knowing about it. How to use it without your wife finding out I leave up to you. .
 
Old 01-08-2004, 04:15 PM   #4
crash89
Member
 
Registered: Jul 2001
Location: Northern VA
Distribution: SuSE 9.0
Posts: 61

Original Poster
Rep: Reputation: 15
No problem with still using it... I have another box that is running MDK 9.2 quite nicely. Oh, she definately wants the disk space back...
 
Old 01-08-2004, 06:57 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
Fdisk won't replace the bootloader with NT loader. You'll need to fire up the recovery console with your XP cd and type "fixmbr". That'll restore the bootloader and she'll get back to XP. After that, you can use XPs nice GUI tool in the disk management snap-in (in the Control Panel, under Administrative services). Just delete the unknown partition (by right-clicking on the pretty box that represents Tuxland) and then choose to format it. If she's picky about having two "drives", you'll have to resize the primary with a 3rd-party (<---read $$$) tool like partition magic and pray that her data is still there when you are done. Good luck. Then, I suggest you let her administer her computer as she sees fit and try to resist helping when she's attacked by a virus, drive-by install, etc. Good luck with that part (my wife didn't like it either)
 
Old 02-20-2008, 01:32 PM   #6
cmnorton
Member
 
Registered: Feb 2005
Distribution: Ubuntu, CentOS
Posts: 585

Rep: Reputation: 35
Additional Question

Assuming I have set up XP/Linux dual-boot using the secondary boot loader method, why does removing the Linux partition with fdisk (perhaps booting the system with Knoppix or another live CD and removing the partition) cause XP not to boot?

I have seen posts to this effect and am confused. Is this because fdisk is changing the MBR?

Last edited by cmnorton; 02-20-2008 at 01:42 PM. Reason: grammar and additional info
 
Old 02-20-2008, 02:19 PM   #7
mrrangerman
Member
 
Registered: Oct 2007
Location: MI
Distribution: Debian Slackware
Posts: 528

Rep: Reputation: 50
Quote:
cmnorton
Assuming I have set up XP/Linux dual-boot using the secondary boot loader method, why does removing the Linux partition with fdisk (perhaps booting the system with Knoppix or another live CD and removing the partition) cause XP not to boot?
When you install another OS that OS will ask to write its booting info to the master boot record (MBR) thus over-writing windows info (that it need to boot). The secondary boot loader then takes the job of booting the first installed OS in this case windows. If you remove the partition that holds the secondary boot loader there is nothing left to boot the system. So it is necessary that the MBR be fixed so windows will be able to boot.
 
Old 02-20-2008, 05:05 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,245

Rep: Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624
cmnorton,
It would of been better if you started a new thread instead of asking your question in a 4 your old dead one.

However, fdisk deletes partitions but does nothing to the Master Boot Record. So as mrrangerman already stated there is nothing to tell grub what to boot and therefore you see the grub prompt ( grub> ) grub can be removed via the windows fixmbr using the windows recovery console.
 
  


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
How to fix grub after removing linux partition cantonboy Linux - Newbie 3 11-19-2004 06:09 PM
Removing Linux partition and bootloader drummervin Linux - General 4 10-20-2004 05:39 PM
removing linux partition juanb Linux - Newbie 2 02-27-2004 06:35 AM
removing linux partition max6110 Linux - Newbie 2 09-29-2003 09:12 PM
Removing linux partition on dual boot machine newbie2002 Linux - General 4 01-13-2003 12:53 AM


All times are GMT -5. The time now is 10:16 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