grub_util_is_regular(envfile)) grub_util_create_envblk_file(envfile); // 生成平台文件夹路径,例如boot/grub/i386-pc/ char *platname = grub_install_get_platform_name(platform); char *platdir; { char *t = grub_util_path_concat(2, grubdir, platname); platdir = grub_canonicalize_file...
代码 读完之后再看,发现grub-install只是做了一些识别设备信息并匹配设置的准备工作,真正生成core.img的是grub-mkimage,真正负责安装的是grub-bios-setup(对于i386-pc平台) 以下代码根据我需要的目标平台i386-pc进行了删减,从而方便阅读 // 读取环境变量和命令行参数(略)if(!grub_install_source_directory){if(!targ...
grub2-install /dev/sdx 1. 复制 UEFI模式下重新生成efi文件 grub2-install --target=[i386-efi|arm64-efi|x86_64-efi] –efi-irectory=/boot/efi --bootloader id=openEuler 1. 复制 设置启动项 在Legacy模式下,系统启动项有BIOS管理,BIOS在启动阶段会扫描设备,找出拥有启动项的设备:磁盘,光驱,网卡等等。...
grub2-install --target=[i386-efi|arm64-efi|x86_64-efi] –efi-irectory=/boot/efi --bootloader id=openEuler 1. 1. 设置启动项 在Legacy模式下,系统启动项有BIOS管理,BIOS在启动阶段会扫描设备,找出拥有启动项的设备:磁盘,光驱,网卡等等。在UEFI模式下,也可以通过efibootmgr去管理启动项。因为在UEFI模式...
grub-install--target=x86_64-efi --efi-directory=/boot--bootloader-id=GRUB ##非uefi启动 grub-install--target=i386-pc/dev/sdX#sdX为你的安装硬盘 2进 /etc/default/grub 文件 找到GRUB_DISABLE_OS_PROBER=false ,把这行的注释取消,没有这行的话就添加 ...
Ubuntu的分包问题 grub默认的target是i386-pc,这个target包含在grub-pc这个包,如果你的系统使用BIOS+MBR安装,这个包默认是存在的。x86_64-efi这个target包含在grub-efi这个包,只有你的系统使用UEFI+GPT方式安装这个包才会存在。如果某个target报错,错误信息类似于grub-install: error: /usr/lib/grub/x86_64-efi/mod...
grub-install生成的东西里面有个文件夹是x86_64,这东西很重要,可能就是这个导致x86的虚拟机不能用的,毕竟我x86的arch的grub那个文件夹是叫i386-pc我觉得直接用我电脑的话这个u盘应该已经能启动了, 12楼2015-06-05 14:43 回复 啊o额iu鱼 高一年级 13 不行,只能用efi,不能用bios引导,估计efi的ubuntu的...
grub-install.exe --boot-directory=d: \\.\PHYSICALDRIVE0 说明一下:这里隐含了一条默认参数--target=i386-pc;“--boot-directory=d:”这里的d为刚才我分配的“系统保留”分区的盘符,注意按照实际情况修改;另外可以选择性添加--modules=""参数用来指定需要安装的模块,如--modules="ntfs ext2 part_msdos cpio...
After a system update, a new kernel from RHEL 8.9 release has been installed (kernel-4.18.0-513serie), but cannot be booted, the following error being seen on the console: Raw error: ../../grub-core/loader/i386/efi/linux.c:385:(hd0,gpt2)/vmlinuz-4.18.0-513.5.1.el8_9.x86_64 ha...
Error: file '/boot/grub2/i386-pc/normal.mod' not found Error: no such partition Error: symbol 'grub_efi_get_secure_boot' not found Other GRUB rescue errors After the GRUB rescue issue is resolved, perform the following actions: Unmount the copy of the file systems from the rescue/rep...