[ @debian @grub @console ]
Сделать копию основного файла:
sudo cp /etc/default/grub /etc/default/grub.default
Прочитать внимательно и понять эти настройки:
# Set the highlight bar to the default loading system. # If 0 = Debian. If 2, then will be loaded Win (or whatever you have installed) GRUB_DEFAULT=0 # No boot menu will appear, directly loading first line (Debian) GRUB_TIMEOUT=0 # But you have one second to press SHIFT for open boot menu GRUB_HIDDEN_TIMEOUT=1 # Uncomment to disable graphical terminal (grub-pc only) GRUB_TERMINAL=console # Display the name of booted System, or echo Debian. GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` # Do not load system messages GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" # Extra kernel options here GRUB_CMDLINE_LINUX="quiet splash"
# Без этой настройки вторая операционная система может «исчезнуть», # бо ее никто и не искал. GRUB_DISABLE_OS_PROBER=false
Посмотреть множество других настроек — https://www.gnu.org/software/grub/manual/grub/html_node/Simple-configuration.html Тут чем меньше изменений, тем лучше. Особенно бессмысленно заморачиваться бэкграундом и фоновыми изображения.
Отредактировать файл:
sudo mcedit /etc/default/grub
Заменить содержимое файла предлагаемым текстом.
Ещё в Gnome есть утилита +Grub-Customizer — то же самое, но GUI и ставить галочки.
Сохранить изменения
sudo update-grub
Пример ожидаемого ответа:
Generating grub configuration file ... Found background image: /usr/share/images/desktop-base/desktop-grub.png Found linux image: /boot/vmlinuz-6.1.0-13-amd64 Found initrd image: /boot/initrd.img-6.1.0-13-amd64 Found linux image: /boot/vmlinuz-6.1.0-10-amd64 Found initrd image: /boot/initrd.img-6.1.0-10-amd64 Warning: os-prober will be executed to detect other bootable partitions. Its output will be used to detect bootable binaries on them and create new boot entries. Found Windows 10 on /dev/sda1 done
См. также
+Grub-Customizer
+Восстановить grub2