To update GRUB on Rocky Linux 9.5 --
1. Identify the system boot type (BIOS or UEFI) .
This can be determined by:
Checking BIOS/UEFI settings
... or ...
Checking the disk file system ...
$>sudo df -h
... if output contains a ' /boot/efi ' directory; the system boot type is likely UEFI .
2. Edit the ' /etc/default/grub ' file with nano editor ...
$>sudo nano /etc/default/grub
Find the line that begins with ' GRUB_CMDLINE_LINUX_DEFAULT ' or ' GRUB_CMDLINE_LINUX '
Example: GRUB_CMDLINE_LINUX="blah blah blah"
Use arrow keys to maneuver to the end of the line; and append it with ' pcie_aspm=off ' ; note that there are no spaces immediately preceding or following the quotes < " > .
Example: GRUB_CMDLINE_LINUX="blah blah blah pcie_aspm=off"
' Ctl+O ' to commit changes to the editor buffer
' Ctl+X ' to exit the editor
3. Update GRUB with the appropriate command ...
For BIOS:
$>sudo grub2-mkconfig -o /boot/grub2/grub.cfg
For UEFI:
$>sudo grub2-mkconfig -o /boot/efi/EFI/rocky/grub.cfg
This may respond with ...
Running `grub2-mkconfig -o /boot/efi/EFI/rocky/grub.cfg' will overwrite the GRUB wrapper.
Please run `grub2-mkconfig -o /boot/grub2/grub.cfg' instead to update grub.cfg.
GRUB configuration file was not updated.
... if so; apply ...
$>sudo grub2-mkconfig -o /boot/grub2/grub.cfg
Related to
Comments
0 comments
Please sign in to leave a comment.