[Solved] GRUB Prompt after LM21 clean install

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
PiperKev
Level 2
Level 2
Posts: 60
Joined: Thu Mar 17, 2011 3:44 pm

[Solved] GRUB Prompt after LM21 clean install

Post by PiperKev »

Like a few others here, I did a clean installation of LM21, replacing LM20.3 (My only OS, no dual booting). Ever since, I've been confronted with a GRUB> prompt as soon as it boots. I type "exit" and it proceeds to the GRUB menu and booting continues normally. It's an annoyance, but it didn't happen to me with LM20.3, so I'm wondering if I did something wrong during the install. Any help would be GREATLY appreciated!

inxi -Fxxxrz output is as follows:

Code: Select all

System:
  Kernel: 5.15.0-46-generic x86_64 bits: 64 compiler: gcc v: 11.2.0
    Desktop: Cinnamon 5.4.10 tk: GTK 3.24.33 wm: Mutter vt: 7
    dm: LightDM 1.30.0 Distro: Linux Mint 21 Vanessa base: Ubuntu 22.04 jammy
Machine:
  Type: Laptop System: Dell product: Inspiron 3793 v: N/A
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: Dell model: 0C1PF2 v: A00 serial: <superuser required> UEFI: Dell
    v: 1.23.0 date: 07/08/2022
Battery:
  ID-1: BAT0 charge: 37.0 Wh (100.0%) condition: 37.0/42.0 Wh (88.1%)
    volts: 12.5 min: 11.4 model: BYD DELL 1VX1H05 type: Li-poly
    serial: <filter> status: Full
CPU:
  Info: quad core model: Intel Core i5-1035G1 bits: 64 type: MT MCP
    smt: enabled arch: Ice Lake rev: 5 cache: L1: 320 KiB L2: 2 MiB L3: 6 MiB
  Speed (MHz): avg: 1094 high: 1101 min/max: 400/3600 cores: 1: 1100
    2: 1101 3: 1101 4: 1101 5: 1100 6: 1100 7: 1100 8: 1056 bogomips: 19046
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel Iris Plus Graphics G1 vendor: Dell driver: i915 v: kernel
    ports: active: eDP-1 empty: HDMI-A-1 bus-ID: 00:02.0 chip-ID: 8086:8a56
    class-ID: 0300
  Device-2: Realtek Integrated_Webcam_HD type: USB driver: uvcvideo
    bus-ID: 1-6:5 chip-ID: 0bda:5520 class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 1.21.1.3 driver: X: loaded: modesetting
    unloaded: fbdev,vesa gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2")
    s-diag: 582mm (22.9")
  Monitor-1: eDP-1 model: AU Optronics res: 1920x1080 hz: 60 dpi: 128
    size: 381x214mm (15.0x8.4") diag: 437mm (17.2") modes: 1920x1080
  OpenGL: renderer: Mesa Intel UHD Graphics (ICL GT1) v: 4.6 Mesa 22.0.5
    direct render: Yes
Audio:
  Device-1: Intel Ice Lake-LP Smart Sound Audio vendor: Dell
    driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:34c8
    class-ID: 0403
  Sound Server-1: ALSA v: k5.15.0-46-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Realtek RTL810xE PCI Express Fast Ethernet vendor: Dell
    driver: r8169 v: kernel pcie: speed: 2.5 GT/s lanes: 1 port: 3000
    bus-ID: 01:00.0 chip-ID: 10ec:8136 class-ID: 0200
  IF: enp1s0 state: down mac: <filter>
  Device-2: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter
    vendor: Dell driver: ath10k_pci v: kernel pcie: speed: 2.5 GT/s lanes: 1
    bus-ID: 02:00.0 chip-ID: 168c:0042 class-ID: 0280
  IF: wlp2s0 state: up mac: <filter>
Bluetooth:
  Device-1: Qualcomm Atheros type: USB driver: btusb v: 0.8 bus-ID: 1-10:6
    chip-ID: 0cf3:e009 class-ID: e001
  Report: hciconfig ID: hci0 rfk-id: 0 state: down
    bt-service: enabled,running rfk-block: hardware: no software: yes
    address: <filter>
RAID:
  Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode] driver: ahci
    v: 3.0 port: 4060 bus-ID: 00:17.0 chip-ID: 8086:282a rev: N/A
    class-ID: 0104
Drives:
  Local Storage: total: 931.51 GiB used: 755.19 GiB (81.1%)
  ID-1: /dev/sda vendor: Seagate model: ST1000LM035-1RK172 size: 931.51 GiB
    speed: 6.0 Gb/s type: HDD rpm: 5400 serial: <filter> rev: 1002 scheme: GPT
Partition:
  ID-1: / size: 18.16 GiB used: 9.92 GiB (54.6%) fs: ext4 dev: /dev/sda2
  ID-2: /boot/efi size: 511 MiB used: 40.1 MiB (7.9%) fs: vfat
    dev: /dev/sda1
  ID-3: /home size: 893.32 GiB used: 745.08 GiB (83.4%) fs: ext4
    dev: /dev/sda4
Swap:
  ID-1: swap-1 type: partition size: 3.72 GiB used: 148.3 MiB (3.9%)
    priority: -2 dev: /dev/sda3
Sensors:
  System Temperatures: cpu: 27.8 C mobo: N/A
  Fan Speeds (RPM): cpu: 0
Repos:
  Packages: apt: 2463
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/google-chrome.list
    1: deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb http://packages.linuxmint.com vanessa main upstream import backport
    2: deb http://archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
    3: deb http://archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
    4: deb http://archive.ubuntu.com/ubuntu jammy-backports main restricted universe multiverse
    5: deb http://security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
  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: 292 Uptime: 5h 29m wakeups: 1 Memory: 7.54 GiB
  used: 3.81 GiB (50.6%) Init: systemd v: 249 runlevel: 5 Compilers:
  gcc: 11.2.0 alt: 11 Shell: Bash v: 5.1.16 running-in: gnome-terminal
  inxi: 3.3.13

Cheers,
Kevin
Last edited by LockBot on Mon Feb 13, 2023 11:00 pm, edited 4 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
PiperKev
Level 2
Level 2
Posts: 60
Joined: Thu Mar 17, 2011 3:44 pm

Re: GRUB Prompt after LM21 clean install

