Mac下給SD卡燒錄樹莓派系統
1.mac 磁盤工具 抹掉sd卡 為fat
2. df -h 看清sd卡號
3. 卸載sd卡
diskutil unmount /dev/disk2s2
Volume UNTITLED on disk2s2 unmounted
4.列出sd卡分區
diskutil list
/dev/disk0 (internal):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme 500.3 GB disk0
1: EFI EFI 314.6 MB disk0s1
2: Apple_APFS Container disk1 500.0 GB disk0s2
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +500.0 GB disk1
Physical Store disk0s2
1: APFS Volume Macintosh HD 281.1 GB disk1s1
2: APFS Volume Preboot 21.9 MB disk1s2
3: APFS Volume Recovery 519.9 MB disk1s3
4: APFS Volume VM 3.2 GB disk1s4
/dev/disk2 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *15.7 GB disk2
1: EFI EFI 209.7 MB disk2s1
2: Microsoft Basic Data UNTITLED 15.5 GB disk2s2
//來源:http://www.cnblogs.com/xiaobo-Linux/
5. 燒錄
? Desktop sudo dd bs=4m if=2017-09-07-raspbian-stretch.img of=/dev/disk2
Password:
1172+1 records in
1172+1 records out
4916019200 bytes transferred in 1004.623877 secs (4893393 bytes/sec)
6.卸載sd卡
? Desktop diskutil unmountDisk /dev/disk2
Unmount of all volumes on disk2 was successful
Mac下給SD卡燒錄樹莓派系統