LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 11-15-2016, 09:26 AM   #1
ChunkyDrew1965
LQ Newbie
 
Registered: Nov 2016
Location: Naranja, FL (Suburb of Miami)
Distribution: Ubuntu, Mint, Fedora
Posts: 3

Rep: Reputation: Disabled
Question Default OS in GRUB


I am a newbie (used Ubuntu about 5 years ago, but forgot the little I learned). I installed Ubuntu 16.04 LTS about a week ago, and it's great. This week, I decided to try Mint 18 Sarah to compare. I also love it, since it's similar to Windows, which I'm so familiar with.
My problem is, Mint is the default at startup. I did some research and tried to edit the start order in GRUB. When I do this in Ubuntu, I don't see an entry for Mint. When I try in Mint, I don't see an entry for Ubuntu.
is there a Master GRUB file somewhere that I can edit within either distro?
 
Old 11-15-2016, 10:11 AM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
IN order to get that one Linux Disto you want to be on the top of the list to boot from. You have to get it to have dominance over all of the others. (grub2).

Therefore, after installing any other Linux distos letting that install - install grub2 for reasons to avoid having problems getting it to boot. just GO BACK into that one special Linux Distro you love to have on the top of the list, and do this:
Code:
grub-install /dev/sdx
update-grub
that will give it prominence over the others. done. have a nice day

Last edited by BW-userx; 11-15-2016 at 10:12 AM.
 
2 members found this post helpful.
Old 11-15-2016, 11:52 AM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,507

Rep: Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490Reputation: 2490
If Mint is the default at startup, then it is likely controlling the MBR so you should run: sudo update-grub from Mint and watch the output. You should see an entry for Ubuntu. I'm surprised an entry was not created for Ubuntu when you installed Mint as other Linux systems are usually detected.

The file you need to edit is /etc/default/grub, change the line below to show the correct number. Count is from zero so if the entry you want is 3, you would need the number zero on that line. You need to run: sudo update-grub after making this change.

Quote:
GRUB_DEFAULT=0
 
2 members found this post helpful.
Old 11-15-2016, 03:02 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626Reputation: 3626
Hi ChunkyDrew1965.
 
Old 11-15-2016, 03:14 PM   #5
josephj
Member
 
Registered: Nov 2007
Location: Northeastern USA
Distribution: kubuntu
Posts: 214

Rep: Reputation: 112Reputation: 112
Grub-customizer

Grub, especially grub2, is a bit difficult to work with manually - especially because it generates a bunch of the menu entries on the fly when it is updated.

It gets a bit worse if you have an older distro which uses grub 1. That uses a different menu and files. Changes made there don't get seen by another distro using grub2 and vica verse. I had this problem while I was running 12.04 and working on configuring 16.04 in another partition.

There's a really great tool which makes it way easier to deal with. It's called grub-customizer and is available from a PPA for Ubuntu.

https://launchpad.net/grub-customizer

I've been using it for years. It lets you see what you're doing in a gui. You can move entries up and down, create sub-menus, change fonts and colors, and even set a background (wallpaper) image.

It will find whatever is on your disk (including Windows, if it's there) and add it to your menu. Then, you can choose which entry is the default one. It's usually the one at the top of the menu.

I have my menu setup to have the current default and recovery version at the top. All the previous versions are in a sub-menu so I don't have to look at them. I have another sub-menu for the previous release of Ubuntu or for the next one that I may be working on in other partitions.
 
4 members found this post helpful.
Old 11-15-2016, 06:30 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Quote:
Originally Posted by yancek View Post
Count is from zero so if the entry you want is 3, you would need the number zero on that line.
You may like to re-phrase that yancek.
Quote:
Originally Posted by ChunkyDrew1965 View Post
is there a Master GRUB file somewhere that I can edit within either distro?
No - as indicated above, each install will have its own file(s).
Worse, updates to either may update the boot menu at random times in future. Usually pays to designate one as the "master", and re-install manually in need.

Last edited by syg00; 11-15-2016 at 06:33 PM.
 
1 members found this post helpful.
Old 11-15-2016, 07:06 PM   #7
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Quote:
Originally Posted by yancek View Post
If Mint is the default at startup, then it is likely controlling the MBR so you should run: sudo update-grub from Mint and watch the output. You should see an entry for Ubuntu. I'm surprised an entry was not created for Ubuntu when you installed Mint as other Linux systems are usually detected.

The file you need to edit is /etc/default/grub, change the line below to show the correct number. Count is from zero so if the entry you want is 3, you would need the number zero on that line. You need to run: sudo update-grub after making this change.
Will that make Ubuntu boot first from now on?
 
1 members found this post helpful.
Old 11-16-2016, 02:40 AM   #8
josephj
Member
 
Registered: Nov 2007
Location: Northeastern USA
Distribution: kubuntu
Posts: 214

Rep: Reputation: 112Reputation: 112
Quote:
Originally Posted by Ztcoracat View Post
Will that make Ubuntu boot first from now on?
Sort of. The problem is that you have one set of menus for each OS. Everything will be fine *until* the one you are running at the moment gets a kernel update. When that happens, it will update its copy of the grub menu.

Then, one of two things (that I have run into) will happen.

1) If the menu that gets updated is the one that gets activated when you boot, then everything will be fine.

