LinuxQuestions.org
Review your favorite Linux distribution.
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 01-07-2019, 12:53 PM   #61
pacman222
LQ Newbie
 
Registered: Dec 2018
Posts: 29

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by colorpurple21859 View Post
copy the windows menu that works from /boot/grub/grub.cfg to /etc/grub.d/40_custom below the text that is already there. make sure the last line of the menu entry is }

Add this line
Code:
GRUB_DISABLE_OS_PROBER="true"
to /etc/default/grub and then run update-grub.

What this does is disable the os-prober from searching for other installed systems and adding them to the grub.cfg file when update-grub is run.
The /etc/grub.d/40_custom manually adds other systems when update-grub is run.

IF you don't want to disable the os-prober, you can copy the /etc/grub.d/40_custom to /etc/grub.d/25_custom. This will put the manual entries before the os-prober entries in /boot/grub/grub.cfg when update-grub is run.

Success. Thank you.

Just one thing left: in the new GRUB menu (attached) the boot defaults to the top item in the menu, i.e. Mint Cinnamon. For the time being, until I have all my Linux apps installed, I would prefer the system to default-boot to Windows 10. How do I set that ? I've looked in /boot/grub/grub.cfg and /etc/grub.d/40_custom and /etc/default/grub but cannot see where this parameter is set.
Attached Thumbnails
Click image for larger version

Name:	GRUB boot menu 07-Jan-2019 1840.jpg
Views:	9
Size:	47.8 KB
ID:	29414  
 
Old 01-07-2019, 01:43 PM   #62
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
it is in /etc/default/grub
change default=0 to default=4 if it is the windows menu after the highlighted menu entry, default= counts from 0. Don't forget to run update-grub.

Last edited by colorpurple21859; 01-07-2019 at 01:54 PM.
 
1 members found this post helpful.
Old 01-07-2019, 02:02 PM   #63
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,806
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
Instead of a hard-coded default, you may wish to consider defaulting to whichever selection was booted last. In /etc/default/grub, remove # from in front of
Code:
# GRUB_SAVEDEFAULT="true"
before updating grub.
 
1 members found this post helpful.
Old 01-07-2019, 02:59 PM   #64
pacman222
LQ Newbie
 
Registered: Dec 2018
Posts: 29

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
it is in /etc/default/grub
change default=0 to default=4 if it is the windows menu after the highlighted menu entry, default= counts from 0. Don't forget to run update-grub.
Thank you. Problem solved. Cleanly defaulting GRUB menu now.
 
Old 01-07-2019, 03:02 PM   #65
pacman222
LQ Newbie
 
Registered: Dec 2018
Posts: 29

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by mrmazda View Post
Instead of a hard-coded default, you may wish to consider defaulting to whichever selection was booted last. In /etc/default/grub, remove # from in front of
Code:
# GRUB_SAVEDEFAULT="true"
before updating grub.
Thanks. Neat idea.
I couldn't find # GRUB_SAVEDEFAULT="true" in /etc/default/grub to remove the #. Can I simply add GRUB_SAVEDEFAULT="true" to the end of /etc/default/grub ?
 
Old 01-07-2019, 03:12 PM   #66
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,806
Blog Entries: 1

Rep: Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066Reputation: 2066
Quote:
Originally Posted by pacman222 View Post
Can I simply add GRUB_SAVEDEFAULT="true" to the end of /etc/default/grub ?
I don't know of any reason why not.
 
1 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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Infinite Grub Loop: GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB GRUB... beeblequix MEPIS 2 11-02-2013 10:56 PM
SSd G4l and imaging andym63 Linux - Hardware 5 03-02-2013 11:11 AM
[SOLVED] PHP File open larger files or fopen files larger than 2gigs Nemus Linux - Server 6 02-18-2011 01:03 AM
DD Imaging of Builds and Resizing Larger Partition metallica1973 Linux - General 1 11-13-2010 04:36 AM
Booting my new ubuntu install = "GRUB GRUB GRUB GRUB GRUB" etc. dissolved soul Ubuntu 2 01-13-2007 12:55 PM

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

All times are GMT -5. The time now is 07:59 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