LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   remove a Linux partition (https://www.linuxquestions.org/questions/linux-newbie-8/remove-a-linux-partition-830593/)

rraapphh 09-06-2010 08:55 AM

remove a Linux partition
 
Hi All,

I have a PC with 3 installations:
1 windows install
2 Linux install

And I would like to remove one of the Linux partitions, but the grub2 loader is in the installation I'd like to remove. How can I modify my installation so that the booting process starts in the other Linux installation (it had grub 2 as well)


Sorry if that is a obvious question but I can't find info on that...
Thanks

raph

r_s 09-06-2010 09:14 AM

You will have to install the grub of your Linux partition(which you want to keep) into the MBR.
https://help.ubuntu.com/community/Re...tallingWindows

Fred Caro 09-06-2010 10:09 AM

moving grub
 
I think this will work, ie using a live cd to boot from the 'first hard drive', if the desired partition becomes your first drive after removal.Grub2 might override windows as the bootloader if installed from a recent live disk, and include a choice, but make sure first.
Fred.

basheer 09-06-2010 10:30 AM

When you are in the grub menu, boot from the linux you want to retain.
After it boots, open a terminal window.

#grub-install /dev/sda or /dev/hda depending on the type of hard drive.
#update-grub

This will install grub in the MBR and the default linux will be the one you want to keep. Then delete the linux partition you don't want to keep.


All times are GMT -5. The time now is 12:58 AM.