使用Time Machine格式化目标磁盘时,系统反馈格式化错误:
Mediakit reports not enough space on device for requested operation.
解决方案:
1. 开启终端运行
diskutil list
获取目标磁盘名称 'disk${DISK_ID}' 例如 'disk2'
2. 卸载该磁盘
diskutil unmountDisk force disk2
3. 在磁盘启动区块写入全0抹除
sudo dd if=/dev/zero of=/dev/disk2 bs=1024 count=1024
4. 使用磁盘工具尝试分区
diskutil partitionDisk disk2 GPT JHFS+ "My External HD" 0g
Reference
https://www.reddit.com/r/applehelp/comments/40yvjh/disk_utility_fails_to_eraseformat_an_external_hdd/