Post by PiperKev »

Running boot-repair from a USB stick gets me this:

Code: Select all

boot-repair-4ppa200                                              [20220813_2110]

============================== Boot Info Summary ===============================

 => No boot loader is installed in the MBR of /dev/sda.

sda1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /efi/BOOT/bkpbootx64.efi /efi/BOOT/bootx64.efi 
                       /efi/BOOT/fbx64.efi /efi/BOOT/grubx64.efi 
                       /efi/BOOT/mmx64.efi /efi/ubuntu/grubx64.efi 
                       /efi/ubuntu/mmx64.efi /efi/ubuntu/shimx64.efi 
                       /efi/ubuntu/grub.cfg

sda2: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Linux Mint 21
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub

sda3: __________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info: 

sda4: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sdb: ___________________________________________________________________________

    File system:       iso9660
    Boot sector type:  Grub2 (v1.99-2.00)
    Boot sector info:  Grub2 (v1.99-2.00) is installed in the boot sector of 
                       sdb and looks at sector 0 of the same hard drive for 
                       core.img, but core.img can not be found at this 
                       location.
    Mounting failed:   mount: /mnt/BootInfo/FD/sdb: /dev/sdb already mounted or mount point busy.


================================ 1 OS detected =================================

OS#1:   Linux Mint 21 Vanessa (21) on sda2

================================ Host/Hardware =================================

CPU architecture: 64-bit
Video: Iris Plus Graphics G1 (Ice Lake) from Intel Corporation
Live-session OS is Linuxmint 64-bit (Linux Mint 21, vanessa, x86_64)

===================================== UEFI =====================================

BIOS/UEFI firmware: 1.23.0(1.23) from Dell Inc.
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled - SecureBoot disabled - Please report this message to boot.repair@gmail.com.
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0003,0000,0001
Boot0000* UEFI ST1000LM035-1RK172 WQ99Z4B6	PciRoot(0x0)/Pci(0x17,0x0)/Sata(1,32768,0)/HD(1,GPT,6ca085f9-6787-4d89-8daf-e1c638a6a5a7,0x800,0x100000)/File(\EFI\Boot\BootX64.efi)N.....YM....R,Y.
Boot0001* UEFI USB DISK Pro 07B9170B29C56169	PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/HD(2,GPT,7d7473ea-fce2-4e11-b099-a49d0a25ce4c,0x48dd90,0x2130)/File(\EFI\Boot\BootX64.efi)N.....YM....R,Y.
Boot0003* ubuntu	HD(1,GPT,6ca085f9-6787-4d89-8daf-e1c638a6a5a7,0x800,0x100000)/File(\EFI\ubuntu\shimx64.efi)

78415fb8fb9b909f8029858113f1335f   sda1/BOOT/bkpbootx64.efi
728124f6ec8e22fbdbe7034812c81b95   sda1/BOOT/bootx64.efi
c152ec201c37b6e97bbc2207e49d1271   sda1/BOOT/fbx64.efi
8ed07d5ee4e5e1534bcf64037b7589ff   sda1/BOOT/grubx64.efi
fdafb5eece6caeccb788c946a28e6872   sda1/BOOT/mmx64.efi
f62c28d9b477b6a1a7b1c991b2b6637d   sda1/ubuntu/grubx64.efi
fdafb5eece6caeccb788c946a28e6872   sda1/ubuntu/mmx64.efi
728124f6ec8e22fbdbe7034812c81b95   sda1/ubuntu/shimx64.efi

============================= Drive/Partition Info =============================

Disks info: ____________________________________________________________________

sda	: is-GPT,	no-BIOSboot,	has---ESP, 	not-usb,	not-mmc, has-os,	no-wind,	2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

sda1	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
sda2	: is-os,	64, apt-get,	signed grub-pc grub-efi ,	grub2,	grub-install,	grubenv-ok,	update-grub,	not-far
sda4	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios

Partitions info (2/3): _________________________________________________________

sda1	: is---ESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda2	: isnotESP,	fstab-has-goodEFI,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda4	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot

Partitions info (3/3): _________________________________________________________

sda1	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda
sda2	: not--sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sda
sda4	: maybesepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda

fdisk -l (filtered): ___________________________________________________________

Disk sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk identifier: 9BE00FD9-248B-4EB8-B46A-333AC41C66CD
           Start        End    Sectors   Size Type
sda1        2048    1050623    1048576   512M EFI System
sda2     1050624   40112127   39061504  18.6G Linux filesystem
sda3  1945712640 1953523711    7811072   3.7G Linux swap
sda4    40112128 1945712639 1905600512 908.7G Linux filesystem
Partition table entries are not in disk order.
Disk sdb: 3.72 GiB, 3997171712 bytes, 7806976 sectors
Disk identifier: 7D7473EA-FCE2-4E11-B09B-A49D0A25CE4C
        Start     End Sectors  Size Type
sdb1       64 4775311 4775248  2.3G Microsoft basic data
sdb2  4775312 4783807    8496  4.1M EFI System
sdb3  4784128 7806912 3022785  1.4G Linux filesystem

parted -lm (filtered): _________________________________________________________

sda:1000GB:scsi:512:4096:gpt:ATA ST1000LM035-1RK1:;
1:1049kB:538MB:537MB:fat32:EFI System Partition:boot, esp;
2:538MB:20.5GB:20.0GB:ext4::;
4:20.5GB:996GB:976GB:ext4::;
3:996GB:1000GB:3999MB:linux-swap(v1)::swap;
sdb:3997MB:scsi:512:512:gpt: USB DISK Pro:;
1:32.8kB:2445MB:2445MB::ISO9660:hidden, msftdata;
2:2445MB:2449MB:4350kB::Appended2:boot, esp;
3:2449MB:3997MB:1548MB:ext4::;

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL                         PARTLABEL
sda                                                                                                                     
├─sda1 vfat     C3E8-0C68                            6ca085f9-6787-4d89-8daf-e1c638a6a5a7                               EFI System Partition
├─sda2 ext4     fba1695b-e0a1-433c-a0f6-2c5c122acac3 84d2a2fc-9e36-4bc7-92d4-e5cdf2061163                               
├─sda3 swap     cd29ac08-9f85-45e9-ba9d-fafef8346b64 6398d480-fbe0-4a0e-bec3-b535612ba3fb                               
└─sda4 ext4     c786c0c3-1d0e-46e7-9987-e2f3b0dfda93 1de8c5b3-425a-4805-949c-d066f68da4e9                               
sdb    iso9660  2022-07-26-15-24-44-00                                                    Linux Mint 21 Cinnamon 64-bit 
├─sdb1 iso9660  2022-07-26-15-24-44-00               7d7473ea-fce2-4e11-b09a-a49d0a25ce4c Linux Mint 21 Cinnamon 64-bit ISO9660
├─sdb2 vfat     8D6C-A9F8                            7d7473ea-fce2-4e11-b099-a49d0a25ce4c ESP                           Appended2
└─sdb3 ext4     99cb0581-4b75-4de0-b8fe-75993f39b25c 7e99bfb7-e9ae-5944-bf03-73497210b7a7 writable                      

Mount points (filtered): _______________________________________________________

                                                             Avail Use% Mounted on
/dev/disk/by-label/writable[/install-logs-2022-08-13.0/log]   1.3G   0% /var/log
/dev/sda1                                                   470.9M   8% /mnt/boot-sav/sda1
/dev/sda2                                                     7.3G  55% /mnt/boot-sav/sda2
/dev/sda4                                                   102.7G  83% /mnt/boot-sav/sda4
/dev/sdb1                                                        0 100% /cdrom

Mount options (filtered): ______________________________________________________

/dev/disk/by-label/writable[/install-logs-2022-08-13.0/log] ext4            rw,relatime
/dev/sda1                                                   vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
/dev/sda2                                                   ext4            rw,relatime
/dev/sda4                                                   ext4            rw,relatime
/dev/sdb1                                                   iso9660         ro,noatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8

===================== sda1/efi/ubuntu/grub.cfg (filtered) ======================

search.fs_uuid fba1695b-e0a1-433c-a0f6-2c5c122acac3 root hd0,gpt2 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

====================== sda2/boot/grub/grub.cfg (filtered) ======================

Linux Mint 21 Cinnamon   fba1695b-e0a1-433c-a0f6-2c5c122acac3
Linux Mint 21 Cinnamon, with Linux 5.15.0-46-generic   fba1695b-e0a1-433c-a0f6-2c5c122acac3
Linux Mint 21 Cinnamon, with Linux 5.15.0-43-generic   fba1695b-e0a1-433c-a0f6-2c5c122acac3
### END /etc/grub.d/30_os-prober ###
UEFI Firmware Settings   uefi-firmware
### END /etc/grub.d/30_uefi-firmware ###

========================== sda2/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda2 during installation
UUID=fba1695b-e0a1-433c-a0f6-2c5c122acac3 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda1 during installation
UUID=C3E8-0C68  /boot/efi       vfat    umask=0077      0       1
# /home was on /dev/sda4 during installation
UUID=c786c0c3-1d0e-46e7-9987-e2f3b0dfda93 /home           ext4    defaults        0       2
# swap was on /dev/sda3 during installation
UUID=cd29ac08-9f85-45e9-ba9d-fafef8346b64 none            swap    sw              0       0

======================= sda2/etc/default/grub (filtered) =======================

GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=menu
GRUB_TIMEOUT=5
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 splash pci=noaer ipv6.disable=1"
GRUB_CMDLINE_LINUX="ipv6.disable=1"

==================== sda2: Location of files loaded by Grub ====================

           GiB - GB             File                                 Fragment(s)
  13.745159149 = 14.758752256   boot/grub/grub.cfg                             1
   9.612865448 = 10.321735680   boot/vmlinuz                                   2
   9.612865448 = 10.321735680   boot/vmlinuz-5.15.0-43-generic                 2
   8.128902435 = 8.728342528    boot/vmlinuz-5.15.0-46-generic                 1
   8.128902435 = 8.728342528    boot/vmlinuz.old                               1
   5.469963074 = 5.873328128    boot/initrd.img-5.15.0-43-generic              1
   9.604049683 = 10.312269824   boot/initrd.img-5.15.0-46-generic              1
   9.604049683 = 10.312269824   boot/initrd.img.old                            1

===================== sda2: ls -l /etc/grub.d/ (filtered) ======================

-rwxr-xr-x 1 root root   224 Aug 12 17:13 06_notpm
-rwxr-xr-x 1 root root 18683 Apr 15 21:50 10_linux
-rwxr-xr-x 1 root root 43031 Apr 15 21:50 10_linux_zfs
-rwxr-xr-x 1 root root 14180 Apr 15 21:50 20_linux_xen
-rwxr-xr-x 1 root root 13369 Apr 15 21:50 30_os-prober
-rwxr-xr-x 1 root root  1372 Apr 15 21:50 30_uefi-firmware
-rwxr-xr-x 1 root root   700 Feb 19 13:21 35_fwupd
-rwxr-xr-x 1 root root   214 Apr 15 21:50 40_custom
-rwxr-xr-x 1 root root   215 Apr 15 21:50 41_custom

=========================== sda2/etc/grub.d/06_notpm ===========================

#!/bin/sh
exec tail -n +3 $0
# 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.
rmmod tpm

=========================== sda2/etc/grub.d/35_fwupd ===========================

#! /bin/sh
# SPDX-License-Identifier: LGPL-2.1+
set -e
[ -d ${pkgdatadir:?} ]
# shellcheck source=/dev/null
. "$pkgdatadir/grub-mkconfig_lib"
if [ -f /var/lib/fwupd/uefi_capsule.conf ] &&
   ls /sys/firmware/efi/efivars/fwupd-*-0abba7dc-e516-4167-bbf5-4d9d1c739416 1>/dev/null 2>&1; then
      . /var/lib/fwupd/uefi_capsule.conf
      if [ "${EFI_PATH}" != "" ] && [ "${ESP}" != "" ]; then
      echo "Adding Linux Firmware Updater entry" >&2
cat << EOF
menuentry 'Linux Firmware Updater' \$menuentry_id_option 'fwupd' {
EOF
      ${grub_probe:?}
      prepare_grub_to_access_device '`${grub_probe} --target=device \${ESP}` | sed -e "s/^/\t/"'
cat << EOF
	chainloader ${EFI_PATH}
}
EOF
      fi
fi



