LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   GRUB question. I want to delete the partition of the distro that installed GRUB... (http://www.linuxquestions.org/questions/linux-general-1/grub-question-i-want-to-delete-the-partition-of-the-distro-that-installed-grub-758466/)

brjoon1021 09-29-2009 09:55 AM

GRUB question. I want to delete the partition of the distro that installed GRUB...
 
Hi,

I have two distros and windows installed. I only want one distro (I have decided on Ubuntu) and windows. But, the other distro, the one that I want to eradicate is the last one installed and it is its GRUB in the MBR.

I know what happens from experience if I just delete that partition with a liveCD - GRUB won't boot anything on reboot.

What do I need to do from within Ubuntu or the other Linux before deleting the partition of the second distro so that I have a working GRUB when I reboot ?

Thanks,

B

pljvaldez 09-29-2009 11:08 AM

From within Ubuntu, you should be able to do sudo grub-install hd0.

If you run into problems, follow B4 in the "Grub Booting Tips" link in my signature. You'll need to know some partition information to make sure you setup the root correctly.

Then you should be able to just delete the other partition.

theNbomr 09-29-2009 11:14 AM

I suggest that before you delete anything, prepare a bootable USB drive or floppy drive with grub or other bootloader installed on it. Boot from that, and figure out how to load any of your installed OS's from it. Use the configuration that works from that device to recreate the grub installation after you remove the partition, bearing in mind that your partiton removal may alter the disk numbering/ordering seen by the bootloader. This will be a good learning experience about bootloaders.
--- rod.


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