Mac OS X 10.6 启动优盘

OS X 10.6 Bootable USB Drive

有一台老的 Mac Mini 需要重装,内存 2G,它可能只跑得动 OS X 10.6,DiskMaker X这个工具也不支持 10.6 版本启动盘的制作,还是用命令行搞定吧。

在另一台 MacBook Pro 上操作,首先,看一下这台 Mac 上的磁盘概况,注意 Identifier 一栏每个磁盘的标识符。

diskutil list
 
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *121.3 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:          Apple_CoreStorage Mac                     120.5 GB   disk0s2
   3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
/dev/disk1 (internal, virtual):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                  Apple_HFS Mac                    +120.1 GB   disk1
                                 Logical Volume on disk0s2
 
                                 Unencrypted
/dev/disk2 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *8.1 GB     disk2
   1:                        EFI EFI                     209.7 MB   disk2s1
   2:                  Apple_HFS Untitled                7.8 GB     disk2s2
/dev/disk3 (disk image):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:                            Mac OS X Install DVD   +6.7 GB     disk3

disk2 是用来做启动盘的优盘,先把它分区了。


用来做启动盘的优盘

diskutil partitionDisk disk2 GPT HFS+ MacUSB 100%
 
Started partitioning on disk2
Unmounting disk
Creating the partition map
Waiting for the disks to reappear
Formatting disk2s2 as Mac OS Extended with name MacUSB
Initialized /dev/rdisk2s2 as a 7 GB case-insensitive HFS Plus volume
Mounting disk
Finished partitioning on disk2
/dev/disk2 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *8.1 GB     disk2
   1:                        EFI EFI                     209.7 MB   disk2s1
   2:                  Apple_HFS MacUSB                  7.8 GB     disk2s2

然后用命令生成启动盘,源:disk3,是一个挂接(mount)好的 .dmg 磁盘镜像,目标盘即用来做启动盘的优盘,在命令行里用 disk2s2 引用,指向具体的分区。

sudo asr restore --source /dev/disk3 --target /dev/disk2s2 --erase

	Validating target...done
	Validating source...done
	Erase contents of /dev/disk2s2 (/Volumes/MacUSB)? [ny]: y
	Validating sizes...done
	Restoring  ....10....20....30....40....50....60....70....80....90....100
	Verifying  ....10....20....30....40....50....60....70....80....90....100
	Remounting target volume...done

最后一步,是把它设置为可启动。然而,未遂。查了一下,是 System Integrity Protection 保护机制在起作用。

sudo bless -mount "/Volumes/Mac OS X Install DVD" -setBoot
Could not set boot device property: 0xe00002bc

按住 Command (⌘)-R 重启,进入到恢复模式(Recovery Mode)1) ,在命令行里禁用 System Integrity Protection。

csrutil disable
shutdown -r now


在恢复模式的命令行里禁用 System Integrity Protection

现在就可以设置优盘为可启动了!

sudo bless -mount "/Volumes/Mac OS X Install DVD" -setBoot

恢复 System Integrity Protection

csrutil enable
shutdown -r now

重启时按住 Option 键,选择用新做好的可启动优盘来启动 Mac。

参考

OS X

  • macOS Sierra (10.12)
  • OS X El Capitan (OS X 10.11)
  • OS X Yosemite (OS X 10.10)
  • OS X Mavericks (OS X 10.9)
  • OS X Mountain Lion (OS X 10.8)
  • OS X Lion (OS X 10.7)
  • OS X Snow Leopard (OS X 10.6)


Mac OS X Snow Leopard

说点题外话,说到 Snow Leopard 雪豹,「我们诞生在中国」这个纪录片里有雪豹,但是解说词把这纪录片给毁了!解说词还是 David Attenborough 老爷子那种腔调的好,听过他在 BBC Planet Earth 纪录片里的解说,非常好听。

1)
To start up from OS X Recovery, hold down Command (⌘)-R immediately after turning on or restarting your Mac.