Linux mint grub время

Linux Mint Forums

Forum rules
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.

Kefren Level 4
Posts: 201 Joined: Fri Dec 10, 2021 3:45 pm Location: Scotland Contact:

[Solved] Grub timeout

Post by Kefren » Fri Dec 10, 2021 3:58 pm

I spent the day trying out Linux distros in a VM (8 in all) and picked Linux Mint Cinnamon 64bit 20.2 as my replacement for Zorin OS. I have a dual boot set up.

I installed Mint. No problems.

Then I wanted to change the Grub menu. I was small and hard to read, and had a long 30 second timeout. I assumed it would be simple, hoped that Mint even had a setting for it.

Nearly two hours later and I haven’t got much further! I’ve not been able to get on to other settings and customisation yet, so it’s getting a bit frustrating because I now need to stop for the day. Here’s what I have done.

I found a Mint page about how the Mint grub menu may look plain like mine, so I followed the instructions and fixed it:

apt install —reinstall -o Dpkg::Options::=»—force-confmiss» grub2-theme-mint

(No idea why that isn’t part of the install.)
Then the menu was easy to read and resembled the one I was used to from Zorin.

I had found various guides to editing grub and updating it via terminal commands in Mint. Changed grub to 5 seconds, updated, but it still counts down for 30 seconds.

Having done a range of things I moved on. I hoped Grub Customiser might work.

sudo apt update
sudo apt install grub-customizer
grub-customizer

It let me successfully hide some grub menu options I didn’t want to it just gave the two OSs as options. Yay! I changed the countdown timer to 5. Rebooted.

Still had a 30 second timer countdown. Argh.

I then tried different online suggestions from search engine results, including
To change the timeout from 30 (no other option worked, including GC above)
sudoedit /etc/default/grub
[add:] info -f grub -n ‘Simple configuration’ | less -p ‘GRUB_RECORDFAIL_TIMEOUT=5’
sudo update-grub

Читайте также:  Linux head and tails

I’m not sure why it is so difficult! I give up trying to fix it on my own. Anyone know how to change the grub timer from the menu Mint created so it is only 5 seconds?

[Bonus points if you know how to disable requiring a password to login to the desktop — I left that option as the default on install, assuming there would be a setting to change it later, but I tried «Users and Groups» and «Login Window» settings and neither had an option that was shown in some search results to disable password login. When I am rebooting the PC a lot to test changes it is much easier to disable the password — then I can do something else for a minute and come back to the desktop, rather than come back to a login screen and then wait 15 seconds to get into a desktop. So I’d be grateful if someone could tell me where to change that setting I had left as default on installation! Many thanks.]

Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.

Источник

Как изменить время ожидания GRUB в Linux?

Favorite

Добавить в избранное

Главное меню » Как изменить время ожидания GRUB в Linux?

Как изменить время ожидания GRUB в Linux

В этой статье показано, как легко изменить время ожидания GRUB в Linux. Прочитав эту статью, вы узнаете, как отредактировать тайм-аут Grub за несколько шагов.

Перед запуском, если при загрузке компьютера GRUB не отображается, перейдите к разделу Что делать, если меню GRUB не отображается.

Изменение тайм-аута GRUB в Linux:

Для начала отредактируйте файл конфигурации GRUB. Вы можете использовать команду ниже, чтобы отредактировать его с помощью текстового редактора nano.

Найдите строку, содержащую «GRUB TIMEOUT=5», как показано на следующем снимке экрана; в нашем случае (Debian) это вторая строка без комментариев.

Это строка, которую нужно отредактировать, чтобы изменить время ожидания GRUB; просто замените значение по умолчанию 5 другим значением; например, чтобы изменить время ожидания с 5 до 10 секунд, отредактируйте следующую строку.

После редактирования строки выйдите из nano с сохранением изменений, нажав Ctrl + X и update-grub, чтобы применить изменения, чтобы обновить Grub, выполните команду ниже.

