![]() ![]() When finished, remove the virtual disk with the following command, substituting the disk number returned by hdiutil attach for diskn: sudo hdiutil detach diskn. Issue the following command to create a virtual disk in the system from the.dmg file, where path is the path to the file: sudo hdiutil attach path -readonly -nomount -noverify hdiutil will output the path of the virtual disk, something like: /dev/disk4 Apple_partition_scheme Then you can use the dd command as shown by other posters to perform the copy. Not kiddin (depends on the SD Card size). Before this step unmount all the partitions of the SD Card, or you will get this error: dd: /dev/diskX: Resource busy Finally you can copy the image to your SD card using dd: sudo dd bs=2048 if=bar.img of=/dev/diskX (Substitute X with the disk num, you can find this under: Disk Utility -> Select the SD Card on the right -> Info (top button), and in the window you can see the disk number) And patiently wait for it to end, if it takes more than 2 hours, just check if it is complete by removing the SD Card and reinserting it, if not try this command in the terminal again.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |