banner
xingli

xingli

猫娘爱好者

linux dd error Error! grub.cfg.

linux dd error! Error! grub.cfg.#

Error message#

When using the DD script, an error occurs:
image

Solution#

Enter the /boot/ directory and you can see the following files, including a grub folder. Enter the grub folder and you can see grub.cfg. Obviously, this is grub2.
image
There is only a grub folder under the boot directory. Since the directory where the grub2 configuration file is usually located is /boot/grub2/, it is possible that there is no grub2 folder.

Create a grub2 folder and use the following command to generate the configuration file:
grub2-mkconfig -o /boot/grub2/grub.cfg I tried this, but it didn't work

mkdir /boot/grub2 && grub-mkconfig -o /boot/grub2/grub.cfg //Alternate command

Article source: dd script error! Error! grub.cfg. (upx8.com)

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.