Advertisement
developer

Writing an SD Card Image Mac

Mar 20th, 2014
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 1.) Become root:
  2. su
  3.  
  4. 2.) Plug in your SD card and then use the following command to see which /dev/diskN node it's located on:
  5. diskutil list
  6.  
  7. 3.) Unmount the disk where "N" is the number of the disk taken from the above command:
  8. diskutil unmountDisk /dev/diskN
  9.  
  10. If the above command was successful, you will see:
  11. Unmount of all volumes on diskN was successful
  12.  
  13. 4.) Use the 'dd' command to copy the image file (ts-image.dd) to the entire disk:
  14. dd if=ts-image.dd of=/dev/diskN
  15.  
  16. Also, you can write the image to particular partitions of the disk with (N is the disk number and P is the partition number):
  17.  
  18. dd if=ts-kernel.dd of=/dev/diskNsP
  19.  
  20. The process to do this under Linux is very similar except that it's not required to un-mount the drive before using the 'dd' command and the commands are a little different. For example, you would use "fdisk -l" instead of "diskutil list", your device node would be located at "/dev/sda" instead of "/dev/disk" and the un-mount command is "umount" instead of "diskutil unmountDisk".
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement