- 积分
- 67
- 最后登录
- 2024-4-25
- 精华
- 0
- 阅读权限
- 20
- 主题
- 22
- UID
- 921459
- 帖子
- 168
- PB币
- 60
- 威望
- 0
- 贡献
- 0
- 技术
- 4
- 活跃
- 919
- UID
- 921459
- 帖子
- 168
- PB币
- 60
- 贡献
- 0
- 技术
- 4
- 活跃
- 919
|
使用grub2引导,安装grub2为bios_grub模式即可
bios_grub模式需要磁盘开头1MB的空间做hardcore coding,然后可以mbr和efi共存
我的一台联想昭阳E42G就是这么搞得,bios模式下使用gpt分区,装的openwrt,使用grub2引导操作系统,可以正常跑
win7同理
linux下面的分区代码片段,windows自己研究
echo "create partition for [$sdx]"
echo parted -s $sdx ...
sudo parted -s $sdx mklabel gpt
sudo parted -s $sdx mkpart boot_mbr fat16 $[1] $[2]
sudo parted -s $sdx mkpart boot_gpt fat16 $[2] $[16]
sudo parted -s $sdx mkpart rootfs ext4 $[16] $[16+768]
sudo parted -s $sdx set 1 bios_grub on
sudo parted -s $sdx unit MB print
参考
Booting GPT Grub2 on a BIOS based System
https://ubuntuforums.org/showthread.php?t=2198885
|
|