LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 09-29-2009, 09:55 AM   #1
brjoon1021
Member
 
Registered: Dec 2003
Posts: 152

Rep: Reputation: 16
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
 
Old 09-29-2009, 11:08 AM   #2
pljvaldez
Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Squeeze (x86)
Posts: 6,092

Rep: Reputation: 269Reputation: 269Reputation: 269
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, 11:14 AM   #3
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,395
Blog Entries: 2

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


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 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 05: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 07:27 PM
Can Grub /LILO be installed on the logical partition? canaan Linux - Newbie 13 12-19-2005 09:18 PM
Help: Accidentally installed GRUB to my WindowsXP NTFS partition Hasbro35 Ubuntu 1 08-05-2005 12:56 PM
Installed grub on my winXP-partition styggentorsken General 4 03-05-2005 12:38 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration