Mint 19.2 - jak wyłączyć menu startowe Grub'a?

0

Nie wiem jakim cudem to włączyłem, ale za groma wyłączyc nie mogę. Config grubego wyglada tak:

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="Ubuntu"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}
function recordfail {
  set recordfail=1
  if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod ext2
set root='hd0,gpt2'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  9ab360b9-15b5-43b0-b572-dbc93f923a1b
else
  search --no-floppy --fs-uuid --set=root 9ab360b9-15b5-43b0-b572-dbc93f923a1b
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=1920x1080
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=pl_PL
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=hidden
    set timeout=-1
  # Fallback hidden-timeout code in case the timeout_style feature is
  # unavailable.
  elif sleep --interruptible -1 ; then
    set timeout=0
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux_proxy ###

function gfxmode {
	set gfxpayload="${1}"
	if [ "${1}" = "keep" ]; then
		set vt_handoff=vt.handoff=1
	else
		set vt_handoff=
	fi
}
if [ "${recordfail}" != 1 ]; then
  if [ -e ${prefix}/gfxblacklist.txt ]; then
    if hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
        set linux_gfx_mode=keep
      else
        set linux_gfx_mode=text
      fi
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=keep
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode



menuentry "Ubuntu" --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-9ab360b9-15b5-43b0-b572-dbc93f923a1b' {
	recordfail
	load_video
	gfxmode $linux_gfx_mode
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt2'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  9ab360b9-15b5-43b0-b572-dbc93f923a1b
	else
	  search --no-floppy --fs-uuid --set=root 9ab360b9-15b5-43b0-b572-dbc93f923a1b
	fi
        linux	/boot/vmlinuz-4.15.0-65-generic root=UUID=9ab360b9-15b5-43b0-b572-dbc93f923a1b ro  quiet splash $vt_handoff
	initrd	/boot/initrd.img-4.15.0-65-generic
}
### END /etc/grub.d/10_linux_proxy ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware_proxy ###


### END /etc/grub.d/30_uefi-firmware_proxy ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

Chodzi o to, że podczas uruchamiania systemu zaczęła pojawiać mi sie tabelka GRUB'a a w niej opcje: Uruchom systeml uruchom zaawansowane opcje; uruchom setup.
Nie mam innych systemów na dysku, tylko Mint.

0

Niestety, nic to nie daje. Próbowałem już wielu opcji i nadal menu Gruba pojawia się przy starcie.

GRUB_DEFAULT="0"
GRUB_TIMEOUT_STYLE="hidden"
GRUB_TIMEOUT="-1"
GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_GFXMODE="1920x1080"
#GRUB_DISABLE_LINUX_UUID="true"
#GRUB_DISABLE_RECOVERY="true"
#GRUB_INIT_TUNE="480 440 1"
#export GRUB_MENU_PICTURE="/boot/grub/themes/boot-logo.jpg"
GRUB_DISABLE_OS_PROBER="true"
GRUB_HIDDEN_TIMEOUT="0"
GRUB_SAVEDEFAULT="false"
GRUB_HIDDEN_TIMEOUT_QUIET="true"
GRUB_RECORDFAIL_TIMEOUT=0
2

Zakomentuj linie: GRUB_HIDDEN_TIMEOUT=0 i GRUB_HIDDEN_TIMEOUT_QUIET=true

Jak zakomentujesz to: sudo update-grub

A jak to nie pomożę, to spróbuj tak:

sudo apt-get install grub2 grub-pc

Później:

sudo update-grub

Następnie wejdź do: etc/default/grub zmień plik konfiguracyjny (tak jak próbowałeś wcześniej + zakomentuj te linie, które napisałem we wcześniejszym poście).

Na koniec znowu:

sudo update-grub

Jeżeli to nie pomoże, to zainstaluj sobie program grub-customizer i w nim znajdź interesujące opcje.

0

