[SOLVED] GRUB gone after imaging Linux + Windows 10 to new larger SSD
Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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
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.
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 ?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.