构建 MikroTik RouterOS CHR EFI 映像!

技术资料 分享,软路由,脚本
0 1704
admin
admin 自由达人 2024-08-01 23:18:40
用户等级:5级

RouterOS chr-7.x 已包含 efi 启动文件。但它的分区类型是ext2。

ext2将分区类型从 更改为后,系统可以从 efi 启动fat。

其他,制作Hybrid MBR

(
echo 2 # use GPT
echo t # change partition code
echo 1 # select first partition
echo 8300 # change code to Linux filesystem 8300
echo r # Recovery/transformation
echo h # Hybrid MBR
echo 1 2 # partitions added to the hybrid MBR
echo n # Place EFI GPT (0xEE) partition first in MBR (good for GRUB)? (Y/N)
echo   # Enter an MBR hex code (default 83)
echo y # Set the bootable flag? (Y/N)
echo   # Enter an MBR hex code (default 83)
echo n # Set the bootable flag? (Y/N)
echo n # Unused partition space(s) found. Use one to protect more partitions? (Y/N)
echo w # write changes to disk
echo y # confirm
) | sudo -E gdisk /dev/nbd1

本文章最后由 admin2024-08-01 23:18 编辑
楼主签名:唱跳rap和篮球
回帖
回复列表