hi oldfred -- i'm the same guy you're helping over at https://askubuntu.com/questions/1384...d-of-grub-menu
yes, i can boot manually from the grub prompt using linux/initrd/boot.
how do i check if the grub menu is missing, what its contents are, or update it?
do the errors indicated at the top of the bis (scripts in /usr/share/boot-sav, many commands not found, etc) not matter?
> If you can boot and run this from inside your install to update menu.
i can't tell what you are referring to by "this" -- what are you saying i should run from inside my install to update the menu? "update-grub"?
Code:
flister@flister-desktop:~$ sudo update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Script `/boot/grub/grub.cfg.new' contains no commands and will do nothing
Syntax errors are detected in generated GRUB config file.
Ensure that there are no errors in /etc/default/grub
and /etc/grub.d/* files or please file a bug report with
/boot/grub/grub.cfg.new file attached.
Code:
flister@flister-desktop:~$ ls -al /boot/grub
total 44
drwxr-xr-x 5 root root 4096 Jan 2 10:54 .
drwxr-xr-x 6 root root 4096 Jan 1 20:49 ..
drwxr-xr-x 2 root root 4096 Jan 1 22:56 fonts
-r--r--r-- 1 root root 150 Jan 2 10:54 grub.cfg.new
-rw-r--r-- 1 root root 1024 Jan 1 22:56 grubenv
drwxr-xr-x 2 root root 4096 Jan 1 23:00 locale
drwxr-xr-x 2 root root 20480 Jan 1 23:00 x86_64-efi
Code:
flister@flister-desktop:~$ cat /boot/grub/grub.cfg.new
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
Code:
flister@flister-desktop:~$ cat /etc/default/grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
GRUB_DISABLE_OS_PROBER=false
flister@flister-desktop:~$ ls -al /etc/grub.d
ls: cannot access '/etc/grub.d': No such file or directory
Code:
flister@flister-desktop:~$ ls -al /etc/grub.d.bak/
total 152
drwxr-xr-x 2 root root 4096 Dec 29 21:50 .
drwxr-xr-x 138 root root 12288 Jan 2 00:18 ..
-rwxr-xr-x 1 root root 10627 Sep 2 05:37 00_header
-rwxr-xr-x 1 root root 6260 Dec 13 05:27 05_debian_theme
-rwxr-xr-x 1 root root 18683 Dec 13 05:27 10_linux
-rwxr-xr-x 1 root root 43031 Sep 2 05:37 10_linux_zfs
-rwxr-xr-x 1 root root 14180 Dec 13 05:27 20_linux_xen
-rwxr-xr-x 1 root root 1992 Oct 7 03:20 20_memtest86+
-rwxr-xr-x 1 root root 12910 Dec 13 05:27 30_os-prober
-rwxr-xr-x 1 root root 1372 Dec 13 05:27 30_uefi-firmware
-rwxr-xr-x 1 root root 214 Sep 2 05:37 40_custom
-rwxr-xr-x 1 root root 215 Dec 13 05:27 41_custom
-rw-r--r-- 1 root root 483 Sep 2 05:37 README
Code:
flister@flister-desktop:~$ apt list --installed | grep grub
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
grub-common/jammy,now 2.06-2ubuntu3 i386 [installed,automatic]
grub-efi-amd64-bin/jammy,now 2.06-2ubuntu3 amd64 [installed]
grub-efi-amd64/jammy,now 2.06-2ubuntu3 amd64 [installed,automatic]
grub-efi/jammy,now 2.06-2ubuntu3 amd64 [installed]
grub2-common/jammy,now 2.06-2ubuntu3 amd64 [installed,automatic]
Bookmarks