Tuesday, 16 May 2023

[ubuntu] (Fresh install) boot into grub command line

Problem

grub>

Solution

# please note that grub commandline supports some command expansion using tab key
$ # find the root partition
$ ls
$ # set root partition, e.g.
$ root=(lvm/vg-root)
$ # load existing config file, e.g.
$ configfile /boot/grub/grub.cfg
You now should see the selection dialogue of your grub and can boot. To permanently fix the problem, install a tool and run it. Unfortunately, it is not (yet) part of the distribution. Very sadly, you have to add a personal repository. Either sudo the following commands or execute them as root.
$ sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt update
$ sudo apt install -y boot-repair
$ sudo boot-repair

No comments:

Post a Comment

[git] Create a local branch from another branch

From the active branch git checkout -b <LOCAL_BRANCH> From a donator branch git checkout -b <LOCAL_BRANCH> <DONATING_BRANCH...