grub-mkconfig: You must run this as root
时间: 2024-02-13 09:00:09 浏览: 135
这个错误提示意味着你需要以root权限运行grub-mkconfig命令。你可以使用sudo命令来运行它,如下所示:
```
sudo grub-mkconfig -o /boot/grub/grub.cfg
```
这将以root权限运行grub-mkconfig命令并生成新的grub.cfg文件。请确保使用正确的路径和文件名。
相关问题
grub-install: unrecognized option '--directroy=/root/grub/lib/grub/x86_64-efi‘
It seems like there is a typo in the command you are trying to run. The correct option is "--directory", not "--directroy". Try running the command with the correct spelling:
```
grub-install --directory=/root/grub/lib/grub/x86_64-efi
```
This should fix the issue and allow you to install GRUB successfully.
阅读全文