[Solved] Edit Grub Timeout
Forum rules
Before you post please read how to get help
Before you post please read how to get help
[Solved] Edit Grub Timeout
Hi all,
How can I edit the Grub Timeout at boot so that the screen will just wait until I make a selection? All that I've read says use the following command . . .
Press Alt + F2, type gksudo gedit /etc/default/grub but I always receive an error saying Failed To Execute Child Process "gksudo" (no such file or directory)
This is using Mint 19.2 Tina. I'm a newbie having decided to try Mint again.
Also a second question if I may please . . . .
I'm dual booting with Win 10 and at some point (from past experience) Windows will change or overwrite Grub and I'll only be able to boot into Windows. How do I get the Grub boot manager back when that happens?
With thanks and kind regards
How can I edit the Grub Timeout at boot so that the screen will just wait until I make a selection? All that I've read says use the following command . . .
Press Alt + F2, type gksudo gedit /etc/default/grub but I always receive an error saying Failed To Execute Child Process "gksudo" (no such file or directory)
This is using Mint 19.2 Tina. I'm a newbie having decided to try Mint again.
Also a second question if I may please . . . .
I'm dual booting with Win 10 and at some point (from past experience) Windows will change or overwrite Grub and I'll only be able to boot into Windows. How do I get the Grub boot manager back when that happens?
With thanks and kind regards
Last edited by Dumfy on Mon Oct 14, 2019 8:10 am, edited 1 time in total.
Re: Edit Grub Timeout
For repairing after Windows disables it, I use a live session (the USB installer). Boot to the live session and open a terminal:
Add each of these and press enter after each one:
Once it's installed follow the prompts and choose default repair.
It's pretty easy and works quit well for what you want.
As far as editing your grub timeout, I'll let someone else give that fix. Me, I navigate to etc folder in files and right click and open as root, manually edit etc/default/grub and put a 10 in GRUB_TIMEOUT=0 instead of the 0, then save the file and run sudo update-grub in the terminal. I advise making a Timeshift restore snapshot before doing any of the above changes.
Add each of these and press enter after each one:
Code: Select all
sudo add-apt-repository ppa:yannubuntu/boot-repair
Code: Select all
sudo apt-get update
Code: Select all
sudo apt-get install -y boot-repair && boot-repair
It's pretty easy and works quit well for what you want.
As far as editing your grub timeout, I'll let someone else give that fix. Me, I navigate to etc folder in files and right click and open as root, manually edit etc/default/grub and put a 10 in GRUB_TIMEOUT=0 instead of the 0, then save the file and run sudo update-grub in the terminal. I advise making a Timeshift restore snapshot before doing any of the above changes.
To mark this issue solved, go to your original 1st post and click the edit pencil and add [Solved] at the beginning of the title and click Submit.
Mint accepts donations: https://linuxmint.com/donors.php
Mint accepts donations: https://linuxmint.com/donors.php
- Larry78723
- Level 11
- Posts: 3526
- Joined: Wed Jan 09, 2019 7:01 pm
- Location: Jasper County, SC, USA
Re: Edit Grub Timeout
Thanks, hopefully it will help the poster.
To mark this issue solved, go to your original 1st post and click the edit pencil and add [Solved] at the beginning of the title and click Submit.
Mint accepts donations: https://linuxmint.com/donors.php
Mint accepts donations: https://linuxmint.com/donors.php
Re: Edit Grub Timeout
also see:Dumfy wrote: ↑Sun Oct 13, 2019 7:26 pmHi all,
How can I edit the Grub Timeout at boot so that the screen will just wait until I make a selection? All that I've read says use the following command . . .
Press Alt + F2, type gksudo gedit /etc/default/grub but I always receive an error saying Failed To Execute Child Process "gksudo" (no such file or directory)
This is using Mint 19.2 Tina. I'm a newbie having decided to try Mint again.
Also a second question if I may please . . . .
I'm dual booting with Win 10 and at some point (from past experience) Windows will change or overwrite Grub and I'll only be able to boot into Windows. How do I get the Grub boot manager back when that happens?
With thanks and kind regards
viewtopic.php?f=46&t=299742
Light travels faster than sound. That's why some people appear smart until you hear what they are saying.
You will seldom see a grey-beard wearing a tinfoil hat.
You will seldom see a grey-beard wearing a tinfoil hat.
Re: Edit Grub Timeout
Boot-repair is already included in the live session, so no need to install that ppa and program, just boot to the usb/dvd and use it.
Also, for editing system files, gksu was removed from Ubuntu starting with the 18.x version(equal with Mint 19.x). We can use a variety of alternate options:
1.
2.
3.
-you can read further about these options here: viewtopic.php?f=61&t=268140
Also, for editing system files, gksu was removed from Ubuntu starting with the 18.x version(equal with Mint 19.x). We can use a variety of alternate options:
1.
xed admin:///etc/default/grub
uses the resident gvfs functionality2.
sudoedit /etc/default/grub
(this probably opens vi/vim or nano instead as the default, otherwise you can export xed as default, I have done that export EDITOR=xed
in ~/.bashrc file so it's easy using that direct command, otherwise the command could be EDITOR=xed sudoedit /etc/default/grub
3.
pkexec xed /etc/default/grub
(but in this case you need to make sure there is a polkit definition for the xed program, which there is not by default, although you can get a user created one here: https://github.com/linuxmint/xed/issues/238 )-you can read further about these options here: viewtopic.php?f=61&t=268140
Re: Edit Grub Timeout
I did not realize it was includedzcot wrote: ↑Sun Oct 13, 2019 9:49 pmBoot-repair is already included in the live session, so no need to install that ppa and program, just boot to the usb/dvd and use it.
Also, for editing system files, gksu was removed from Ubuntu starting with the 18.x version(equal with Mint 19.x). We can use a variety of alternate options:
1.xed admin:///etc/default/grub
uses the resident gvfs functionality
2.sudoedit /etc/default/grub
(this probably opens vi/vim or nano instead as the default, otherwise you can export xed as default, I have done thatexport EDITOR=xed
in ~/.bashrc file so it's easy using that direct command, otherwise the command could beEDITOR=xed sudoedit /etc/default/grub
3.pkexec xed /etc/default/grub
(but in this case you need to make sure there is a polkit definition for the xed program, which there is not by default, although you can get a user created one here: https://github.com/linuxmint/xed/issues/238 )
-you can read further about these options here: viewtopic.php?f=61&t=268140

To mark this issue solved, go to your original 1st post and click the edit pencil and add [Solved] at the beginning of the title and click Submit.
Mint accepts donations: https://linuxmint.com/donors.php
Mint accepts donations: https://linuxmint.com/donors.php
Re: Edit Grub Timeout
You set the timeout to -1, using one of the options zcot explains above.
By the way, if your computer uses UEFI, you shouldn't have the problem with Windows kicking Grub to the curb. That's a problem in BIOS because there's only one place to put the bootloader, to wit, the MBR. In UEFI, each system gets its own folder in the EFI partition. If you're not sure whether your computer uses UEFI, open Terminal and run ls /sys/firmware (that's an "L"). If efi is listed, you're booted in UEFI.
Re: Edit Grub Timeout
Code: Select all
pkexec xed /etc/default/grub
Code: Select all
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=-1
sudo update-grub
and rebootIF: you have more selection in grub menu and you want it to save the last os booted
Code: Select all
# GRUB_DEFAULT=0
GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=-1

Re: Edit Grub Timeout
Hi everyone,
Thank you for your replies. Fantastic help and support from you all - a great community indeed.
My Grub timeout is now set to -1 and works well.
I'll keep all the info regarding Windows overwriting the boot manager safe as it will happen and I can use it then. Handy that Boot Repair is on the Live USB. Mine is an older system that I built a few years ago and doesn't use UEFI.
As i mentioned, I'm a Mint newbie, but intend using it a lot. There will no doubt be more questions along the way!
Appreciate all the advice given
Thanks,
Dumfy
Thank you for your replies. Fantastic help and support from you all - a great community indeed.
My Grub timeout is now set to -1 and works well.
I'll keep all the info regarding Windows overwriting the boot manager safe as it will happen and I can use it then. Handy that Boot Repair is on the Live USB. Mine is an older system that I built a few years ago and doesn't use UEFI.
As i mentioned, I'm a Mint newbie, but intend using it a lot. There will no doubt be more questions along the way!
Appreciate all the advice given
Thanks,
Dumfy
Re: Edit Grub Timeout
It appears to be exactly the same app as the ppa.
To mark this issue solved, go to your original 1st post and click the edit pencil and add [Solved] at the beginning of the title and click Submit.
Mint accepts donations: https://linuxmint.com/donors.php
Mint accepts donations: https://linuxmint.com/donors.php