Views:
35,323β
Votes: 10β
β
Solution
Tags:
dual-boot
grub2
Link:
π See Original Answer on Ask Ubuntu β§ π
URL:
https://askubuntu.com/q/834406
Title:
Edit grub from Windows?
ID:
/2016/10/07/Edit-grub-from-Windows_
Created:
October 7, 2016
Edited: April 13, 2017
Upload:
September 15, 2024
Layout: post
TOC:
false
Navigation: false
Copy to clipboard: false
The title of the question is what the OP proposed solution to the problem is. The title could be changed to βHow can I have Grub boot to the last used OS choice automatically?β.
This should arguably be default grub behavior. For example, I might be using Windows for a week playing Mass Effect IV and never come into Ubuntu. Or I might be testing something in Ubuntu 14.04 with a specific Kernel and I donβt like having to pick it every time over 50 reboots.
There is a link in various comments above to a Stack Exchange answer proposed as a duplicate question. We can reference an AskUbuntu Q&A too: How to get grub2 to remember last choice?
In summary edit /etc/default/grub
, comment out one line and insert two lines below it:
#GRUB_DEFAULT=0 # Rather than first menu option, we'll default to last OS.
GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true
Then save the changes and run sudo update-grub
.
Voila! Whilst working in Windows and automatic updates happen at 3 am the system reboots to Windows and applies Stage 3 of 3
.
OP is proposing βEdit Grub from Windows?β in the title as a solution to the problem. However, after stating the reason why, it becomes clear the title should be changed to something like: βHow do I ensure Windows automatic update reboots go to Windows instead of Ubuntu?β.
If the question was βHow do I reboot to the last OS choice?β itβs an obvious duplicate of the link. The proposed new title (or something shorter) has merit because others may search on the same problem. I know Iβve had the Windows update-reboot-update problem before and never would have imagined to search on the link here.
PS You can edit Grub from Windows but, why would you want to?