LinuxQuestions.org
Latest LQ Deal: Linux Power User 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 06-07-2007, 04:19 PM   #1
jkillah1
Member
 
Registered: Feb 2007
Posts: 37

Rep: Reputation: 15
How Do I: Remove a linux partition & GRUB bootloader.


Right now I have Windows XP and Fedora Core 5 installed on the same hard drive. How would I uninstall just Fedora Core 5 and remove that stupid GRUB bootloader? I'm not sure if the best idea is to just delete all partitions but the one Windows XP is on and then worry about the bootloader, or if I should get rid of the bootloader first. Any suggestions highly appreciated. Also, I would like to install Ubuntu after I get Fedora Core 5 removed

Oh, and is there any way to make Windows XP the first OS the GRUB bootloader loads first? I hate turning on my computer and then having Linux boot up automatically.
 
Old 06-07-2007, 04:23 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
Just install Ubuntu over Fedora. When it asks what partition to put it on, select the fedora partition. Put the new Grub into the MBR (over the old grub).

You can make windows boot by default by changing /boot/grub/menu.lst file. There's a line that says "Default 0" which corresponds to the first item on the grub menu. Just increment it until it boots windows by default.
 
Old 06-07-2007, 04:33 PM   #3
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian 8 Jessie
Posts: 1,688
Blog Entries: 5

Rep: Reputation: 163Reputation: 163
A better option is to move the Windows option to the top of the list, in case some future change (like installing a newer kernel) inserts an extra boot option line.

An even better option is to change the default to "saved". This will make the computer reboot to the same choice that was chosen last time.
 
Old 06-07-2007, 05:04 PM   #4
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

Rep: Reputation: Disabled
If you've got the XP install disk you can use the Recovery Console to rewrite the MBR to get rid of GRUB. Type at the prompt: fixmbr. Then go to Control Panel --> Administrative Tools --> Disk Management, and delete your Fedora partitions.
 
Old 06-07-2007, 06:42 PM   #5
jkillah1
Member
 
Registered: Feb 2007
Posts: 37

Original Poster
Rep: Reputation: 15
Thanks! But one more question, how do I edit "/boot/grub/menu.lst"? I've barely gotten into Linux at all so far, and I don't know how to edit these kinds of things. Can anyone give me a simple step by step?
 
Old 06-07-2007, 06:43 PM   #6
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
In Ubuntu, just do sudo gedit /boot/grub/menu.lst
 
Old 06-07-2007, 06:46 PM   #7
jkillah1
Member
 
Registered: Feb 2007
Posts: 37

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by pljvaldez
In Ubuntu, just do sudo gedit /boot/grub/menu.lst
Will this work in Fedora Core 5 as well?
 
Old 06-07-2007, 06:50 PM   #8
Brocolli
Member
 
Registered: May 2007
Distribution: PCLinuxOS 2007
Posts: 34

Rep: Reputation: 15
/boot/grub/menu.lst is the grub configuration file of ubuntu. if you're still on fedora, it will be grub.conf. if you can still boot in your linux distro, you can use gedit if you are in gnome or kedit if you are in kde to edit grub.conf/menu.lst. you can also use other text editor such as kwrite.
 
Old 06-07-2007, 06:51 PM   #9
forrestt
Senior Member
 
Registered: Mar 2004
Location: Cary, NC, USA
Distribution: Fedora, Kubuntu, RedHat, CentOS, SuSe
Posts: 1,288

Rep: Reputation: 99
At least in Fedora 7, menu.lst is a symlink to grub.conf so it will work. Not positive about 5 though.
 
Old 06-07-2007, 06:57 PM   #10
Brocolli
Member
 
Registered: May 2007
Distribution: PCLinuxOS 2007
Posts: 34

Rep: Reputation: 15
in fedora 5, it still is grub.conf...
 
Old 06-07-2007, 07:46 PM   #11
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,970
Blog Entries: 1

Rep: Reputation: 208Reputation: 208Reputation: 208
In Fedora 5 make sure you are root and the grub configuration file is in etc:

Code:
vi /etc/grub.conf
 
Old 06-09-2007, 12:07 PM   #12
jkillah1
Member
 
Registered: Feb 2007
Posts: 37

Original Poster
Rep: Reputation: 15
Thanks for all your help, I figured out a way to change the default from Linux to windows. Here's a way I explain it very simply:

* Log in as Root
* Click on the icon "Computer"
* Open up the folder "boot"
* Open up the folder "grub"
* Open up the file menu.lst. It allows you to edit it.
* Change "default 0" to "default 1" in the editor

Thanks for your help, but noobs like me need an in-depth explanation like this one...
 
  


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 remove grub + linux partition from drive? No longer needed. Boggit Linux - General 7 11-09-2008 01:29 AM
Bootloader problems (both grub & lilo fail?) Method9455 Debian 2 04-15-2007 09:18 PM
Grub bootloader files on wrong partition lfys Linux - General 1 09-20-2006 05:01 PM
quick question about grub bootloader & installing another distro Ay-Karamba! Linux - Newbie 12 10-14-2005 10:00 AM
howto remove GRUB from the partition using fdisk ? cccc Linux - General 6 01-18-2005 08:09 PM


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