Cant update GRUB

Hi everyone, I want to change timeout in grub (I have dualboot) so I change the file /etc/default/grub and than sudo update-grub but it change nothing and I get next output:

Generating grub configuration file ... 
Found theme: /usr/share/grub/themes/manjaro/theme.txt 
Found linux image: /boot/vmlinuz-6.12-x86_64 
Found initrd image: /boot/intel-ucode.img /boot/amd-ucode.img /boot/initramfs-6.12-x86_64.img 
Found initrd fallback image: /boot/initramfs-6.12-x86_64-fallback.img 
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. 
Found Windows Boot Manager on /dev/nvme0n1p1@/efi/Microsoft/Boot/bootmgfw.efi 
Adding boot menu entry for UEFI Firmware Settings ... 
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 
/usr/bin/grub-probe: warning: unknown device type nvme0n1. 
Found memtest86+ EFI image: /boot/memtest86+/memtest.efi 
/usr/bin/grub-probe: warning: unknown device type nvme0n1. 
done

What I am doing wrong?

P.S. Manjaro KDE, file system EXT4 for root and Home. do u alboot


:wink:

Hi @pp2222, and welcome!

In order for us, or anyone for that matter, to be able to provide assistance, more information is necessary. To that end, please see:

inxi --filter --verbosity=8 --color=0

Please also note and heed: Forum Rules - Manjaro

Those with privacy concerns: note that when -z, or --filter is used, all personally identifiable information is filtered out from the resulting inxi output. :eyes:

Hope you manage!


:bangbang: Tip for legibility: :bangbang:

To provide terminal output, copy the text you wish to share, and paste it here, surrounded by three (3) backticks, a.k.a grave accents. Like this:

```
pasted text
```

Or three (3) tilde signs, like this:

~~~
pasted text
~~~

This will just cause it to be rendered like this:

Portaest sed
elementum
cursus nisl nisi
hendrerit ac quis
sit
adipiscing
tortor sit leo commodo.

Instead of like this:

Portaest sed elementum cursus nisl nisi hendrerit ac quis sit adipiscing tortor sit leo commodo.

Alternatively, paste the text you wish to format as terminal output, select all pasted text, and click the </> button on the taskbar. This will indent the whole pasted section with one TAB, causing it to render the same way as described above.

Thereby improving legibility and making it much easier for those trying to be of assistance.

Note: I have done it for you, this time, at no charge, but please do it from now on.


:bangbang::bangbang: Additionally

If your language isn’t English, please prepend any and all terminal commands with LC_ALL=C. For example:

LC_ALL=C bluetoothctl

This will just cause the terminal output to be in English, making it easier to understand and debug.

Please edit your post accordingly.

Note that the above text is partially pre-prepared as a general introduction for new forum users. Please take the time to follow links given and learn how to create effective support requests and encourage quality responses.

What did you set it to?
grep TIME /etc/default/grub

As far as I know, you can’t set it to 0 when you have a dual boot setup.

1 Like

I set 2 seconds (was 5)

This is normal output. Except that you have only one kernel and you have not tended your pacnews, it is not show stopper.

Post the whole grub config file, the timer is usually changed together with some other values.

# GRUB boot loader configuration

GRUB_DEFAULT=saved
GRUB_TIMEOUT=2
GRUB_DISTRIBUTOR='Manjaro'
GRUB_CMDLINE_LINUX_DEFAULT='quiet splash udev.log_priority=3'
GRUB_CMDLINE_LINUX=""

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable booting from LUKS encrypted devices
#GRUB_ENABLE_CRYPTODISK=y

# Set to 'countdown' or 'menu' to change timeout behavior,
# press ESC key to display menu.
GRUB_TIMEOUT_STYLE=hidden

# Uncomment to use basic console
GRUB_TERMINAL_INPUT=console

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT=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 'videoinfo'
GRUB_GFXMODE=auto

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX=keep

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY=true

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper
# modes only.  Entries specified as foreground/background.
GRUB_COLOR_NORMAL="light-gray/black"
GRUB_COLOR_HIGHLIGHT="green/black"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/usr/share/grub/background.png"
GRUB_THEME="/usr/share/grub/themes/manjaro/theme.txt"

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

# Uncomment to make GRUB remember the last selection. This requires
# setting 'GRUB_DEFAULT=saved' above.
GRUB_SAVEDEFAULT=true

# Uncomment to disable submenus in boot menu
#GRUB_DISABLE_SUBMENU=y

# Uncomment this option to enable os-prober execution in the grub-mkconfig command
GRUB_DISABLE_OS_PROBER=false

:wink:

What do you mean?

The output is expected - there is nothing wrong with it.

update-grub is a wrapper script which executes

grub-mkconfig -o /boot/grub/grub.cfg

I am thinking - did you expect the menu to show up ?

For that to happen you will need to change as well

# Set to 'countdown' or 'menu' to change timeout behavior,
# press ESC key to display menu.
GRUB_TIMEOUT_STYLE=hidden

Change to menu - rebuild grub config and reboot.

1 Like

My timeout is still 5 seconds not 2
Question is why?

I don’t know why this would happen, but there might be something to try with this. AFAIK Manjaro installations lately ship with the install-grub package. Check if it is installed by tunning:

pamac search --installed install-grub

If nothing listed, install it with:

pamac  install install-grub

You can then use that to make sure your GRUB is in sync with your configuration by running:

sudo install-grub

Don’t know if it will, but I hope it helps!

Then your configuration has not been updated.

You can see for yourself what update-grub does

cat /usr/bin/update-grub

The output you posted initially - tells us that your configuration updated succesfully - so if your /etc/default/grub contains a timeout of 2 the same will be true for the generated grub.cfg file.

I am speculating if you have more than one grub installation and the one you boot is from another Linux

You could also check the content of grub.cfg - just about line 104 the timeout is applied. You can only read the file as root - and you can use sed to extract the lines of interest - with a default Manjaro grub.cfg it is line 104 to 112

sed '104,112!d' /boot/grub/grub.cfg

The timeout should be matching what you have set in /etc/default/grub.

If that is the case - you may have a second grub, which is the loading the system - but it is not configured by the Manjaro system installation.

1 Like

Sorry, my fault, timeout is 2 seconds it just a pause after timeout finished make me feel like nothing changed

Pausing for a second or 2 after countdown could be an artefact from the video, the systems loads in background but does not redraw the screen yet. You can see what is happening in realtime if you remove quiet and splash flom the linux default line, although it may not fix it completely.

If the countdown does not start at all unless you hit a key it is a rear bug, i managed to trigger it with using nonenglish keyboard layout for grub but i doubt it is your case.

2 Likes

Nothing, except maybe not providing the full output, including the command used. :wink:

The warnings are just that, warnings, and they can usually be ignored; if you see error, then that’s another story.

This is only informational.

This is common with some systems that might not recognise a type of disk – in this case, an NVMe type – the device still works nonetheless.

Regards.

1 Like

Those messages can be completely ignored. They only occur if you have the memtest86+ &/or memtest86+-efi packages installed. If you don’t want to see those warning messages whenever grub updates, you can safely remove those 2 packages from your system:

pamac remove memtest86+ memtest86+-efi

or

sudo pacman -Rns memtest86+ memtest86+-efi
1 Like

Remove the package grub-btrfs as you’re not using BTRFS.

Remove the memtest packages if you don’t use Memtest.

2 Likes

Thanks everyone for help, it looks like everything works it just because of pause after timeout I decided that something wrong…