disk_module) disk_module = xstrdup("biosdisk"); break; // 省略 } switch (platform) { case GRUB_INSTALL_PLATFORM_I386_PC: case GRUB_INSTALL_PLATFORM_SPARC64_IEEE1275: // 没有指定安装设备就报错 if (!install_device) grub_util_error("%s", _("install device isn't specified")); break;...
代码 读完之后再看,发现grub-install只是做了一些识别设备信息并匹配设置的准备工作,真正生成core.img的是grub-mkimage,真正负责安装的是grub-bios-setup(对于i386-pc平台) 以下代码根据我需要的目标平台i386-pc进行了删减,从而方便阅读 // 读取环境变量和命令行参数(略)if(!grub_install_source_directory){if(!targ...
grub-install --boot-directory=E: --recheck --target=i386-pc \\.\PHYSICALDRIVE1 --removable grub-install --boot-directory=E: --efi-directory=E: --recheck --target=i386-efi --removable grub-install --boot-directory=E: --efi-directory=E: --recheck --target=x86_64-efi --removable 其...
grub-install.exe --boot-directory=d: \\.\PHYSICALDRIVE0 说明一下:这里隐含了一条默认参数--target=i386-pc;“--boot-directory=d:”这里的d为刚才我分配的“系统保留”分区的盘符,注意按照实际情况修改;另外可以选择性添加--modules=""参数用来指定需要安装的模块,如--modules="ntfs ext2 part_msdos cpio...
安装这些工具后,在类UNIX系统中,你需要通过grub-install把boot loader安装到磁盘中。 GRUB自带启动镜像,这东西一般放在/usr/lib/grub/-的目录里(基于BIOS的机器就放在/usr/lib/grub/i386-pc)。GRUB镜像的路径就叫做启动镜像路径,对于boot loader来说,这个就叫做启动路径。
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...
上图可见bootloader分区数据前面的一部分被覆写变成了0x00,重新执行GRUB2-install即可重新生成bootloader。 grub2-install /dev/sdx 1. 复制 UEFI模式下重新生成efi文件 grub2-install --target=[i386-efi|arm64-efi|x86_64-efi] –efi-irectory=/boot/efi --bootloader id=openEuler ...
grub-install生成的东西里面有个文件夹是x86_64,这东西很重要,可能就是这个导致x86的虚拟机不能用的,毕竟我x86的arch的grub那个文件夹是叫i386-pc我觉得直接用我电脑的话这个u盘应该已经能启动了, 12楼2015-06-05 14:43 回复 啊o额iu鱼 高一年级 13 不行,只能用efi,不能用bios引导,估计efi的ubuntu的...
在UEFI 系统上,ReaR ISO 无法启动,并显示错误grub-core/loader/i386/efi/linux.c:xxx can't allocate initrd。 Environment Red Hat Enterprise Linux 7 及更高版本 ReaR UEFI Subscriber exclusive content A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more. ...
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...