LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-06-2010, 09:55 AM   #1
rraapphh
LQ Newbie
 
Registered: May 2010
Posts: 1

Rep: Reputation: 0
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
 
Old 09-06-2010, 10:14 AM   #2
r_s
Member
 
Registered: May 2009
Distribution: slackware, fedora, ubuntu
Posts: 98

Rep: Reputation: 21
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
 
Old 09-06-2010, 11:09 AM   #3
Fred Caro
Member
 
Registered: May 2007
Posts: 999

Rep: Reputation: 166Reputation: 166
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.
 
Old 09-06-2010, 11:30 AM   #4
basheer
Member
 
Registered: Mar 2009
Location: Bangalore, India
Distribution: CentOS6.5, CentOS7, Ubuntu14.04
Posts: 182

Rep: Reputation: 29
Smile

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.
 
1 members found this post helpful.
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Best way to Resize Linux partition ? + kernel remove question -=Graz=- Slackware 19 05-25-2008 07:08 PM
How Do I: Remove a linux partition & GRUB bootloader. jkillah1 Linux - Newbie 11 06-09-2007 12:07 PM
Remove windows partition, enlarge linux candyman123 Linux - General 3 07-08-2006 10:24 AM
I am using windows and linux i one partition now ia m awnt remove the linux partition sathish80 Linux - Newbie 2 01-23-2006 11:55 PM
Remove linux partition juanb Linux - Newbie 1 08-14-2004 03:42 PM


All times are GMT -5. The time now is 06:44 PM.

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