1 2 3 | [zhangshenjia@mac:] 插入SD卡,用df命令查看当前已挂载的卷: |
1 2 3 4 5 6 7 | [zhangshenjia@mac: pi]$df -h Filesystem Size Used Avail Capacity Mounted on /dev/disk0s2 112Gi 96Gi 15Gi 87% / devfs 183Ki 183Ki 0Bi 100% /dev map -hosts 0Bi 0Bi 0Bi 100% /net map auto_home 0Bi 0Bi 0Bi 100% /home /dev/disk1s1 15Gi 2.3Mi 15Gi 1% /Volumes/未命名 |
1 2 3 | [zhangshenjia@mac: pi]$diskutil unmount /dev/disk1s1 2 Volume 未命名 on disk1s1 unmounted |
1 2 3 4 5 6 7 8 9 10 11 | [zhangshenjia@mac:] 使用dd命令将系统镜像写入,需要特别特别注意disk后的数字,不能搞错! (说明:/dev/disk1s1是分区,/dev/disk1是块设备,/dev/rdisk1是原始字符设备) |
1 | [zhangshenjia@mac: pi]$dd bs=4m if=2013-02-09-wheezy-raspbian.img of=/dev/rdisk1 |
1 2 3 | 462+1] 用diskutil] [table] |
1 2 | [zhangshenjia@mac: pi]$diskutil unmountDisk /dev/disk1 Unmount of all volumes on disk1 was successful |
更多回帖