LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 08-27-2015, 05:01 AM   #1
RollingStone
LQ Newbie
 
Registered: Aug 2015
Distribution: bodhi 3.1
Posts: 2

Rep: Reputation: Disabled
Do I have to Change something in Grub before erasing a OS?


Hi Guys,

I have a quick question which is probably pretty easy to answer for an Linux Pro.

I have my HD split in 3 primary partition and one extended partition. The extended partition is then subdivided in logical partitions like swap, a big storage partition and some unallocated space... Hope I got

I run Bodhi on one Primary partition and Xubuntu on another Primary Partition.

I want to put Peppermint on the partition which is occupied by Xubuntu right now.

Now my question, do I have to change something in Grub or not? Could I just go ahead, format and install Peppermint on the partition with Xubuntu on it?

A few years ago I didn't understand anything about partitions, grub or Linux for that matter and just deleted a OS and later had difficulties with grub not finding the OS anymore.

Thanks guys
 
Old 08-27-2015, 01:02 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Quote:
Now my question, do I have to change something in Grub or not?
That depends on your setup. Is Bodhi grub installation written to the MBR, or is it the Xubuntu grub? If Xubuntu grub is written to the MBR, boot into Bodhi and run /usr/sbin/update-grub to set Bodhi as the primary grub installation. Then you can go ahead with your plan to replace Xubuntu.
 
Old 08-27-2015, 01:16 PM   #3
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
also run
Code:
grub-install /dev/sda
from Bodhi that is assuming that /dev/sda is the first hard drive and the Bodhi is install on it.
 
Old 08-27-2015, 01:30 PM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,502

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
After verifying that Grub from Bodhi is in the master boot record, install Peppermint to the same partition on which you now have Xubuntu and select to format that partition. Make sure when you see the 'Device for bootloader installation' in Peppermint, you select the partition on which you install it. You should then be able to boot Bodhi and run sudo update-grub and get an entry to boot Peppermint also.
 
Old 08-27-2015, 06:48 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Hello and welcome to LQ.

I might have been tempted to just use the next installer to load over the one you want to remove and let the distro do what it wants. (this does assume a lot of things, some noted above) Generally I don't erase a distro, I simply load over use the installer to delete the partition then create and load.
 
Old 08-28-2015, 12:14 PM   #6
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,140

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
I have a spare partition which has been used for dozens of distros alongside my working CentOS. I just use the method that Yancek recommends and it works fine. You do have to pay attention to what the installer is telling you: clicking on "confirm" before reading that the default option is "erase and use the whole disk" is not a happy experience.
 
Old 08-29-2015, 11:11 AM   #7
RollingStone
LQ Newbie
 
Registered: Aug 2015
Distribution: bodhi 3.1
Posts: 2

Original Poster
Rep: Reputation: Disabled
hey Guys... I thank you all for your answers!really great!

My Idea has changed a little though :-) will Install Peppermint on that other Primary partition for now.

When Xubuntu has served its purpose and I want another OS on that partition I just load it on top of it. Yes Xubuntu Grub is written to the MBR. So I would have to change that before I put a new OS over it.

Found this great program called Grub Customizer can really recommend it to do all sorts of Grub customizations.

Thanks again Guys!
 
Old 08-29-2015, 05:37 PM   #8
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,502

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Quote:
When Xubuntu has served its purpose and I want another OS on that partition I just load it on top of it. Yes Xubuntu Grub is written to the MBR. So I would have to change that before I put a new OS over it.
Not really. If you have only the one hard drive and are going to be replacing Xubuntu (which has Grub in the MBR) you can do it during the installation of Peppermint. There will be an option during the install for "Device for bootloader installation" and in your case, leave the default, /dev/sda.
 
  


Reply



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
LXer: Change your Grub options with Grub Customizer LXer Syndicated Linux News 0 05-11-2013 10:50 AM
problem erasing grub and ubuntu.... i think jake2493 Linux - Laptop and Netbook 2 07-19-2009 04:09 AM
change grub boot order, all instructions say change default, but I don't see default mhg Linux - Newbie 5 11-09-2008 10:01 AM
syslinux setting change to grub, or grub change to syslinux. hocheetiong Linux - Newbie 2 06-14-2008 07:38 AM
grub not seeing grub-set-default change bic Linux - Software 4 02-15-2008 01:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:29 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
Open Source Consulting | Domain Registration