Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 09-29-2009, 10:55 AM   #1
Registered: Dec 2003
Posts: 171

Rep: Reputation: 16
GRUB question. I want to delete the partition of the distro that installed GRUB...


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 ?


Old 09-29-2009, 12:08 PM   #2
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 280Reputation: 280Reputation: 280
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.
Old 09-29-2009, 12:14 PM   #3
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,398
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
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.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
I installed GRUB on root partition. Anyway to access fedora? L_Masoumi Linux - General 3 03-15-2008 06:25 AM
I need help making a GRUB menu.lst for an installed distro that won't boot brjoon1021 Linux - Newbie 1 04-17-2007 08:27 PM
Can Grub /LILO be installed on the logical partition? canaan Linux - Newbie 13 12-19-2005 10:18 PM
Help: Accidentally installed GRUB to my WindowsXP NTFS partition Hasbro35 Ubuntu 1 08-05-2005 01:56 PM
Installed grub on my winXP-partition styggentorsken General 4 03-05-2005 01:38 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:55 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration