GRUB boots into CLI instead of menu

Can you post your complete /etc/default/grub.

Here’s my complete GRUB: View paste 4MEOO

Is some setting set wrong?

I’d first revert the change you made to GRUB_TIMEOUT and set it to 5 again (what it was)
update-grub
and see whether that has some effect

The file looks ok otherwise.



just FYI:

you uncommented
GRUB_DISABLE_OS_PROBER=false
the original was:
#GRUB_DISABLE_OS_PROBER=false

this had no effect because
this is the default already - you did not need to uncomment that - only if you wanted to change it to “true

I’d first revert the change you made to GRUB_TIMEOUT and set it to 5 again (what it was)
update-grub
and see whether that has some effect

The file looks ok otherwise.

No change after a grub-update and restart. Still need to manually write exit.

just FYI:

you uncommented
GRUB_DISABLE_OS_PROBER=false
the original was:
#GRUB_DISABLE_OS_PROBER=false

this had no effect because
this is the default already - you did not need to uncomment that - only if you wanted to change it to “true

I did not comment or uncomment any part of this file. I only changed the numbers of the first two lines.


Then you probably need to reinstall Grub2.

How do I do that?

mkay - for me (and in the .pacnew file I have) it is commented out
but I did not check this one with Manjaro - I’m at Arch (EOS) at the moment

doesn’t matter - was just some info and the line is ok in any case

so: please disregard/ignore what I said about that

This is what I get when I run the sudo update-grub command if it’s any help:

Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-6.1-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-6.1-x86_64.img
Found initrd fallback image: /boot/initramfs-6.1-x86_64-fallback.img
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Root filesystem isn't btrfs
If you think an error has occurred, please file a bug report at "https://github.com/Antynea/grub-btrfs"
Found memtest86+ image: /boot/memtest86+/memtest.bin
Found memtest86+ EFI image: /boot/memtest86+/memtest.efi
done

System info as well:

System:
  Kernel: 6.1.19-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.2.1
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.1-x86_64
    root=UUID=30b101f0-84c0-4963-8856-274804c75768 rw quiet splash
    resume=UUID=5d178c61-fac8-46ec-8b66-37f2b97fce07 udev.log_priority=3
  Desktop: KDE Plasma v: 5.26.5 tk: Qt v: 5.15.8 wm: kwin_x11 vt: 1 dm: SDDM
    Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Desktop Mobo: ASUSTeK model: TUF Z270 MARK 2 v: Rev 1.xx
    serial: <superuser required> UEFI-[Legacy]: American Megatrends v: 1301
    date: 03/14/2018
Battery:
  Device-1: hidpp_battery_2 model: Logitech G304 Lightspeed Wireless Gaming
    Mouse serial: <filter> charge: 100% (should be ignored) rechargeable: yes
    status: discharging
Memory:
  RAM: total: 15.5 GiB used: 3.7 GiB (23.9%)
  RAM Report: permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: model: Intel Core i7-7700K bits: 64 type: MT MCP arch: Kaby Lake
    gen: core 7 level: v3 note: check built: 2018 process: Intel 14nm family: 6
    model-id: 0x9E (158) stepping: 9 microcode: 0xF0
  Topology: cpus: 1x cores: 4 tpc: 2 threads: 8 smt: enabled cache:
    L1: 256 KiB desc: d-4x32 KiB; i-4x32 KiB L2: 1024 KiB desc: 4x256 KiB
    L3: 8 MiB desc: 1x8 MiB
  Speed (MHz): avg: 1650 high: 4200 min/max: 800/4600 scaling:
    driver: intel_pstate governor: powersave cores: 1: 800 2: 4200 3: 4200 4: 800
    5: 800 6: 800 7: 800 8: 800 bogomips: 67224
  Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat
    arch_capabilities arch_perfmon art avx avx2 bmi1 bmi2 bts clflush
    clflushopt cmov constant_tsc cpuid cpuid_fault cx16 cx8 de ds_cpl dtes64
    dtherm dts epb ept ept_ad erms est f16c flexpriority flush_l1d fma fpu
    fsgsbase fxsr ht hwp hwp_act_window hwp_epp hwp_notify ibpb ibrs ida
    intel_pt invpcid invpcid_single lahf_lm lm mca mce md_clear mmx monitor
    movbe mpx msr mtrr nonstop_tsc nopl nx pae pat pbe pcid pclmulqdq pdcm
    pdpe1gb pebs pge pln pni popcnt pse pse36 pti pts rdrand rdseed rdtscp
    rep_good sdbg sep smap smep ss ssbd sse sse2 sse4_1 sse4_2 ssse3 stibp
    syscall tm tm2 tpr_shadow tsc tsc_adjust tsc_deadline_timer vme vmx vnmi
    vpid x2apic xgetbv1 xsave xsavec xsaveopt xsaves xtopology xtpr
  Vulnerabilities:
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT
    vulnerable
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT vulnerable
  Type: retbleed mitigation: IBRS
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via
    prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer
    sanitization
  Type: spectre_v2 mitigation: IBRS, IBPB: conditional, STIBP: conditional,
    RSB filling, PBRSB-eIBRS: Not affected
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort mitigation: TSX disabled
Graphics:
  Device-1: Intel HD Graphics 630 vendor: ASUSTeK driver: i915 v: kernel
    arch: Gen-9.5 process: Intel 14nm built: 2016-20 ports: active: HDMI-A-1
    empty: HDMI-A-2 bus-ID: 00:02.0 chip-ID: 8086:5912 class-ID: 0300
  Device-2: Logitech Webcam C310 type: USB driver: snd-usb-audio,uvcvideo
    bus-ID: 1-8:10 chip-ID: 046d:081b class-ID: 0102 serial: <filter>
  Display: x11 server: X.Org v: 21.1.7 compositor: kwin_x11 driver: X:
    loaded: modesetting alternate: fbdev,vesa dri: iris gpu: i915 display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22")
    s-diag: 582mm (22.93")
  Monitor-1: HDMI-A-1 mapped: HDMI-1 model: Dell U2417H serial: <filter>
    built: 2018 res: 1920x1080 hz: 60 dpi: 93 gamma: 1.2
    size: 527x296mm (20.75x11.65") diag: 604mm (23.8") ratio: 16:9 modes:
    max: 1920x1080 min: 720x400
  API: OpenGL v: 4.6 Mesa 22.3.5 renderer: Mesa Intel HD Graphics 630 (KBL
    GT2) direct-render: Yes
Audio:
  Device-1: Intel 200 Series PCH HD Audio vendor: ASUSTeK driver: snd_hda_intel
    bus-ID: 1-8:10 v: kernel bus-ID: 00:1f.3 chip-ID: 046d:081b class-ID: 0102
    chip-ID: 8086:a2f0 class-ID: 0403 serial: <filter>
  Device-2: Logitech Webcam C310 type: USB driver: snd-usb-audio,uvcvideo
  Sound API: ALSA v: k6.1.19-1-MANJARO running: yes
  Sound Server-1: JACK v: 1.9.22 running: no
  Sound Server-2: PulseAudio v: 16.1 running: yes
  Sound Server-3: PipeWire v: 0.3.65 running: yes
Network:
  Device-1: Intel Ethernet I219-V vendor: ASUSTeK driver: e1000e v: kernel
    port: N/A bus-ID: 00:1f.6 chip-ID: 8086:15b8 class-ID: 0200
  IF: enp0s31f6 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IP v4: <filter> type: dynamic noprefixroute scope: global
    broadcast: <filter>
  IP v6: <filter> type: noprefixroute scope: link
  WAN IP: <filter>
Bluetooth:
  Device-1: Cambridge Silicon Radio Bluetooth Dongle (HCI mode) type: USB
    driver: btusb v: 0.8 bus-ID: 1-1.4:17 chip-ID: 0a12:0001 class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 2 state: up address: see --recommends
Logical:
  Message: No logical block device data found.
RAID:
  Message: No RAID data found.
Drives:
  Local Storage: total: 6.6 TiB used: 3.17 TiB (48.0%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Western Digital
    model: WDS100T3X0C-00SJG0 size: 931.51 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: 111110WD temp: 49.9 C scheme: GPT
  ID-2: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 850 EVO M.2 250GB
    size: 232.89 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
    type: SSD serial: <filter> rev: 1B6Q scheme: MBR
  ID-3: /dev/sdb maj-min: 8:16 vendor: Western Digital
    model: WD10EZEX-21WN4A0 size: 931.51 GiB block-size: physical: 4096 B
    logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 7200 serial: <filter>
    rev: 1A01 scheme: GPT
  ID-4: /dev/sdc maj-min: 8:32 type: USB vendor: Seagate model: BUP Slim RD
    size: 931.51 GiB block-size: physical: 4096 B logical: 512 B type: N/A
    serial: <filter> rev: 0304 scheme: MBR
  ID-5: /dev/sdd maj-min: 8:48 type: USB vendor: Western Digital
    model: WD40NDZW-11MR8S1 size: 3.64 TiB block-size: physical: 4096 B
    logical: 512 B type: HDD rpm: 5400 serial: <filter> rev: 4008 scheme: GPT
  Message: No optical or floppy data found.
Partition:
  ID-1: / raw-size: 215.84 GiB size: 211.39 GiB (97.94%)
    used: 27.57 GiB (13.0%) fs: ext4 dev: /dev/sda1 maj-min: 8:1 label: N/A
    uuid: 30b101f0-84c0-4963-8856-274804c75768
  ID-2: /mnt/Lord Lance raw-size: 3.64 TiB size: 3.64 TiB (100.00%)
    used: 3.14 TiB (86.3%) fs: ntfs dev: /dev/sdd1 maj-min: 8:49
    label: Lord Lance uuid: A2F647BFF6479309
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 17.05 GiB used: 0 KiB (0.0%)
    priority: -2 dev: /dev/sda2 maj-min: 8:2 label: swap
    uuid: 5d178c61-fac8-46ec-8b66-37f2b97fce07
Unmounted:
  ID-1: /dev/nvme0n1p1 maj-min: 259:1 size: 100 MiB fs: vfat label: N/A
    uuid: C4C9-FCA3
  ID-2: /dev/nvme0n1p2 maj-min: 259:2 size: 16 MiB fs: <superuser required>
    label: N/A uuid: N/A
  ID-3: /dev/nvme0n1p3 maj-min: 259:3 size: 930.9 GiB fs: ntfs label: N/A
    uuid: 9E50D3D450D3B0EF
  ID-4: /dev/nvme0n1p4 maj-min: 259:4 size: 509 MiB fs: ntfs label: N/A
    uuid: BE04EE2204EDDE01
  ID-5: /dev/sdb1 maj-min: 8:17 size: 931.51 GiB fs: ntfs label: Local Disk
    uuid: 406096B36096AF62
  ID-6: /dev/sdc1 maj-min: 8:33 size: 931.51 GiB fs: ntfs
    label: Seagate Backup uuid: 4E72C35E72C34983
USB:
  Hub-1: 1-0:1 info: Hi-speed hub with single TT ports: 16 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Hub-2: 1-1:15 info: Microchip (formerly SMSC) USB2137B ports: 7 rev: 2.1
    speed: 480 Mb/s chip-ID: 0424:2137 class-ID: 0900
  Device-1: 1-1.3:16 info: Logitech USB Receiver type: Keyboard,Mouse,HID
    driver: logitech-djreceiver,usbhid interfaces: 3 rev: 2.0 speed: 12 Mb/s
    power: 98mA chip-ID: 046d:c53f class-ID: 0300
  Device-2: 1-1.4:17 info: Cambridge Silicon Radio Bluetooth Dongle (HCI
    mode) type: Bluetooth driver: btusb interfaces: 2 rev: 2.0 speed: 12 Mb/s
    power: 100mA chip-ID: 0a12:0001 class-ID: e001
  Device-3: 1-1.5:18 info: Microchip U2417H_0B29_15083001 type: HID
    driver: hid-generic,usbhid interfaces: 1 rev: 2.0 speed: 12 Mb/s power: 100mA
    chip-ID: 04d8:0b29 class-ID: 0300
  Device-4: 1-3:3 info: Logitech Keyboard K120 type: Keyboard,HID
    driver: hid-generic,usbhid interfaces: 2 rev: 1.1 speed: 1.5 Mb/s power: 90mA
    chip-ID: 046d:c31c class-ID: 0300
  Device-5: 1-8:10 info: Logitech Webcam C310 type: Video,Audio
    driver: snd-usb-audio,uvcvideo interfaces: 4 rev: 2.0 speed: 480 Mb/s
    power: 500mA chip-ID: 046d:081b class-ID: 0102 serial: <filter>
  Device-6: 1-9:8 info: Corsair H100iRGBPROXT type: Keyboard
    driver: hid-generic,usbhid interfaces: 1 rev: 2.0 speed: 12 Mb/s power: 100mA
    chip-ID: 1b1c:0c20 class-ID: 0300
  Device-7: 1-14:9 info: Seagate RSS LLC Backup Plus Portable Drive
    type: Mass Storage driver: uas interfaces: 1 rev: 2.1 speed: 480 Mb/s
    power: 100mA chip-ID: 0bc2:ab24 class-ID: 0806 serial: <filter>
  Hub-3: 2-0:1 info: Super-speed hub ports: 10 rev: 3.0 speed: 5 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
  Hub-4: 2-1:5 info: Microchip (formerly SMSC) USB5537B ports: 7 rev: 3.0
    speed: 5 Gb/s chip-ID: 0424:5537 class-ID: 0900
  Device-1: 2-2:3 info: Western Digital My Passport 2627 type: Mass Storage
    driver: usb-storage interfaces: 1 rev: 3.1 speed: 5 Gb/s power: 896mA
    chip-ID: 1058:2627 class-ID: 0806 serial: <filter>
  Hub-5: 3-0:1 info: Hi-speed hub with single TT ports: 2 rev: 2.0
    speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900
  Hub-6: 4-0:1 info: Super-speed hub ports: 2 rev: 3.1 speed: 10 Gb/s
    chip-ID: 1d6b:0003 class-ID: 0900
Sensors:
  System Temperatures: cpu: 48.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 242 Uptime: 16h 13m wakeups: 8 Init: systemd v: 252
  default: graphical tool: systemctl Compilers: gcc: 12.2.1 clang: 15.0.7
  Packages: pm: pacman pkgs: 1218 libs: 329 tools: pamac,yay pm: flatpak
  pkgs: 0 Shell: Zsh v: 5.9 default: Bash v: 5.1.16 running-in: konsole
  inxi: 3.3.25

This is what I see every time I boot my PC:

Pressing keys won’t exit it. I need to write exit.

thats strange - it does not jive with what is in the config file you posted

but I can’t help - I only have one system and no experience with two or why os_prober would not work

So is there a specific way to fix the os_prober issue? Again I don’t know if it’s related to BIOS setting but considering the fact that this hard disk has only one OS I would imagine the existence of other OSes on other hard disks shouldn’t matter one bit to Manjaro.

Perhaps the system info and GRUB screen picture that I posted may help.

it’s not even sure that that is the issue
in fact it’s likely not

I think already said that I’m not even sure that I understood your description of the problem you have.

Why would you end up, without so much as a keystroke, in the grub rescue/edit mode
is the question I’d have.



ps:

perhaps try taking the picture of your monitor without a flash -
so there is actually something to see in the picture :grimacing:

the screen is bright enough by itself - the camera flash does not help … quite the contrary - as you can (not) see :grimacing:

and use an external service for the pic and link it here
just as you did with your grub config

I recommend to delete the one in your post above
it’s rather useless anyway

I am out of my depth here, so this is just speculation, but with so many drives (including a mix of MBR and GPT), I wonder if there are multiple copies of GRUB installed. That could explain why your GRUB doesn’t seem consistent with your settings.

Try setting it to 1 so it times out immediately or -1 to wait for a selection(multiboot etc). Being set to 0 may be why your sent to a shell.

Of course

update-grub

Also this:
https://unix.stackexchange.com/questions/198003/set-the-default-kernel-in-grub
Notice it makes reference to:

It could be very likely that this grub, which is booted into CLI, is not the grub of Manjaro.

How is that possible if there is only one Linux OS installed?

I changed it to 1 and this was the ouput to sudo upgrade-grub:

Generating grub configuration file ...
Found theme: /usr/share/grub/themes/manjaro/theme.txt
Found linux image: /boot/vmlinuz-6.1-x86_64
Found initrd image: /boot/intel-ucode.img /boot/initramfs-6.1-x86_64.img
Found initrd fallback image: /boot/initramfs-6.1-x86_64-fallback.img
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Root filesystem isn't btrfs
If you think an error has occurred, please file a bug report at "https://github.com/Antynea/grub-btrfs"
Found memtest86+ image: /boot/memtest86+/memtest.bin
Found memtest86+ EFI image: /boot/memtest86+/memtest.efi
done

Restarted the PC. Still got the CLI GRUB menu.


Image Edited.

On a side-note I asked GPT 4 the same question and it suggested that my GRUB was corrupted and to try this:

It appears that you are seeing the GRUB command line interface (CLI) instead of the GRUB menu. This can occur due to improper configuration or a problem with your GRUB installation.

To resolve the issue, follow these steps:

1. Boot your computer using a live Linux USB (the one from your Manjaro installation should work). Once you have booted into the live environment, open the terminal application.

2. Identify the partition where Manjaro is installed by listing the available partitions:

sudo lsblk -f


Take note of the partition that contains the Manjaro file system, e.g., /dev/sda1.

3. Mount the Manjaro partition:

sudo mount /dev/sda1 /mnt


Replace /dev/sda1 with the appropriate partition from the previous step.

4. Chroot into the mounted partition:

sudo manjaro-chroot /mnt


This command will put you into the root shell of the installed Manjaro system, allowing you to fix the GRUB configuration.

5. Reinstall the GRUB bootloader on the appropriate drive:

sudo grub-install /dev/sda


Make sure to replace /dev/sda with your primary boot drive (but not the specific partition, just the drive letter). Do not include any numbers at the end of the device name, as we want GRUB installed on the entire disk.

6. Update the GRUB configuration:

sudo update-grub


7. Exit the chroot environment:

exit


8. Reboot your computer:

reboot


After rebooting, your computer should show the GRUB menu with a list of installed operating systems, including Manjaro and Windows 10.

If the issue persists, it might be necessary to check for errors in the /etc/default/grub configuration file or do a fresh reinstallation of your Manjaro Linux system to ensure a clean GRUB installation.

Wouldn’t this make me stick to a single kernel? I don’t really have an opinion on which kernel to use; I just want to stick to the latest one.

Don’t read random suggestion like that, use the Manjaro WIKI for information and procedures.

Cita ```
If you think an error has occurred, please file a bug report at “GitHub - Antynea/grub-btrfs: Include btrfs snapshots at boot options. (Grub menu)

This error message makes me think that I install that?,because?

What do you mean?

re the mention of multiple drives:

You may have installed Grub to the wrong drive and keep booting from it
and update Grub updated the configuration of one that isn’t used?
Don’t know.

os_prober should be active, when looking at your configuratio - yet it apparently is not

Another issue could be that you mixed mbr and gpt partitions Windos one variant, Linux the other?
It is entirely possible to do that - but of course it will not work … not easily anyway.
Again: don’t know.

I have no idea how it is possible that you, without a keystroke, end up in the Grub edit menu. :man_shrugging:
That should never happen - not without you doing something (pressing a key at the right time …)



Don’t be fooled by all the media hype, telling you it is an AI and thereby presuming that it indeed knows or even understands something.
Google (or another search engine) and your own reading and discernment is way better.

It’s not designed to be an expert system - it’s designed to produce text that appears to make sense -
it will give you an answer - but that doesn’t in any way mean it is sensible or current.