BootSectors:
boot0--第一阶段
boot0af 要求磁盘激活
boot0ss 不要求磁盘激活
boot0md
boot1--第二阶段
boot1altV3
boot1f32 支持FAT32分区 默认引导文件为boot
boot1f32alt 支持FAT32分区 默认引导文件为boot,等待2秒,支持按数字键选择引导boot3/4/7
boot1h 支持HFS+分区 默认引导文件为boot
boot1h2 支持HFS+分区 默认引导文件为boot,等待2秒,支持按数字键选择引导boot3/4/7
boot1x 支持exFAT分区 默认引导文件为boot
boot0af (boot0 Active First) - MBR sector that search for active partition in MBR table (then GPT table). Origin from Apple's boot132 project. This version of boot0af implements hybrid GUID/MBR partition scheme support. Written by Tamás Kosárszky on 2008-03-10
boot0ss (boot0 Signature Scanning) - MBR sector that search for partition with valid PBR signature regardless if it's active or not. Good for Windows that wants to have its partition active. It share the same code as boot0af. Only scanning is done in different order. Written by JrCs on 2013-05-08.
boot1h - PBR sector for HFS+ formatted partition. Search for file "boot" in the root of the partiton. Origin from Apple's boot132 project. Written by Tamás Kosárszky on 2008-04-14. This is mod by Slice to support large boot file. Not 440kb as origin but 472k needed to boot Clover-64.
boot1h2 - PBR sector for HFS+ formatted partition with alternative booting with choice of key pressed. File to boot = "boot{key}". Coded by dmazar based on boot1h.
boot1f32 - PBR sector for FAT32 formatted partition. Search for file "boot" in the root of the partiton. Useful for EFI partition or USB stick. Written by mackerintel on 2009-01-26.
boot1f32alt - PBR sector for FAT32 formatted partition with alternative booting with choice of key pressed. File to boot = "boot{key}". Modded by Slice based on
boot1f32 and boot1h2.
boot1x - PBR sector for exFat formatted partition. Search for file "boot" in the root of the partiton. Useful for EFI partition or USB stick. Written by Zenith432 on 2014-11-19.
EFI Partition Install (FAT32) or to USB stick drive (disk1s1).
---------------------------------
Suppose that your installation is on /dev/disk0s1
- Prepare EFI partition:
sudo mkdir /Volumes/EFI
sudo mount_msdos /dev/disk0s1 /Volumes/EFI/
- Install clover to the EFI partition's root directory:
cp boot /Volumes/EFI/ (注意此处boot为boot3/4/7改名而来)
sudo umount -f /Volumes/EFI/
- Install boot0ss to the MBR:
sudo fdisk440 -f boot0ss -u -y /dev/rdisk0
- Install boot1f32alt to the partition's bootsector:
dd if=/dev/rdisk0s1 count=1 bs=512 of=origbs
cp boot1f32alt newbs
dd if=origbs of=newbs skip=3 seek=3 bs=1 count=87 conv=notrunc
dd if=newbs of=/dev/rdisk0s1 count=1 bs=512
细细哥 发表于 2015-10-7 22:08
好像有点复杂,不仅修改PBR,还要修改扇区。
这个是我以前做的IMG,楼主可以测试看看:
http://bbs.wuyou ...
沙漠之子 发表于 2015-10-8 20:15
之前已经尝试过了 我这直接boot0:error
明天我再试试看
欢迎光临 无忧启动论坛 (http://bbs.wuyou.net/) | Powered by Discuz! X3.3 |