Теперь, когда вы перезагрузите компьютер, вы увидите новый тайм-аут.

Что делать, если меню GRUB не появляется:

Если меню GRUB не отображается при загрузке компьютера, возможно, оно скрыто. Если вы используете устаревшую версию BIOS, вы можете отобразить ее, нажав несколько раз клавишу Shift при загрузке. Если вы используете UEFI, нажмите Esc. Это покажет меню GRUB один раз.

На нашем устройстве Ubuntu при проверке файла конфигурации GRUB /etc/default/grub дополнительная строка скрывает меню GRUB. Чтобы постоянно отображать меню GRUB, следующая строка:

Необходимо изменить, как показано на скриншоте ниже, на:

Затем вы можете отредактировать ранее упомянутую строку, чтобы изменить время ожидания. Например, чтобы изменить время ожидания с 5 до 10 секунд, отредактируйте следующую строку.

Затем закройте nano с сохранением изменений ( Ctrl + X ).

Читайте также:  Serial port programming in linux

Теперь вам нужен GRUB, чтобы применить сделанные вами изменения. Для этого вам необходимо обновить GRUB. Чтобы обновить GRUB, выполните следующую команду.

При перезагрузке меню GRUB будет оставаться в течение 10 секунд или числа, которое вы указали в строке, содержащей GRUB_TIMEOUT =.

Как изменить время ожидания GRUB в Linux?

Как видите, теперь GRUB дает 10 секунд на выбор варианта или загрузку автоматически.

Что такое GRUB и как он работает:

GRUB (Grand Unified Bootloader) — это загрузчик, который позволяет пользователю выбирать ядро, ОС или режим загрузки. Поскольку BIOS не распознает файловые системы, эта задача передается загрузчику, который загружает файлы в ОЗУ.

Grub — это первая программа, которая запускается, когда пользователь включает свой компьютер. Задача загрузчика — загрузить правильную операционную систему или ядро ​​до инициализации системы.

В этом случае загрузчик или GRUB находится в MBR (Master Boot Record). MBR — это сектор жесткого диска или раздела, содержащий информацию о файловых системах и разделах, а также о загрузчике. Grub также совместим с системами BSD (FreeBSD, NetBSD, OpenBSD); другие ядра поддерживаются через цепную загрузку.

Дополнительную информацию о GRUB можно получить по адресу https://www.gnu.org/software/grub/ или https://www.gnu.org/software/grub/manual/grub/grub.html.

Вывод:

Как видите, любой пользовательский уровень Linux может легко изменить время ожидания GRUB. Управлять GRUB довольно просто, и самая распространенная ошибка — забыть обновить его после изменений. Другими известными загрузчиками являются BURG (новый универсальный загрузчик от GRUB), LILO (загрузчик Linux) и Syslinux.

Мы надеемся, что эта статья, объясняющая, как изменить время ожидания GRUB в Linux, была полезной.

Если вы нашли ошибку, пожалуйста, выделите фрагмент текста и нажмите Ctrl+Enter.

Источник

Linux Mint Forums

[Solved] Grub2 Timeout 30 seconds after today’s update

Forum rules
Before you post please read how to get help. Topics in this forum are automatically closed 6 months after creation.

[Solved] Grub2 Timeout 30 seconds after today’s update

Post by LanceM » Thu Jan 31, 2019 8:38 pm

I now have a 30 sec timeout delay in booting after installing the new Grub2 and Grub-signed updates today. I checked ect/default/grub and default and timeout are still set at =0 . Any fix for this?

Last edited by SMG on Sat Apr 16, 2022 9:49 pm, edited 2 times in total.
Reason: Locking 3yr old topic.

Re: Grub2 Timeout 30 seconds after today’s update

Post by gm10 » Thu Jan 31, 2019 9:07 pm

sudo sed -i "/recordfail_broken=/" /etc/grub.d/00_header