Suggested repair: ______________________________________________________________

The default repair of the Boot-Repair utility would reinstall the grub-efi of
sda2,
using the following options:  sda1/boot/efi
Additional repair would be performed: unhide-bootmenu-10s use-standard-efi-file restore-efi-backups

Final advice in case of suggested repair: ______________________________________

Please do not forget to make your UEFI firmware boot on the Linux Mint 21 Vanessa (21) entry (sda1/efi/****/grub****.efi (**** will be updated in the final message) file) !

PiperKev
Level 2
Level 2
Posts: 60
Joined: Thu Mar 17, 2011 3:44 pm

Re: GRUB Prompt after LM21 clean install

Post by PiperKev »

FWIW, this is my efibootmgr -v output:

Code: Select all

BootCurrent: 0003
Timeout: 0 seconds
BootOrder: 0003,0000
Boot0000* UEFI ST1000LM035-1RK172 WQ99Z4B6	PciRoot(0x0)/Pci(0x17,0x0)/Sata(1,32768,0)/HD(1,GPT,6ca085f9-6787-4d89-8daf-e1c638a6a5a7,0x800,0x100000)/File(\EFI\Boot\BootX64.efi)N.....YM....R,Y.
Boot0003* ubuntu	HD(1,GPT,6ca085f9-6787-4d89-8daf-e1c638a6a5a7,0x800,0x100000)/File(\EFI\ubuntu\shimx64.efi)
PiperKev
Level 2
Level 2
Posts: 60
Joined: Thu Mar 17, 2011 3:44 pm

Re: GRUB Prompt after LM21 clean install

Post by PiperKev »

Reinstalling GRUB did not help. I'm really at a loss here!
User avatar
MiZoG
Level 8
Level 8
Posts: 2356
Joined: Fri Jan 26, 2018 8:30 pm
Location: Athens, Greece

Re: GRUB Prompt after LM21 clean install

Post by MiZoG »

Did you create a new disk partition table or you recycle the partitions you had on your previous Mint installation?
PiperKev
Level 2
Level 2
Posts: 60
Joined: Thu Mar 17, 2011 3:44 pm

Re: GRUB Prompt after LM21 clean install

Post by PiperKev »

MiZoG wrote: Mon Aug 15, 2022 10:53 am Did you create a new disk partition table or you recycle the partitions you had on your previous Mint installation?
I recycled the existing partitions, formatting root but leaving the others the same.
PiperKev
Level 2
Level 2
Posts: 60
Joined: Thu Mar 17, 2011 3:44 pm

Re: GRUB Prompt after LM21 clean install

Post by PiperKev »

I ran boot-repair from my LM21 USB stick, and I've rebooted it twice so far with no GRUB prompt. Maybe it fixed it? Thanks to everyone who helped! :lol:

Anyway, here's my boot-repair report after the repair:

Code: Select all

boot-repair-4ppa200                                              [20220816_0041]

============================= Boot Repair Summary ==============================






Recommended repair: ____________________________________________________________

The default repair of the Boot-Repair utility will reinstall the grub-efi of
sda2,
using the following options:  sda1/boot/efi
Additional repair will be performed: unhide-bootmenu-10s use-standard-efi-file restore-efi-backups


rm /mnt/boot-sav/sda1/efi/Boot/bootx64.efi
mv /mnt/boot-sav/sda1/efi/Boot/bkpbootx64.efi /mnt/boot-sav/sda1/efi/Boot/bootx64.efi
Mount sda1 on /mnt/boot-sav/sda2/boot/efi

Unhide GRUB boot menu in sda2/etc/default/grub

======================== Reinstall the grub-efi of sda2 ========================

chroot /mnt/boot-sav/sda2 grub-install --version
grub-install (GRUB) 2.06-2ubuntu7
modprobe: FATAL: Module efivars not found in directory /lib/modules/5.15.0-41-generic
chroot /mnt/boot-sav/sda2 modprobe efivars

chroot /mnt/boot-sav/sda2 efibootmgr -v before grub install
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0003,0000,0001
Boot0000* UEFI ST1000LM035-1RK172 WQ99Z4B6	PciRoot(0x0)/Pci(0x17,0x0)/Sata(1,32768,0)/HD(1,GPT,6ca085f9-6787-4d89-8daf-e1c638a6a5a7,0x800,0x100000)/File(EFIBootBootX64.efi)N.....YM....R,Y.
Boot0001* UEFI USB DISK Pro 07B9170B29C56169	PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/HD(2,GPT,7d7473ea-fce2-4e11-b099-a49d0a25ce4c,0x48dd90,0x2130)/File(EFIBootBootX64.efi)N.....YM....R,Y.
Boot0003* ubuntu	HD(1,GPT,6ca085f9-6787-4d89-8daf-e1c638a6a5a7,0x800,0x100000)/File(EFIubuntushimx64.efi)

chroot /mnt/boot-sav/sda2 uname -r
5.15.0-41-generic

chroot /mnt/boot-sav/sda2 grub-install --efi-directory=/boot/efi --target=x86_64-efi
Installing for x86_64-efi platform.
grub-install: warning: EFI variables cannot be set on this system.
grub-install: warning: You will have to complete the GRUB setup manually.
Installation finished. No error reported.
df /dev/sda1
mv /mnt/boot-sav/sda2/boot/efi/EFI/Boot/bootx64.efi /mnt/boot-sav/sda2/boot/efi/EFI/Boot/bkpbootx64.efi
cp /mnt/boot-sav/sda2/boot/efi/efi/ubuntu/grubx64.efi /mnt/boot-sav/sda2/boot/efi/EFI/Boot/bootx64.efi

chroot /mnt/boot-sav/sda2 grub-install --efi-directory=/boot/efi --target=x86_64-efi
Installing for x86_64-efi platform.
grub-install: warning: EFI variables cannot be set on this system.
grub-install: warning: You will have to complete the GRUB setup manually.
Installation finished. No error reported.

