installing boot sectors sample
Code
- boot0af=~/src/UDK2018/Clover/CloverPackage/sym/CloverCD/usr/standalone/i386/boot0af;
- boot1f32=~/src/UDK2018/Clover/CloverPackage/sym/CloverCD/usr/standalone/i386/boot1f32;
- diskutil umount ${bootdisk}s1;
- sudo dd if=${bootdisk} count=1 of=origMBR;
- cp -fv origMBR newMBR;
- dd if=$boot0af of=newMBR bs=1 count=440 conv=notrunc;
- sudo dd if=newMBR of=${bootrdisk} count=1;
- sudo fdisk -f newMBR -u -y ${bootrdisk};
- cp -fv $boot1f32 newBS;
- dd if=origBS of=newBS skip=3 seek=3 bs=1 count=87 conv=notrunc;
- sudo dd if=newBS of=${bootrdisk}s1 count=1;
- diskutil mount ${bootdisk}s1;