The reason for the change is that the maintainer at Ubuntu doesn’t know when to press Shift during boot and only know to bring up the menu via Ctrl+Alt+Del, which won’t work with GRUB installed to an LVM partition, so they thought they’d just force 30 seconds of menu on everyone using EFI + LVM. Genius.

Re: Grub2 Timeout 30 seconds after today’s update

Post by LanceM » Thu Jan 31, 2019 10:50 pm

What exactly is «sudo sed -i «/recordfail_broken=/» /etc/grub.d/00_header»?
I tried it, but no change happened.

Re: Grub2 Timeout 30 seconds after today’s update

Post by hkindle » Thu Jan 31, 2019 11:46 pm

Читайте также:  Amlogic burn card maker linux

Re: Grub2 Timeout 30 seconds after today’s update

Post by gm10 » Fri Feb 01, 2019 4:24 am

Re: Grub2 Timeout 30 seconds after today’s update

Post by LanceM » Fri Feb 01, 2019 2:20 pm

Re: Grub2 Timeout 30 seconds after today’s update

Post by gm10 » Fri Feb 01, 2019 5:16 pm

Re: Grub2 Timeout 30 seconds after today’s update

Post by LanceM » Fri Feb 01, 2019 6:11 pm

Re: Grub2 Timeout 30 seconds after today’s update

Post by JeremyB » Sat Feb 02, 2019 4:17 pm

Image

Wireless Script

Re: Grub2 Timeout 30 seconds after today’s update

Post by gm10 » Sat Feb 02, 2019 4:31 pm

JeremyB wrote: ⤴ Sat Feb 02, 2019 4:17 pm If this is happening on LVM, see https://bugs.launchpad.net/ubuntu/+sour . omments/45

This is about LVM, but that bug is unrelated, the thread here isn’t about a bug but this very intentional change:

grub2 (2.02-2ubuntu8.10) bionic; urgency=medium [. ] [ Steve Langasek ] * debian/patches/quick-boot-lvm.patch: If we don't have writable grubenv and we're on EFI, always show the menu. Closes LP: #1800722. -- Mathieu Trudel-Lapierre Wed, 09 Jan 2019 14:04:09 -0500

Re: Grub2 Timeout 30 seconds after today’s update

Post by mint-maniac » Sat Feb 02, 2019 9:29 pm

I noticed this and tracked it also down to the same update change causing grub to always pop up. The change in grub refers to having an unsigned kernel.
I noticed that when I run dpkg -l linux and look for images, I’m seeing an unsigned kernel package (supposedly not installed) and a signed one installed.
This is after I uninstalled 4.15.0-44.47 (after upgrading to 4.15.0-45.57) and then reinstalling and rolling back to it (I did that after thinking the kernel update caused the issue rather than the grub update). It’s possible that the churning created these two entries but after uninstalling 4.15.0-45.47, I’m not seeing remnants of it in dpkg (nor for any other kernel that I have uninstalled in the past) so I’m doubting that this kernel uninstall left something.

Anyway, are we supposed to see both a signed and unsigned package like this.

ii linux-image-4.15.0-44-generic 4.15.0-44.47 amd64 Signed kernel image generic
un linux-image-unsigned-4.15.0-44-generic (no description available)

Re: Grub2 Timeout 30 seconds after today’s update

Post by gm10 » Sun Feb 03, 2019 4:24 am

mint-maniac wrote: ⤴ Sat Feb 02, 2019 9:29 pm Anyway, are we supposed to see both a signed and unsigned package like this.

Also that’s completely unrelated to this thread and the change in GRUB discussed here has nothing to do with unsigned kernels, either. For the solution to thread’s issue, see my first reply to the thread. If you have a different issue, please make that a different thread.

Pjotr Level 23
Posts: 19049 Joined: Mon Mar 07, 2011 10:18 am Location: The Netherlands (Holland) 🇳🇱 Contact:

Источник

Оцените статью
Adblock
detector