chroot /mnt/boot-sav/sda2 efibootmgr -v after grub install
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0003,0000,0001
Boot0000* UEFI ST1000LM035-1RK172 WQ99Z4B6	PciRoot(0x0)/Pci(0x17,0x0)/Sata(1,32768,0)/HD(1,GPT,6ca085f9-6787-4d89-8daf-e1c638a6a5a7,0x800,0x100000)/File(EFIBootBootX64.efi)N.....YM....R,Y.
Boot0001* UEFI USB DISK Pro 07B9170B29C56169	PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/HD(2,GPT,7d7473ea-fce2-4e11-b099-a49d0a25ce4c,0x48dd90,0x2130)/File(EFIBootBootX64.efi)N.....YM....R,Y.
Boot0003* ubuntu	HD(1,GPT,6ca085f9-6787-4d89-8daf-e1c638a6a5a7,0x800,0x100000)/File(EFIubuntushimx64.efi)
Warning: NVram was not modified.

chroot /mnt/boot-sav/sda2 update-grub
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/50_linuxmint.cfg'
Sourcing file `/etc/default/grub.d/60_mint-theme.cfg'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found theme: /boot/grub/themes/linuxmint/theme.txt
Found linux image: /boot/vmlinuz-5.15.0-46-generic
Found initrd image: /boot/initrd.img-5.15.0-46-generic
Found linux image: /boot/vmlinuz-5.15.0-43-generic
Found initrd image: /boot/initrd.img-5.15.0-43-generic
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.

Unhide GRUB boot menu in sda2/boot/grub/grub.cfg

Boot successfully repaired.

You can now reboot your computer.
Please do not forget to make your UEFI firmware boot on the Linux Mint 21 Vanessa (21) entry (sda1/efi/ubuntu/grubx64.efi file) !


============================ Boot Info After Repair ============================

 => No boot loader is installed in the MBR of /dev/sda.

sda1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        /efi/BOOT/bkpbootx64.efi /efi/BOOT/bootx64.efi 
                       /efi/BOOT/fbx64.efi /efi/BOOT/grubx64.efi 
                       /efi/BOOT/mmx64.efi /efi/ubuntu/grubx64.efi 
                       /efi/ubuntu/mmx64.efi /efi/ubuntu/shimx64.efi 
                       /efi/ubuntu/grub.cfg

sda2: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Linux Mint 21
    Boot files:        /boot/grub/grub.cfg /etc/fstab /etc/default/grub

sda3: __________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info: 

sda4: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sdb: ___________________________________________________________________________

    File system:       iso9660
    Boot sector type:  Grub2 (v1.99-2.00)
    Boot sector info:  Grub2 (v1.99-2.00) is installed in the boot sector of 
                       sdb and looks at sector 0 of the same hard drive for 
                       core.img, but core.img can not be found at this 
                       location.
    Mounting failed:   mount: /mnt/BootInfo/FD/sdb: /dev/sdb already mounted or mount point busy.


================================ 1 OS detected =================================

OS#1:   Linux Mint 21 Vanessa (21) on sda2

================================ Host/Hardware =================================

CPU architecture: 64-bit
Video: Iris Plus Graphics G1 (Ice Lake) from Intel Corporation
Live-session OS is Linuxmint 64-bit (Linux Mint 21, vanessa, x86_64)

===================================== UEFI =====================================

BIOS/UEFI firmware: 1.23.0(1.23) from Dell Inc.
The firmware is EFI-compatible, and is set in EFI-mode for this live-session.
SecureBoot disabled - SecureBoot disabled - Please report this message to boot.repair@gmail.com.
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0003,0000,0001
Boot0000* UEFI ST1000LM035-1RK172 WQ99Z4B6	PciRoot(0x0)/Pci(0x17,0x0)/Sata(1,32768,0)/HD(1,GPT,6ca085f9-6787-4d89-8daf-e1c638a6a5a7,0x800,0x100000)/File(\EFI\Boot\BootX64.efi)N.....YM....R,Y.
Boot0001* UEFI USB DISK Pro 07B9170B29C56169	PciRoot(0x0)/Pci(0x14,0x0)/USB(1,0)/HD(2,GPT,7d7473ea-fce2-4e11-b099-a49d0a25ce4c,0x48dd90,0x2130)/File(\EFI\Boot\BootX64.efi)N.....YM....R,Y.
Boot0003* ubuntu	HD(1,GPT,6ca085f9-6787-4d89-8daf-e1c638a6a5a7,0x800,0x100000)/File(\EFI\ubuntu\shimx64.efi)

728124f6ec8e22fbdbe7034812c81b95   sda1/BOOT/bkpbootx64.efi
728124f6ec8e22fbdbe7034812c81b95   sda1/BOOT/bootx64.efi
c152ec201c37b6e97bbc2207e49d1271   sda1/BOOT/fbx64.efi
8ed07d5ee4e5e1534bcf64037b7589ff   sda1/BOOT/grubx64.efi
fdafb5eece6caeccb788c946a28e6872   sda1/BOOT/mmx64.efi
f62c28d9b477b6a1a7b1c991b2b6637d   sda1/ubuntu/grubx64.efi
fdafb5eece6caeccb788c946a28e6872   sda1/ubuntu/mmx64.efi
728124f6ec8e22fbdbe7034812c81b95   sda1/ubuntu/shimx64.efi

============================= Drive/Partition Info =============================

Disks info: ____________________________________________________________________

sda	: is-GPT,	no-BIOSboot,	has---ESP, 	not-usb,	not-mmc, has-os,	no-wind,	2048 sectors * 512 bytes

Partitions info (1/3): _________________________________________________________

sda1	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	not-far
sda2	: is-os,	64, apt-get,	signed grub-pc grub-efi ,	grub2,	grub-install,	grubenv-ok,	update-grub,	not-far
sda4	: no-os,	32, nopakmgr,	no-docgrub,	nogrub,	nogrubinstall,	no-grubenv,	noupdategrub,	farbios

Partitions info (2/3): _________________________________________________________

sda1	: is---ESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda2	: isnotESP,	fstab-has-goodEFI,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot
sda4	: isnotESP,	part-has-no-fstab,	no-nt,	no-winload,	no-recov-nor-hid,	no-bmgr,	notwinboot

Partitions info (3/3): _________________________________________________________

sda1	: not--sepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda
sda2	: not--sepboot,	with-boot,	fstab-without-boot,	not-sep-usr,	with--usr,	fstab-without-usr,	std-grub.d,	sda
sda4	: maybesepboot,	no---boot,	part-has-no-fstab,	not-sep-usr,	no---usr,	part-has-no-fstab,	no--grub.d,	sda

fdisk -l (filtered): ___________________________________________________________

Disk sda: 931.51 GiB, 1000204886016 bytes, 1953525168 sectors
Disk identifier: 9BE00FD9-248B-4EB8-B46A-333AC41C66CD
           Start        End    Sectors   Size Type
sda1        2048    1050623    1048576   512M EFI System
sda2     1050624   40112127   39061504  18.6G Linux filesystem
sda3  1945712640 1953523711    7811072   3.7G Linux swap
sda4    40112128 1945712639 1905600512 908.7G Linux filesystem
Partition table entries are not in disk order.
Disk sdb: 3.72 GiB, 3997171712 bytes, 7806976 sectors
Disk identifier: 7D7473EA-FCE2-4E11-B09B-A49D0A25CE4C
        Start     End Sectors  Size Type
sdb1       64 4775311 4775248  2.3G Microsoft basic data
sdb2  4775312 4783807    8496  4.1M EFI System
sdb3  4784128 7806912 3022785  1.4G Linux filesystem

parted -lm (filtered): _________________________________________________________

sda:1000GB:scsi:512:4096:gpt:ATA ST1000LM035-1RK1:;
1:1049kB:538MB:537MB:fat32:EFI System Partition:boot, esp;
2:538MB:20.5GB:20.0GB:ext4::;
4:20.5GB:996GB:976GB:ext4::;
3:996GB:1000GB:3999MB:linux-swap(v1)::swap;
sdb:3997MB:scsi:512:512:gpt: USB DISK Pro:;
1:32.8kB:2445MB:2445MB::ISO9660:hidden, msftdata;
2:2445MB:2449MB:4350kB::Appended2:boot, esp;
3:2449MB:3997MB:1548MB:ext4::;

blkid (filtered): ______________________________________________________________

NAME   FSTYPE   UUID                                 PARTUUID                             LABEL                         PARTLABEL
sda                                                                                                                     
├─sda1 vfat     C3E8-0C68                            6ca085f9-6787-4d89-8daf-e1c638a6a5a7                               EFI System Partition
├─sda2 ext4     fba1695b-e0a1-433c-a0f6-2c5c122acac3 84d2a2fc-9e36-4bc7-92d4-e5cdf2061163                               
├─sda3 swap     cd29ac08-9f85-45e9-ba9d-fafef8346b64 6398d480-fbe0-4a0e-bec3-b535612ba3fb                               
└─sda4 ext4     c786c0c3-1d0e-46e7-9987-e2f3b0dfda93 1de8c5b3-425a-4805-949c-d066f68da4e9                               
sdb    iso9660  2022-07-26-15-24-44-00                                                    Linux Mint 21 Cinnamon 64-bit 
├─sdb1 iso9660  2022-07-26-15-24-44-00               7d7473ea-fce2-4e11-b09a-a49d0a25ce4c Linux Mint 21 Cinnamon 64-bit ISO9660
├─sdb2 vfat     8D6C-A9F8                            7d7473ea-fce2-4e11-b099-a49d0a25ce4c ESP                           Appended2
└─sdb3 ext4     64a481cc-e6cf-4856-b2a2-19ee2582df61 05af1615-e8b7-424e-bb28-2bde5bff8545 writable                      

Mount points (filtered): _______________________________________________________

                                                             Avail Use% Mounted on
/dev/disk/by-label/writable[/install-logs-2022-08-16.0/log]   1.3G   0% /var/log
/dev/sda1                                                   471.2M   8% /mnt/boot-sav/sda1
/dev/sda2                                                     5.8G  63% /mnt/boot-sav/sda2
/dev/sda4                                                   101.4G  84% /mnt/boot-sav/sda4
/dev/sdb1                                                        0 100% /cdrom

Mount options (filtered): ______________________________________________________

/dev/disk/by-label/writable[/install-logs-2022-08-16.0/log] ext4            rw,relatime
/dev/sda1                                                   vfat            rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro
/dev/sda2                                                   ext4            rw,relatime
/dev/sda4                                                   ext4            rw,relatime
/dev/sdb1                                                   iso9660         ro,noatime,nojoliet,check=s,map=n,blocksize=2048,iocharset=utf8

===================== sda1/efi/ubuntu/grub.cfg (filtered) ======================

search.fs_uuid fba1695b-e0a1-433c-a0f6-2c5c122acac3 root hd0,gpt2 
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

====================== sda2/boot/grub/grub.cfg (filtered) ======================

Ubuntu   fba1695b-e0a1-433c-a0f6-2c5c122acac3
Ubuntu, with Linux 5.15.0-46-generic   fba1695b-e0a1-433c-a0f6-2c5c122acac3
Ubuntu, with Linux 5.15.0-43-generic   fba1695b-e0a1-433c-a0f6-2c5c122acac3
### END /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_uefi-firmware ###

========================== sda2/etc/fstab (filtered) ===========================

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda2 during installation
UUID=fba1695b-e0a1-433c-a0f6-2c5c122acac3 /               ext4    errors=remount-ro 0       1
# /boot/efi was on /dev/sda1 during installation
UUID=C3E8-0C68  /boot/efi       vfat    umask=0077      0       1
# /home was on /dev/sda4 during installation
UUID=c786c0c3-1d0e-46e7-9987-e2f3b0dfda93 /home           ext4    defaults        0       2
# swap was on /dev/sda3 during installation
UUID=cd29ac08-9f85-45e9-ba9d-fafef8346b64 none            swap    sw              0       0

======================= sda2/etc/default/grub (filtered) =======================

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="loglevel=3 splash pci=noaer ipv6.disable=1"
GRUB_CMDLINE_LINUX="ipv6.disable=1"
GRUB_DISABLE_OS_PROBER=false

==================== sda2: Location of files loaded by Grub ====================

           GiB - GB             File                                 Fragment(s)
            ?? = ??             boot/grub/grub.cfg                             1
   9.612865448 = 10.321735680   boot/vmlinuz                                   2
   9.612865448 = 10.321735680   boot/vmlinuz-5.15.0-43-generic                 2
   8.128902435 = 8.728342528    boot/vmlinuz-5.15.0-46-generic                 1
   8.128902435 = 8.728342528    boot/vmlinuz.old                               1
   5.469963074 = 5.873328128    boot/initrd.img-5.15.0-43-generic              1
   9.604049683 = 10.312269824   boot/initrd.img-5.15.0-46-generic              1
   9.604049683 = 10.312269824   boot/initrd.img.old                            1

===================== sda2: ls -l /etc/grub.d/ (filtered) ======================

-rwxr-xr-x 1 root root   224 Aug 12 17:13 06_notpm
-rwxr-xr-x 1 root root 18683 Apr 15 21:50 10_linux
-rwxr-xr-x 1 root root 43031 Apr 15 21:50 10_linux_zfs
-rwxr-xr-x 1 root root 14180 Apr 15 21:50 20_linux_xen
-rwxr-xr-x 1 root root 13369 Apr 15 21:50 30_os-prober
-rwxr-xr-x 1 root root  1372 Apr 15 21:50 30_uefi-firmware
-rwxr-xr-x 1 root root   700 Feb 19 13:21 35_fwupd
-rwxr-xr-x 1 root root   214 Apr 15 21:50 40_custom
-rwxr-xr-x 1 root root   215 Apr 15 21:50 41_custom

=========================== sda2/etc/grub.d/06_notpm ===========================

#!/bin/sh
exec tail -n +3 $0
# 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.
rmmod tpm

=========================== sda2/etc/grub.d/35_fwupd ===========================

#! /bin/sh
# SPDX-License-Identifier: LGPL-2.1+
set -e
[ -d ${pkgdatadir:?} ]
# shellcheck source=/dev/null
. "$pkgdatadir/grub-mkconfig_lib"
if [ -f /var/lib/fwupd/uefi_capsule.conf ] &&
   ls /sys/firmware/efi/efivars/fwupd-*-0abba7dc-e516-4167-bbf5-4d9d1c739416 1>/dev/null 2>&1; then
      . /var/lib/fwupd/uefi_capsule.conf
      if [ "${EFI_PATH}" != "" ] && [ "${ESP}" != "" ]; then
      echo "Adding Linux Firmware Updater entry" >&2
cat << EOF
menuentry 'Linux Firmware Updater' \$menuentry_id_option 'fwupd' {
EOF
      ${grub_probe:?}
      prepare_grub_to_access_device '`${grub_probe} --target=device \${ESP}` | sed -e "s/^/\t/"'
cat << EOF
	chainloader ${EFI_PATH}
}
EOF
      fi
fi
User avatar
antikythera
Level 15
Level 15
Posts: 5721
Joined: Thu Jul 02, 2020 12:52 pm
Location: Cymru

Re: GRUB Prompt after LM21 clean install

Post by antikythera »

yeah it's fixed now, enjoy your new mint!
I’ll tell you a DNS joke but be advised, it could take up to 24 hours for everyone to get it.
PiperKev
Level 2
Level 2
Posts: 60
Joined: Thu Mar 17, 2011 3:44 pm

Re: GRUB Prompt after LM21 clean install

Post by PiperKev »

Nope, boot-repair didn't fix it. Did another reboot and the GRUB prompt is back...
User avatar
Valsodar
Level 4
Level 4
Posts: 364
Joined: Thu Jul 19, 2018 11:30 pm
Location: Sofia, Bulgaria
Contact:

Re: GRUB Prompt after LM21 clean install

Post by Valsodar »

Judging by the way you describe it and the boot-repair report, I'd say you have booted the USB stick in UEFI mode (the PC's boot menu which usually comes after pressing F11). The UEFI mode creates additional files on the disk which then tell the computer where to look for grub and for the OS and also in order to boot that way, you gotta press F11 every time and choose the boot partition from that menu. But since your disk is still MBR, these files mess up the situation - your disk is MBR but nothing has been installed on that sector, hence the grub rescue. For the UEFI boot to work properly you need to make your disk GPT. But IMO GPT is pointless, especially in Linux (GPT is useful only for Windows cuz it's dumb and doesn't read an MBR partition larger than 2TB). So you can either convert the disk to GPT and then boot the installation again in UEFI mode (F11), or keep the disk MBR and boot the USB stick in USB mode at the F11 boot menu.
Core i7-4770, Palit GTX 1660 Ti, 32GB DDR3 RAM, Firefox, Arch LTS w/ Cinnamon 5.2.7
My Linux group on Telegram
Avatar & desktop: https://ibb.co/album/GFx0yV
User avatar
AndyMH
Level 21
Level 21
Posts: 13728
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: GRUB Prompt after LM21 clean install

Post by AndyMH »

Valsodar wrote: Tue Aug 16, 2022 6:32 pm But since your disk is still MBR, these files mess up the situation - your disk is MBR but nothing has been installed on that sector, hence the grub rescue.
Wrong:

Code: Select all

Drives:
  Local Storage: total: 931.51 GiB used: 755.19 GiB (81.1%)
  ID-1: /dev/sda vendor: Seagate model: ST1000LM035-1RK172 size: 931.51 GiB
    speed: 6.0 Gb/s type: HDD rpm: 5400 serial: <filter> rev: 1002 scheme: GPT
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
User avatar
Valsodar
Level 4
Level 4
Posts: 364
Joined: Thu Jul 19, 2018 11:30 pm
Location: Sofia, Bulgaria
Contact:

Re: GRUB Prompt after LM21 clean install

Post by Valsodar »

AndyMH wrote: Wed Aug 17, 2022 6:11 am scheme: GPT
In GPT installation mode there are .efi files that tell the computer where to look for the OS. In some cases the files are on the same partition as the OS, usually in /boot. With nothing written on the MBR of the disk and attempting to boot from legacy mode, you'll get a grub rescue message. :roll:
Core i7-4770, Palit GTX 1660 Ti, 32GB DDR3 RAM, Firefox, Arch LTS w/ Cinnamon 5.2.7
My Linux group on Telegram
Avatar & desktop: https://ibb.co/album/GFx0yV
PiperKev
Level 2
Level 2
Posts: 60
Joined: Thu Mar 17, 2011 3:44 pm

Re: GRUB Prompt after LM21 clean install

Post by PiperKev »

Right, but what I get is the GRUB prompt, not grub rescue. I type "exit" and I get the GRUB menu and boot continues normally. I booted this morning, then had to reboot because it wasn't detecting my wireless network (It happens to me on occasion, it's just something I've learned to live with), and neither time did it give me the GRUB prompt, it just booted normally. There's no rhyme nor reason to when it happens, apparently. I DID run "sudo update-grub" between boots, so maybe THAT helped solve it?
Valsodar wrote: Wed Aug 17, 2022 8:11 am
AndyMH wrote: Wed Aug 17, 2022 6:11 am scheme: GPT
In GPT installation mode there are .efi files that tell the computer where to look for the OS. In some cases the files are on the same partition as the OS, usually in /boot. With nothing written on the MBR of the disk and attempting to boot from legacy mode, you'll get a grub rescue message. :roll:
bendipa
Level 5
Level 5
Posts: 581
Joined: Sat Jan 04, 2020 8:02 pm
Location: NW London. UK

Re: GRUB Prompt after LM21 clean install

Post by bendipa »

You shouldn't have much of a problem booting up from grub prompt, but there are a few questions that need asking. It looks like you installed Mint on sda2, and we can confirm that from the grub prompt. Once confirmed you should be able to boot up from a few commands at that prompt. And once booted you should be able to fix grub easily from there. Meanwhile I see 1 of your 3 Linux partitions, - sdb3 - about 1.5GB. Do you know what is on that?
Computer: Dell Vostro 470
Systems: Linux Mint 21.2 Xfce (Victoria), Manjaro 23.1 Xfce (Vulcan), Windows 10 (22H2) Pro.
PiperKev
Level 2
Level 2
Posts: 60
Joined: Thu Mar 17, 2011 3:44 pm

Re: GRUB Prompt after LM21 clean install

Post by PiperKev »

Yeah, I can boot fine after typing "exit" at the GRUB prompt, it's just annoying. sdb is the USB thumb drive I launched the Live session from to run boot-repair. sda is my HDD. My sda partitions are:

sda1: EFI
sda2: filesystem root
sda3: swap
sda4: /home
bendipa wrote: Wed Aug 17, 2022 9:11 am You shouldn't have much of a problem booting up from grub prompt, but there are a few questions that need asking. It looks like you installed Mint on sda2, and we can confirm that from the grub prompt. Once confirmed you should be able to boot up from a few commands at that prompt. And once booted you should be able to fix grub easily from there. Meanwhile I see 1 of your 3 Linux partitions, - sdb3 - about 1.5GB. Do you know what is on that?
User avatar
Valsodar
Level 4
Level 4
Posts: 364
Joined: Thu Jul 19, 2018 11:30 pm
Location: Sofia, Bulgaria
Contact:

Re: GRUB Prompt after LM21 clean install

Post by Valsodar »

I've never seen "GRUB prompt" in all the 7 years of using Linux, so I have no idea what that is. I thought you meant "GRUB rescue", I didn't know they were two different things.
Core i7-4770, Palit GTX 1660 Ti, 32GB DDR3 RAM, Firefox, Arch LTS w/ Cinnamon 5.2.7
My Linux group on Telegram
Avatar & desktop: https://ibb.co/album/GFx0yV
PiperKev
Level 2
Level 2
Posts: 60
Joined: Thu Mar 17, 2011 3:44 pm

Re: GRUB Prompt after LM21 clean install

Post by PiperKev »

Don't know how clear this pic is, but this is what I get when it happens:

Image

Valsodar wrote: Wed Aug 17, 2022 10:12 am I've never seen "GRUB prompt" in all the 7 years of using Linux, so I have no idea what that is. I thought you meant "GRUB rescue", I didn't know they were two different things.
bendipa
Level 5
Level 5
Posts: 581
Joined: Sat Jan 04, 2020 8:02 pm
Location: NW London. UK

Re: GRUB Prompt after LM21 clean install

Post by bendipa »

That sounds like it may be a config issue in the /etc/default/grub file. Normally when you get a grub prompt, you don't get to the grub menu by typing exit - unless you deliberately went to the grub prompt after reaching the menu first. Looking at your output you seem to have a couple of strange entries in there, at least ones I'm not familiar with. I'd try this first.

Run sudo xed /etc/default/grub In there is the line GRUB_CMDLINE_LINUX="ipv6.disable=1". Put a hash '#' sign (no quotes) in front of that line, then underneath that line enter GRUB_CMDLINE_LINUX="" (that's 2 double quotes together). Then save the file and run sudo update-grub.

Reboot. Does it still boot to the grub prompt?.
Computer: Dell Vostro 470
Systems: Linux Mint 21.2 Xfce (Victoria), Manjaro 23.1 Xfce (Vulcan), Windows 10 (22H2) Pro.
PiperKev
Level 2
Level 2
Posts: 60
Joined: Thu Mar 17, 2011 3:44 pm

Re: GRUB Prompt after LM21 clean install

Post by PiperKev »

I put those entries into /etc/default/grub to tie off my ipv6 since I occasionaly use a VPN and it doesn't mask my ipv6 address. The entry under GRUB_CMDLINE_LINUX may be redundant, though, so I did as you suggested. It rebooted straight to the GRUB menu, as it should! Keeping my fingers crossed through a few reboots that that was the fix!

bendipa wrote: Wed Aug 17, 2022 10:49 am That sounds like it may be a config issue in the /etc/default/grub file. Normally when you get a grub prompt, you don't get to the grub menu by typing exit - unless you deliberately went to the grub prompt after reaching the menu first. Looking at your output you seem to have a couple of strange entries in there, at least ones I'm not familiar with. I'd try this first.

Run sudo xed /etc/default/grub In there is the line GRUB_CMDLINE_LINUX="ipv6.disable=1". Put a hash '#' sign (no quotes) in front of that line, then underneath that line enter GRUB_CMDLINE_LINUX="" (that's 2 double quotes together). Then save the file and run sudo update-grub.

Reboot. Does it still boot to the grub prompt?.
Last edited by PiperKev on Thu Aug 18, 2022 8:54 am, edited 1 time in total.
PiperKev
Level 2
Level 2
Posts: 60
Joined: Thu Mar 17, 2011 3:44 pm

Re: GRUB Prompt after LM21 clean install

Post by PiperKev »

I've rebooted a few times today and not once has the GRUB prompt reared its ugly head, so I'm going to mark this as Solved. Thanks, everyone!

Cheers,
Kevin
Locked

Return to “Installation & Boot”