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 08-06-2007, 03:57 PM   #1
micocoulier
LQ Newbie
 
Registered: Aug 2007
Posts: 15

Rep: Reputation: 0
erasing boot partition=???


Hi - I am very new to Linux. I have set up a dual boot system on my desktop with Windows XP home / Linux RedHat 9.0, and it all works fine. What would happen if I now deleted the Linux partitions, including the boot partition? Would the system revert to booting into XP automatically? Or would my system refuse to boot into anything? This is in order to move towards installing Linux only on my laptop, and XP only on my desktop. Any help much appreciated.
Mike
 
Old 08-06-2007, 04:13 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
The answer to your question depends on whether your boot loader is GRUB or LILO. If you are using GRUB, that depends on files that are on your Linux partition. If you delete them then your computer will not boot anything. If you are using LILO, that software has everything that it needs to boot already in the boot disk's MBR. If you delete the Linux partition you would still be able to boot Windows.

If you want to go back to the Windows boot loader you can boot the Windows recovery console and run the fixboot and/or the fixmbr utilities.
 
Old 08-06-2007, 04:27 PM   #3
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
All boot loaders can be restored if you have the system.

To restore XP's MBR Task B1 or B2 in the last link of my signature refer. Once you are booting to XP you can delete the Linux partition by it disk management program.
 
Old 08-06-2007, 06:17 PM   #4
benerivo
LQ Newbie
 
Registered: Dec 2006
Posts: 27

Rep: Reputation: 15
If the suggestions above don't work, and if you have the XP installation CD, then you can just reinstall XP in to the linux partition and it will pick up the original XP installation as a boot option. Restart the pc and choose the original XP entry, then when inside you can go to...

well here's when i forget, but if you right click on the My Computer icon you can get to some boot / startup options and you can edit them so they only contain the entry for the original XP.
 
Old 08-06-2007, 07:04 PM   #5
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
benerivo,

Quote:
reinstall XP in to the linux partition and it will pick up the original XP installation as a boot option
That is a wild story to me. Can you enlighten me with an example, a link or a reference?
 
Old 08-10-2007, 06:12 PM   #6
benerivo
LQ Newbie
 
Registered: Dec 2006
Posts: 27

Rep: Reputation: 15
Okay, but first i'll clarify that by "reinstall xp in to the linux partition", i mean in an empty partition (that linux used to occupy) as the OP suggested.
I have done it myself when I accidentally deleted the linux partition whilst in XP. I reinstalled XP on to the (now) empty space and when i booted i had two XP options, similar to the setup this guy below found himself with - except my XP's were listed as being in different partitions, and this guy had a boot loader showing XP twice from the same partition.

http://www.grosse.is-a-geek.com/pcpl...6sd/hd206.html...scroll to bottom

Last edited by benerivo; 08-10-2007 at 06:18 PM.
 
Old 08-10-2007, 10:23 PM   #7
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
Your much better off using dd or bootitng to wipe the Linux partitions with zeros, then boot to the XP CD and fixmbr (which only takes two minutes), then use a utility like bootitng (under no obligation) to resize the XP partition back to using the full disk.
EDIT: Then, trash Red Hat 9 and get a more modern Linux for the laptop. You'll be pulling your hair out trying to install RH9 on a SATA drive if that's what the laptop has.

Last edited by Junior Hacker; 08-10-2007 at 10:25 PM.
 
Old 08-26-2007, 11:51 PM   #8
Thepilot893
LQ Newbie
 
Registered: Aug 2007
Distribution: Knoppix
Posts: 12

Rep: Reputation: 0
Easy Way to delete GRUB

The easiest way to delete GRUB and get your original MBR is to download RescueCD (Linux Flavor) pop it in and then press F2 or F3 and then type GAG in the command line. Follow the instructions on the screen, should be option 3 I think, and replace the MBR. By doing this you will get rid of GRUB and will be able to safely boot back into your windows partition. Not only that but the RescueCD is great for any and all computer software repairs. I hope this helps if not contact me with whats going on, and I will try my best to help you out.
 
  


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
windows keeps erasing boot flag zowey Linux - General 13 03-17-2007 10:21 AM
GRUB: How to boot WinXP (NTLDR, NTDETECT.COM & BOOT.INI) from boot partition (EXT2) ? Rayen16 Linux - Software 1 05-25-2006 01:09 PM
Messed up partition table and Windows' partition boot sector pyromithrandir Linux - General 32 04-08-2006 01:26 PM
Question about erasing XP partition ctt1wbw Linux - General 2 01-23-2005 04:58 PM
erasing windows partition zetsui Linux - General 5 06-15-2003 03:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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