I have been working with my RPi over the past several days and am in need of backing up my SD card before I temporarily place a different OS on the card so I can get official support from the Pi store for a codec I purchased. I DO NOT want to have to spend several more hours after that rebuilding my current OS (
http://www.raspbmc.com/) with all of the customizations that I have working.
I was thinking I should just be able to DD the SD card to a file on my Mac, then when Im done testing I could DD it back...
would this work for what I have in mind:
Code:
ssma-imac:Raspbmc ssma$ diskutil list
/dev/disk0
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *1.0 TB disk0
1: EFI 209.7 MB disk0s1
2: Apple_HFS Macintosh HD 999.9 GB disk0s2
/dev/disk1
#: TYPE NAME SIZE IDENTIFIER
0: FDisk_partition_scheme *16.0 GB disk1
1: Windows_FAT_32 73.4 MB disk1s1
2: Linux 15.9 GB disk1s2
That is just a list of the devices on my MAC with /dev/disk1 being the SD card. I am not 100% how to grab the entire disk with DD.
Code:
sudo dd if=/dev/disk1 of=raspbmc.img
Would that work and grab all of the partitions, formats, files, etc...?
Then to reverse it later I would just
Code:
sudo dd if=/path/to/raspbmc.img of=/dev/disk1