|
Ventoy的Linux版本的安装程序很容易做到写入Gpt的MBR,还有Ventoy的启动文件等等。
而且支持无损写入,只是要求第一个分区是NTFS分区或者EXT分区。
写MBR只有440个字节。而且MBR和GPT略有不同。
dd status=none conv=fsync if=./boot/boot.img of=$DISK bs=1 count=440
if [ "$OldStyle" = "GPT" ]; then
echo -en '\x22' | dd status=none of=$DISK conv=fsync bs=1 count=1 seek=92
xzcat ./boot/core.img.xz | dd status=none conv=fsync of=$DISK bs=512 count=2014 seek=34
echo -en '\x23' | dd of=$DISK conv=fsync bs=1 count=1 seek=17908 status=none
else
xzcat ./boot/core.img.xz | dd status=none conv=fsync of=$DISK bs=512 count=2047 seek=1
fi
|
|