2) If it's not the one that runs, you won't see the changes the next time you boot (including the new kernel you just installed) and if you delete a few older kernels, then the boot menu you get won't have any live choices for this OS.

You can triage this problem by rewriting the master boot record (MBR) on your boot drive so it will use the menu you just updated.

I don't remember how to do this manually. Grub-customizer has a button for that (and it gets it right if you have a UEFI boot process too.)

The reason grub-customizer (and doing it manually the right way - see other posts) works is that it rescans the actual disk drive and makes sure that whatever it finds is what ends up in the menu, no matter where it came from. Then, all you have to do is make sure that the menu you just rebuilt is the one the boot process uses.
 
1 members found this post helpful.
Old 11-16-2016, 05:24 PM   #9
gblacks
LQ Newbie
 
Registered: Oct 2011
Location: Australia
Distribution: One I built myself
Posts: 4

Rep: Reputation: Disabled
Grub customizer

Quote:
Originally Posted by ChunkyDrew1965 View Post
I am a newbie (used Ubuntu about 5 years ago, but forgot the little I learned). I installed Ubuntu 16.04 LTS about a week ago, and it's great. This week, I decided to try Mint 18 Sarah to compare. I also love it, since it's similar to Windows, which I'm so familiar with.
My problem is, Mint is the default at startup. I did some research and tried to edit the start order in GRUB. When I do this in Ubuntu, I don't see an entry for Mint. When I try in Mint, I don't see an entry for Ubuntu.
is there a Master GRUB file somewhere that I can edit within either distro?
If you are a newbie there is a tool that you will find very useful called Grub Customizer. Use it with caution but if you follow all the instructions and read the included Help facility you will have no problems. Go to https://launchpad.net/~danielrichter...rub-customizer and read the installation instructions. If you strike any issues you can contact the developer, Daniel Richter, who you will find to be very helpful. Cheers, gblacks.
 
1 members found this post helpful.
Old 11-16-2016, 06:22 PM   #10
Dawn262
LQ Newbie
 
Registered: Mar 2013
Location: Cocoa, Florida, USA
Distribution: Ubuntu 18.04
Posts: 11

Rep: Reputation: Disabled
Thanks josephj

I usually edit the grub2 itself and save it. This cool tool is very handy. I am using it to manage my Ubuntu 16.04 LTS, Windoz 10 and Mint menagerie.

Thousands of thanks!

Last edited by Dawn262; 11-16-2016 at 06:25 PM.
 
1 members found this post helpful.
Old 11-17-2016, 03:54 AM   #11
josephj
Member
 
Registered: Nov 2007
Location: Northeastern USA
Distribution: kubuntu
Posts: 214

Rep: Reputation: 112Reputation: 112
You're welcome.

Quote:
Originally Posted by Dawn262 View Post
Thanks josephj

I usually edit the grub2 itself and save it. This cool tool is very handy. I am using it to manage my Ubuntu 16.04 LTS, Windoz 10 and Mint menagerie.

Thousands of thanks!
Great. It makes my day when I can actually help someone instead of always being the one asking for help.

If you want to, you can mark my post(s) as helpful. It's easy to forget to do that on LQ.
 
2 members found this post helpful.
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
grub F16 doesn't allow the grub default to be selected landonmkelsey Linux - Software 3 01-12-2012 07:08 PM
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
grub not seeing grub-set-default change bic Linux - Software 4 02-15-2008 01:44 PM
grub-set-default ... get-default? RaduH Linux - General 1 11-21-2007 01:05 PM
Setting password on grub, wha to do after changing default values in /boot/grub/menu. sarajevo Linux - Security 1 08-17-2005 08:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:52 AM.

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