Weird grub problem
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Weird grub problem
I have recently done a complete install of mint 20.1 MATE 64bit which worked very well but I no longer have the Grub menu coming up when I reboot, I have tried boot-repair but get this message: Please create a ESP partition (FAT32, 100~250MB, start of the disk, bootflag). This can be performed via tools such as Gparted. then try again
I have been using this laptop for a couple of years always with Linux Mint alongside Win10 and previous installs always gave a grub menu on reboot but after this latest install I have to use the Fn/F12 key if I want to boot into Windows
my partition table is:
Number Start End Size File system Name Flags
1 1049kB 1050MB 1049MB ntfs Basic data partition hidden, diag
2 1050MB 1322MB 273MB fat32 EFI system partition boot, hidden, esp
3 1322MB 2371MB 1049MB fat32 Basic data partition hidden
4 2371MB 2505MB 134MB Microsoft reserved partition msftres
5 2505MB 260GB 258GB ntfs Basic data partition msftdata
8 260GB 268GB 8000MB linux-swap(v1) swap
9 268GB 289GB 21.0GB ext4 /
10 289GB 460GB 171GB ext4 /home
6 460GB 487GB 26.8GB ntfs Basic data partition msftdata
7 487GB 500GB 13.2GB ntfs Basic data partition hidden, diag
Any help appreciated
I have been using this laptop for a couple of years always with Linux Mint alongside Win10 and previous installs always gave a grub menu on reboot but after this latest install I have to use the Fn/F12 key if I want to boot into Windows
my partition table is:
Number Start End Size File system Name Flags
1 1049kB 1050MB 1049MB ntfs Basic data partition hidden, diag
2 1050MB 1322MB 273MB fat32 EFI system partition boot, hidden, esp
3 1322MB 2371MB 1049MB fat32 Basic data partition hidden
4 2371MB 2505MB 134MB Microsoft reserved partition msftres
5 2505MB 260GB 258GB ntfs Basic data partition msftdata
8 260GB 268GB 8000MB linux-swap(v1) swap
9 268GB 289GB 21.0GB ext4 /
10 289GB 460GB 171GB ext4 /home
6 460GB 487GB 26.8GB ntfs Basic data partition msftdata
7 487GB 500GB 13.2GB ntfs Basic data partition hidden, diag
Any help appreciated
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
- JOPETA
- Level 17
- Posts: 7762
- Joined: Thu Nov 20, 2014 6:10 am
- Location: En un lugar de cuyo nombre no quiero acordarme
Re: Weird grub problem
Do not use Boot Repair and post back the complete
Looking at you partitioning a see a hidden flag in EFI partition.
sudo fdisk -l
result. Also confrm you can boot Linux Mint but the problem is GRUB menu is not shown. Looking at you partitioning a see a hidden flag in EFI partition.
EFI partition should not be hidden. Just remove that flag with gparted and runtowy71 wrote: ⤴Tue Apr 06, 2021 3:27 pm Number Start End Size File system Name Flags
1 1049kB 1050MB 1049MB ntfs Basic data partition hidden, diag
2 1050MB 1322MB 273MB fat32 EFI system partition boot, hidden, esp
3 1322MB 2371MB 1049MB fat32 Basic data partition hidden
4 2371MB 2505MB 134MB Microsoft reserved partition msftres
5 2505MB 260GB 258GB ntfs Basic data partition msftdata
8 260GB 268GB 8000MB linux-swap(v1) swap
9 268GB 289GB 21.0GB ext4 /
10 289GB 460GB 171GB ext4 /home
6 460GB 487GB 26.8GB ntfs Basic data partition msftdata
7 487GB 500GB 13.2GB ntfs Basic data partition hidden, diag
sudo update-grub
from a terminal. Then reboot.
Last edited by JOPETA on Thu Apr 08, 2021 6:25 am, edited 1 time in total.
Ni cola de león ni cabeza de ratón, prefiero ser diente de ajo.(Javier Krahe)
Re: Weird grub problem
Hi,
The advice given by JOPETA is spot on..
When you have sorted everything, I would recommend that you make a copy of the contents of your EFI partition.. This will be useful the next time Windows update decides to bork your bootloader..
Bodge99
The advice given by JOPETA is spot on..
When you have sorted everything, I would recommend that you make a copy of the contents of your EFI partition.. This will be useful the next time Windows update decides to bork your bootloader..
Bodge99
Re: Weird grub problem
Device Start End Sectors Size Type
/dev/sda1 2048 2050047 2048000 1000M Windows recovery environment
/dev/sda2 2050048 2582527 532480 260M EFI System
/dev/sda3 2582528 4630527 2048000 1000M Lenovo boot partition
/dev/sda4 4630528 4892671 262144 128M Microsoft reserved
/dev/sda5 4892672 507914156 503021485 239.9G Microsoft basic data
/dev/sda6 898539520 950968319 52428800 25G Microsoft basic data
/dev/sda7 950968320 976773119 25804800 12.3G Windows recovery environment
/dev/sda8 507914240 523538431 15624192 7.5G Linux swap
/dev/sda9 523538432 564553727 41015296 19.6G Linux filesystem
/dev/sda10 564553728 898539519 333985792 159.3G Linux filesystem
Partition table entries are not in disk order.
I confrm I can boot Linux Mint but the problem is GRUB menu is not shown.
I have changed the hidden flag on the EFI partition an I am just going to do sudo update-grub and will post back.
PS this Grub problem was instigated by by the fresh install of Linux Mint 20.1
Re: Weird grub problem
Sounds like Mint isn't seeing Windows. Please report the output of
sudo os-prober
.Re: Weird grub problem
Having removed the "hidden" flag and run sudo update-grub I still don't get a grub menu
The result of "sudo os-probe is:
~ $ sudo os-prober
[sudo] password for dick:
/dev/sda2@/EFI/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi
Thanks for getting back to me
The result of "sudo os-probe is:
~ $ sudo os-prober
[sudo] password for dick:
/dev/sda2@/EFI/Microsoft/Boot/bootmgfw.efi:Windows Boot Manager:Windows:efi
Thanks for getting back to me
- JOPETA
- Level 17
- Posts: 7762
- Joined: Thu Nov 20, 2014 6:10 am
- Location: En un lugar de cuyo nombre no quiero acordarme
Re: Weird grub problem
You didn't post back fdisk complete result. Anyway, open a terminal (ALT+CTRL+T), copy and paste Then reboot and post back following code result
xed admin:///etc/default/grub
) and change first lines as followSave the file, close text editor and runGRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=10
Code: Select all
sudo update-grub
Code: Select all
sudo efibootmgr -v
Ni cola de león ni cabeza de ratón, prefiero ser diente de ajo.(Javier Krahe)
Re: Weird grub problem
That didn't work but I still boot into Mint 20.1
Code: Select all
~ $ sudo efibootmgr -v
[sudo] password for dick:
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0001,0007,0000,0003,2003,0002,2001,2002
Boot0000* Windows Boot Manager HD(2,GPT,7c9bba2b-085a-4b35-8263-a10b498e0a89,0x1f4800,0x82000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)RC
Boot0001* ubuntu HD(2,GPT,7c9bba2b-085a-4b35-8263-a10b498e0a89,0x1f4800,0x82000)/File(\EFI\ubuntu\shimx64.efi)
Boot0002* Lenovo Recovery System HD(3,GPT,16de7a1a-d998-4a0b-bc84-b895949c9553,0x276800,0x1f4000)/File(\EFI\Microsoft\Boot\LrsBootMgr.efi)RC
Boot0003* ubuntu HD(3,GPT,16de7a1a-d998-4a0b-bc84-b895949c9553,0x276800,0x1f4000)/File(\EFI\ubuntu\shimx64.efi)RC
Boot0004* EFI Network 0 for IPv4 (C4-54-44-7E-37-2A) PciRoot(0x0)/Pci(0x2,0x3)/Pci(0x0,0x0)/MAC(c454447e372a,0)/IPv4(0.0.0.00.0.0.0,0,0)RC
Boot0005* EFI Network 0 for IPv6 (C4-54-44-7E-37-2A) PciRoot(0x0)/Pci(0x2,0x3)/Pci(0x0,0x0)/MAC(c454447e372a,0)/IPv6([::]:<->[::]:,0,0)RC
Boot0007* Windows Boot Manager HD(2,GPT,7c9bba2b-085a-4b35-8263-a10b498e0a89,0x1f4800,0x82000)/File(\EFI\ubuntu\grubx64.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}....................
Boot2001* EFI USB Device RC
Boot2002* EFI DVD/CDROM RC
Boot2003* EFI Network RC
[/c]
oh and here is
[c]~ $ sudo fdisk -l
Disk /dev/sda: 465.78 GiB, 500107862016 bytes, 976773168 sectors
Disk model: ST500LT012-1DG14
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 3A52D643-7B83-4468-AD99-9787F8C1EE1F
Device Start End Sectors Size Type
/dev/sda1 2048 2050047 2048000 1000M Windows recovery environment
/dev/sda2 2050048 2582527 532480 260M EFI System
/dev/sda3 2582528 4630527 2048000 1000M Lenovo boot partition
/dev/sda4 4630528 4892671 262144 128M Microsoft reserved
/dev/sda5 4892672 507914156 503021485 239.9G Microsoft basic data
/dev/sda6 898539520 950968319 52428800 25G Microsoft basic data
/dev/sda7 950968320 976773119 25804800 12.3G Windows recovery environment
/dev/sda8 507914240 523538431 15624192 7.5G Linux swap
/dev/sda9 523538432 564553727 41015296 19.6G Linux filesystem
/dev/sda10 564553728 898539519 333985792 159.3G Linux filesystem
Partition table entries are not in disk order.
Last edited by towy71 on Sat Apr 10, 2021 4:03 am, edited 1 time in total.
Re: Weird grub problem
Hi,
Another possible solution is to install "grub-customizer" (available from the Software Manager). You can set your boot order etc. using this.
Bodge99
Another possible solution is to install "grub-customizer" (available from the Software Manager). You can set your boot order etc. using this.
Bodge99
Re: Weird grub problem
Are you sure you ran update-grub? As os-prober sees the Windows system, there's no good reason for the procedure Jopeta described not to work. Please report the output of
cat /etc/boot/grub.cfg
. This is the file from which the Grub menu is derived.The full text of grub.cfg will be a very long output. Please use
[code]
tags (the </> button), not the [c]
tags. [code]
tags will "corral" the output into a small code box, where [c]
tags will take something like ten screens worth of space.I recommend against using Grub Customizer, especially when you have an undiagnosed Grub problem.
Re: Weird grub problem
Thank you for the reply I will follow your example with the tags, sorry I didn't know, my bad; I tried the cat command given but could only find that file in /boot/grub/grub.cfg and below is the output:
P.S. I might just scrub this whole exercise and do a fresh install but will carry on for the moment to see what you say, and I can't express my thanks enough for your indulgence of an old duffer (I do have a daily backup of my separate /home partition)
Code: Select all
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
if [ "${initrdfail}" = 2 ]; then
set initrdfail=
elif [ "${initrdfail}" = 1 ]; then
set next_entry="${prev_entry}"
set prev_entry=
save_env prev_entry
if [ "${next_entry}" ]; then
set initrdfail=2
fi
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
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 initrdfail {
if [ -n "${have_grubenv}" ]; then if [ -n "${partuuid}" ]; then
if [ -z "${initrdfail}" ]; then
set initrdfail=1
if [ -n "${boot_once}" ]; then
set prev_entry="${default}"
save_env prev_entry
fi
fi
save_env initrdfail
fi; 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,gpt9'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt9 --hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9 6dfe3da1-86bc-4747-82aa-020dc5a1651c
else
search --no-floppy --fs-uuid --set=root 6dfe3da1-86bc-4747-82aa-020dc5a1651c
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_GB
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
set timeout=30
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=10
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=10
fi
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_gpt
insmod ext2
set root='hd0,gpt10'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt10 --hint-efi=hd0,gpt10 --hint-baremetal=ahci0,gpt10 9401bd43-ff8e-4133-ab4e-0c7db91d82c0
else
search --no-floppy --fs-uuid --set=root 9401bd43-ff8e-4133-ab4e-0c7db91d82c0
fi
insmod jpeg
if background_image /dick/Pictures/The Bain Family and friends.jpg; then
set color_normal=light-gray/black
set color_highlight=magenta/black
else
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=7
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 'Linux Mint 20.1 MATE' --class linuxmint --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-6dfe3da1-86bc-4747-82aa-020dc5a1651c' {
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,gpt9'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt9 --hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9 6dfe3da1-86bc-4747-82aa-020dc5a1651c
else
search --no-floppy --fs-uuid --set=root 6dfe3da1-86bc-4747-82aa-020dc5a1651c
fi
linux /boot/vmlinuz-5.4.0-70-generic root=UUID=6dfe3da1-86bc-4747-82aa-020dc5a1651c ro quiet splash
initrd /boot/initrd.img-5.4.0-70-generic
}
submenu 'Advanced options for Linux Mint 20.1 MATE' $menuentry_id_option 'gnulinux-advanced-6dfe3da1-86bc-4747-82aa-020dc5a1651c' {
menuentry 'Linux Mint 20.1 MATE, with Linux 5.4.0-70-generic' --class linuxmint --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-70-generic-advanced-6dfe3da1-86bc-4747-82aa-020dc5a1651c' {
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,gpt9'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt9 --hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9 6dfe3da1-86bc-4747-82aa-020dc5a1651c
else
search --no-floppy --fs-uuid --set=root 6dfe3da1-86bc-4747-82aa-020dc5a1651c
fi
echo 'Loading Linux 5.4.0-70-generic ...'
linux /boot/vmlinuz-5.4.0-70-generic root=UUID=6dfe3da1-86bc-4747-82aa-020dc5a1651c ro quiet splash
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.4.0-70-generic
}
menuentry 'Linux Mint 20.1 MATE, with Linux 5.4.0-70-generic (recovery mode)' --class linuxmint --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-70-generic-recovery-6dfe3da1-86bc-4747-82aa-020dc5a1651c' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt9'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt9 --hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9 6dfe3da1-86bc-4747-82aa-020dc5a1651c
else
search --no-floppy --fs-uuid --set=root 6dfe3da1-86bc-4747-82aa-020dc5a1651c
fi
echo 'Loading Linux 5.4.0-70-generic ...'
linux /boot/vmlinuz-5.4.0-70-generic root=UUID=6dfe3da1-86bc-4747-82aa-020dc5a1651c ro recovery nomodeset dis_ucode_ldr
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.4.0-70-generic
}
menuentry 'Linux Mint 20.1 MATE, with Linux 5.4.0-67-generic' --class linuxmint --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-67-generic-advanced-6dfe3da1-86bc-4747-82aa-020dc5a1651c' {
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,gpt9'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt9 --hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9 6dfe3da1-86bc-4747-82aa-020dc5a1651c
else
search --no-floppy --fs-uuid --set=root 6dfe3da1-86bc-4747-82aa-020dc5a1651c
fi
echo 'Loading Linux 5.4.0-67-generic ...'
linux /boot/vmlinuz-5.4.0-67-generic root=UUID=6dfe3da1-86bc-4747-82aa-020dc5a1651c ro quiet splash
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.4.0-67-generic
}
menuentry 'Linux Mint 20.1 MATE, with Linux 5.4.0-67-generic (recovery mode)' --class linuxmint --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-67-generic-recovery-6dfe3da1-86bc-4747-82aa-020dc5a1651c' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt9'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt9 --hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9 6dfe3da1-86bc-4747-82aa-020dc5a1651c
else
search --no-floppy --fs-uuid --set=root 6dfe3da1-86bc-4747-82aa-020dc5a1651c
fi
echo 'Loading Linux 5.4.0-67-generic ...'
linux /boot/vmlinuz-5.4.0-67-generic root=UUID=6dfe3da1-86bc-4747-82aa-020dc5a1651c ro recovery nomodeset dis_ucode_ldr
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.4.0-67-generic
}
menuentry 'Linux Mint 20.1 MATE, with Linux 5.4.0-58-generic' --class linuxmint --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-58-generic-advanced-6dfe3da1-86bc-4747-82aa-020dc5a1651c' {
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,gpt9'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt9 --hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9 6dfe3da1-86bc-4747-82aa-020dc5a1651c
else
search --no-floppy --fs-uuid --set=root 6dfe3da1-86bc-4747-82aa-020dc5a1651c
fi
echo 'Loading Linux 5.4.0-58-generic ...'
linux /boot/vmlinuz-5.4.0-58-generic root=UUID=6dfe3da1-86bc-4747-82aa-020dc5a1651c ro quiet splash
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.4.0-58-generic
}
menuentry 'Linux Mint 20.1 MATE, with Linux 5.4.0-58-generic (recovery mode)' --class linuxmint --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-58-generic-recovery-6dfe3da1-86bc-4747-82aa-020dc5a1651c' {
recordfail
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
set root='hd0,gpt9'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt9 --hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9 6dfe3da1-86bc-4747-82aa-020dc5a1651c
else
search --no-floppy --fs-uuid --set=root 6dfe3da1-86bc-4747-82aa-020dc5a1651c
fi
echo 'Loading Linux 5.4.0-58-generic ...'
linux /boot/vmlinuz-5.4.0-58-generic root=UUID=6dfe3da1-86bc-4747-82aa-020dc5a1651c ro recovery nomodeset dis_ucode_ldr
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-5.4.0-58-generic
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/10_linux_zfs ###
### END /etc/grub.d/10_linux_zfs ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-efi-0ADE-ABF0' {
insmod part_gpt
insmod fat
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 0ADE-ABF0
else
search --no-floppy --fs-uuid --set=root 0ADE-ABF0
fi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
set timeout=10
fi
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
fwsetup
}
### END /etc/grub.d/30_uefi-firmware ###
### 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 ###
Re: Weird grub problem
Glad to see you were able to find the right file even though I designated the path incorrectly.
Here's what we were looking for (copied from your output):
So, Windows indeed is making it to grub.cfg. Frankly, I can't imagine why it's not showing up on the Grub menu. By the way, please clarify. Are you still not getting a Grub menu? Or are you now getting the menu but Windows isn't one of the boot options?
Here's what we were looking for (copied from your output):
Code: Select all
### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Windows Boot Manager (on /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-efi-0ADE-ABF0' {
insmod part_gpt
insmod fat
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 0ADE-ABF0
else
search --no-floppy --fs-uuid --set=root 0ADE-ABF0
fi
chainloader /EFI/Microsoft/Boot/bootmgfw.efi
}
set timeout_style=menu
if [ "${timeout}" = 0 ]; then
set timeout=10
fi
### END /etc/grub.d/30_os-prober ###
- JOPETA
- Level 17
- Posts: 7762
- Joined: Thu Nov 20, 2014 6:10 am
- Location: En un lugar de cuyo nombre no quiero acordarme
Re: Weird grub problem
I see you are trying to use a background from your user folder in home partition and maybe this, or another customization, is causing you can't see grub menu.
Post back complete
Try pressing SHIFT key as soon as power on PC or press Esc key within first ten seconds after. If you don't get into grub menu maybe there is another problem with graphics/video signal/monitors...when booting but not when loading kernel or system.
Anyway, some details about your system are still needed. Post back following code results
Post back complete
cat /etc/default/grub
result and confirm you didn't install grub customizer.Try pressing SHIFT key as soon as power on PC or press Esc key within first ten seconds after. If you don't get into grub menu maybe there is another problem with graphics/video signal/monitors...when booting but not when loading kernel or system.
Anyway, some details about your system are still needed. Post back following code results
Code: Select all
inxi -Fxxxzr
mokutil --sb-state
cat /etc/fstab
I don't think you need to reinstall a working system and it is not sure that you don't end up with the same problem as we don't know what's happend. You'd better try reintalling grub-efi frst.
Ni cola de león ni cabeza de ratón, prefiero ser diente de ajo.(Javier Krahe)
Re: Weird grub problem
thanks for getting back to me I have been clutching at any straw floating past me
Code: Select all
dick@veruka ~ $ inxi -Fxxxzr
System: Kernel: 5.4.0-70-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: MATE 1.24.0 info: mate-panel
wm: marco 1.24.0 dm: LightDM 1.30.0 Distro: Linux Mint 20.1 Ulyssa base: Ubuntu 20.04 focal
Machine: Type: Laptop System: LENOVO product: 20334 v: Lenovo Ideapad Flex 15D serial: <filter> Chassis: type: 10
v: Lenovo Ideapad Flex 15D serial: <filter>
Mobo: LENOVO model: Strawberry 5E v: 31900058Std serial: <filter> UEFI: LENOVO v: 94CN07WW date: 02/13/2014
Battery: ID-1: BAT1 charge: 21.1 Wh condition: 22.2/28.5 Wh (78%) volts: 14.0/14.4 model: SMP Primary type: Li-ion
serial: <filter> status: Unknown cycles: 256
CPU: Topology: Dual Core model: AMD E1-2100 APU with Radeon HD Graphics bits: 64 type: MCP arch: Jaguar rev: 1
L2 cache: 1024 KiB
flags: avx lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 3992
Speed: 866 MHz min/max: 800/1000 MHz Core speeds (MHz): 1: 904 2: 868
Graphics: Device-1: Advanced Micro Devices [AMD/ATI] Kabini [Radeon HD 8210] vendor: Lenovo driver: radeon v: kernel
bus ID: 00:01.0 chip ID: 1002:9834
Display: x11 server: X.Org 1.20.9 driver: ati,radeon unloaded: fbdev,modesetting,vesa compositor: marco
v: 1.24.0 resolution: 1366x768~60Hz
OpenGL: renderer: AMD KABINI (DRM 2.50.0 5.4.0-70-generic LLVM 11.0.0) v: 4.5 Mesa 20.2.6 direct render: Yes
Audio: Device-1: Advanced Micro Devices [AMD/ATI] Kabini HDMI/DP Audio vendor: Lenovo driver: snd_hda_intel v: kernel
bus ID: 00:01.1 chip ID: 1002:9840
Device-2: Advanced Micro Devices [AMD] FCH Azalia vendor: Lenovo driver: snd_hda_intel v: kernel
bus ID: 00:14.2 chip ID: 1022:780d
Sound Server: ALSA v: k5.4.0-70-generic
Network: Device-1: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter vendor: Lenovo driver: ath9k v: kernel
port: 4100 bus ID: 01:00.0 chip ID: 168c:0036
IF: wlp1s0 state: down mac: <filter>
Device-2: Realtek RTL810xE PCI Express Fast Ethernet driver: r8169 v: kernel port: 2000 bus ID: 05:00.0
chip ID: 10ec:8136
IF: enp5s0 state: up speed: 100 Mbps duplex: full mac: <filter>
Device-3: Qualcomm Atheros AR3012 Bluetooth 4.0 type: USB driver: usb-network bus ID: 4-2:5 chip ID: 0cf3:3004
Drives: Local Storage: total: 465.76 GiB used: 117.54 GiB (25.2%)
ID-1: /dev/sda vendor: Seagate model: ST500LT012-1DG142 size: 465.76 GiB speed: 6.0 Gb/s rotation: 5400 rpm
serial: <filter> rev: LVM1 scheme: GPT
Partition: ID-1: / size: 19.13 GiB used: 8.39 GiB (43.9%) fs: ext4 dev: /dev/sda9
ID-2: /home size: 156.63 GiB used: 109.11 GiB (69.7%) fs: ext4 dev: /dev/sda10
ID-3: swap-1 size: 7.45 GiB used: 3.0 MiB (0.0%) fs: swap dev: /dev/sda8
Sensors: System Temperatures: cpu: 39.9 C mobo: N/A gpu: radeon temp: 40 C
Fan Speeds (RPM): N/A
Repos: No active apt repos in: /etc/apt/sources.list
Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
1: deb http://www.mirrorservice.org/sites/packages.linuxmint.com/packages ulyssa main upstream import backport
2: deb http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
3: deb http://archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
4: deb http://archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
5: deb http://security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
6: deb http://archive.canonical.com/ubuntu/ focal partner
7: deb https://deb.opera.com/opera-stable/ stable non-free #Opera Browser (final releases)
Active apt repos in: /etc/apt/sources.list.d/skype-stable.list
1: deb [arch=amd64] https://repo.skype.com/deb stable main
Info: Processes: 227 Uptime: 12h 35m Memory: 3.55 GiB used: 1.92 GiB (53.9%) Init: systemd v: 245 runlevel: 5
Compilers: gcc: 9.3.0 alt: 9 Shell: bash v: 5.0.17 running in: mate-terminal inxi: 3.0.38
- JOPETA
- Level 17
- Posts: 7762
- Joined: Thu Nov 20, 2014 6:10 am
- Location: En un lugar de cuyo nombre no quiero acordarme
Re: Weird grub problem
You are welcome ...but you do not provide rest of codes (in a terminal copy and paste one line each time and press enter).
As you can read in my last post, I'm wondering about grub customization you have done, to revert that changes You did not answer this question, have you already installed GRUB Customizer?.
Reverting changes in GRUB is easy if they have been made by hand (w/o GC).
Code: Select all
cat /etc/default/grub
mokutil --sb-state
cat /etc/fstab
Reverting changes in GRUB is easy if they have been made by hand (w/o GC).
- edit /etc/default/grub (
- edit and undo changes in /etc/grub.d/05_debian_theme,
-if you don't remember what you did, undo all changes reinstalling grub-common (
It is not the case if GRUB customizer is installed, you'd better undo changes with that tool. Also removing GRUB customizer is not only uninstalling that application and/or reinstalling grub-common. You will need to revert other changes by hand (removing all proxies files created in /etc/grub.d folder, restoring executables from the backup folder or where-ever they were placed,...). xed admin:///etc/default/grub
) and comment (write # in the front line) #GRUB_BACKGROUND="/dick/Pictures/The Bain Family and friends.jpg" or delete that line- edit and undo changes in /etc/grub.d/05_debian_theme,
-if you don't remember what you did, undo all changes reinstalling grub-common (
sudo apt-get install --reinstall grub-common
).
Last edited by JOPETA on Tue May 04, 2021 12:20 pm, edited 3 times in total.
Ni cola de león ni cabeza de ratón, prefiero ser diente de ajo.(Javier Krahe)
Re: Weird grub problem
Code: Select all
dick@veruka ~ $ 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"
Code: Select all
ick@veruka ~ $ mokutil --sb-state
SecureBoot enabled
SecureBoot validation is disabled in shim
Code: Select all
ick@veruka ~ $ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda9 during installation
UUID=6dfe3da1-86bc-4747-82aa-020dc5a1651c / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda2 during installation
#UUID=0ADE-ABF0 /boot/efi vfat umask=0077 0 1
# /home was on /dev/sda10 during installation
UUID=9401bd43-ff8e-4133-ab4e-0c7db91d82c0 /home ext4 defaults 0 2
# swap was on /dev/sda8 during installation
UUID=639e8e22-bcbe-4f07-b9e0-460f9336e635 none swap sw 0 0
UUID=0ADE-ABF0 /boot/efi vfat defaults 0 1
Code: Select all
# 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"
Re: Weird grub problem
In my opinion, don't do this. It makes a complete infiltration of the usual grub files and if you still have a booting problem, it will make it much more difficult to remedy.
- JOPETA
- Level 17
- Posts: 7762
- Joined: Thu Nov 20, 2014 6:10 am
- Location: En un lugar de cuyo nombre no quiero acordarme
Re: Weird grub problem
Try disabling Secure Boot in your UEFI settings and follow as indicated in my last post. Good luck.
Ni cola de león ni cabeza de ratón, prefiero ser diente de ajo.(Javier Krahe)