Pakiet grub-pc nie ma dostępnej wersji, ale odnosi się do niego inny pakiet.
Zazwyczaj oznacza to, że pakietu brakuje, został zastąpiony przez inny
pakiet lub nie jest dostępny przy pomocy obecnie ustawionych źródeł.
Jednak następujące pakiety go zastępują:
grub2-common grub-common grub-efi-amd64

E: Pakiet grub2 nie ma kandydata do instalacji
E: Pakiet grub-pc nie ma kandydata do instalacji

0
Nervica napisał(a):

Pakiet grub-pc nie ma dostępnej wersji, ale odnosi się do niego inny pakiet.
Zazwyczaj oznacza to, że pakietu brakuje, został zastąpiony przez inny
pakiet lub nie jest dostępny przy pomocy obecnie ustawionych źródeł.
Jednak następujące pakiety go zastępują:
grub2-common grub-common grub-efi-amd64

E: Pakiet grub2 nie ma kandydata do instalacji
E: Pakiet grub-pc nie ma kandydata do instalacji

Masz rację. Sprawdziłem teraz u siebie i to poowinno być grub2-common oraz grub-efi-amd64

0

Wypluło mi tak:

lenovo@lenovo-L540:~$ sudo apt-get install grub2-common grub-efi-amd64
Czytanie list pakietów... Gotowe
Budowanie drzewa zależności       
Odczyt informacji o stanie... Gotowe
grub-efi-amd64 is already the newest version (2.02-2ubuntu8.13).
grub-efi-amd64 zaznaczony jako zainstalowany ręcznie.
grub2-common is already the newest version (2.02-2ubuntu8.13).

Nie kapuje dlaczego mam to na dysku E (sda) skoro system siedzi na sdb.

1

Wrzuć jeszcze raz jak wygląda plik /etc/default/grub.
Np. ta linijka: GRUB_TIMEOUT="-1" jest bez sensu, niepotrzebny jest ten cudzysłów, oraz zamiast -1 lepiej dać 0.

GRUB_TIMEOUT=0
0

Cudzysłów dodał Grub-customizer a plik wygląda teraz tak:

GRUB_DEFAULT="0"
GRUB_TIMEOUT_STYLE="hidden"
GRUB_TIMEOUT="-1"
GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_GFXMODE="1920x1080"
#GRUB_DISABLE_LINUX_UUID="true"
#GRUB_DISABLE_RECOVERY="true"
#GRUB_INIT_TUNE="480 440 1"
#export GRUB_MENU_PICTURE="/boot/grub/themes/boot-logo.jpg"
GRUB_DISABLE_OS_PROBER="true"
#GRUB_HIDDEN_TIMEOUT="0"
GRUB_SAVEDEFAULT="false"
#GRUB_HIDDEN_TIMEOUT_QUIET="true"
GRUB_RECORDFAIL_TIMEOUT="0"

Za chwilę zrobie tak:

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE="hidden"
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
GRUB_GFXMODE="1920x1080"
#GRUB_DISABLE_LINUX_UUID="true"
#GRUB_DISABLE_RECOVERY="true"
#GRUB_INIT_TUNE="480 440 1"
#export GRUB_MENU_PICTURE="/boot/grub/themes/boot-logo.jpg"
GRUB_DISABLE_OS_PROBER="true"
#GRUB_HIDDEN_TIMEOUT="0"
GRUB_SAVEDEFAULT="false"
#GRUB_HIDDEN_TIMEOUT_QUIET="true"
GRUB_RECORDFAIL_TIMEOUT="0"

i zobaczę czy to coś zmieni

0

W końcu udało się, ustawiłem GRUB_TIMEOUT="-1" na GRUB_TIMEOUT="0" i teraz jest ok. Nie wiem "co" zedytowało ten wpis i przestawiło na "-1" i co miało oznaczać te "-1".

1 użytkowników online, w tym zalogowanych: 0, gości: 1