1.先断开sata1-4里面的所有硬盘
2.安装PVE到光驱位sata5硬盘里面
3.跟据sata5给SD卡分区
fdisk -l /dev/sde (的光驱位的硬盘)
/dev/sde1 34 2047 2014 1007K BIOS boot (看这个分区)
开始给sd卡分一样的参数
gdisk /dev/sdc
o
Command (? for help): x 进专家模式
Expert command (? for help): l 这里是小写L
Enter the number of sectors per alignment (1=ignore alignment): 1
Expert command (? for help): m
回到主命令界面,执行 n 新建分区:
Partition number:回车默认 1
First sector:34(不会再自动偏移)
Last sector:2047
Hex code:ef02
Command (? for help): w
4.写入引导
dd if=/dev/sdb1 of=/dev/sdc1 bs=512 status=progress
grub-install –target=i386-pc /dev/sdc