LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How Do I: Remove a linux partition & GRUB bootloader. (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-remove-a-linux-partition-and-grub-bootloader-560007/)

jkillah1 06-07-2007 03:19 PM

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.

pljvaldez 06-07-2007 03:23 PM

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.

IsaacKuo 06-07-2007 03:33 PM

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.

brianL 06-07-2007 04:04 PM

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.

jkillah1 06-07-2007 05:42 PM

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?

pljvaldez 06-07-2007 05:43 PM

In Ubuntu, just do sudo gedit /boot/grub/menu.lst

jkillah1 06-07-2007 05:46 PM

Quote:

Originally Posted by pljvaldez
In Ubuntu, just do sudo gedit /boot/grub/menu.lst

Will this work in Fedora Core 5 as well?

Brocolli 06-07-2007 05:50 PM

/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.

forrestt 06-07-2007 05:51 PM

At least in Fedora 7, menu.lst is a symlink to grub.conf so it will work. Not positive about 5 though.

Brocolli 06-07-2007 05:57 PM

in fedora 5, it still is grub.conf...

custangro 06-07-2007 06:46 PM

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

Code:

vi /etc/grub.conf

jkillah1 06-09-2007 11:07 AM

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...


All times are GMT -5. The time now is 08:14 PM.