Create A Backup Image Of Your Raspberry Pi Sd Card In Mac Osx

By admin ·
1

Connect the SD card to your computer

Use whatever SD card adapter you have to connect your SD card to your computer.

2

Open Terminal

Navigate to Applications > Utilities > Terminal.

3

Find your SD card name

Enter the following command to find your SD card’s name:

diskutil list

You can identify your card by size and partition type. You should see the Raspberry Pi boot partition type of Windows_FAT_32 next to the drive.

For example, my card’s name is /dev/disk2.

4

Create a full SD card backup

Use the following command to use the dd utility to backup your Raspberry Pi SD card, changing /dev/disk1 to your disk’s name and path:

sudo dd if=/dev/disk1 of=~/PiSDCardBackup.dmg

Enter your password when prompted.

This will create a file named PiSDCardBackup.dmg in the user directory (~). To change the filename or put it somewhere else, you can change ~/PiSDCardBackup.dmg to something else. For example, ~/Documents/OctoPrint.dmg will name the file OctoPrint.dmg and place it in your Documents folder.

While the backup process is running, you should just see a flashing | indicator.

5

Safely eject your SD card

Don’t forget to safely eject your card before removing it from your computer to prevent data corruption. You can do this in Finder by clicking the eject icon in the sidebar. You’re all done!

6

Restoring the SD card

To restore your backup or clone it onto another SD card, reinsert it into your computer and use the following commands:

diskutil unmountDisk /dev/disk1
sudo dd if=~/PiSDCardBackup.dmg of=/dev/disk1

Be sure to replace /dev/disk1 once again with your card ID, and specify the proper location for the backup image you’re restoring from.

When you’re finished, eject your SD card once more.

7

Connect the SD card to your computer

Use whatever SD card adapter you have to connect your SD card to your computer.

8

Open Terminal

Navigate to Applications > Utilities > Terminal.

9

Find your SD card name

Enter the following command to find your SD card’s name:

diskutil list

You can identify your card by size and partition type. You should see the Raspberry Pi boot partition type of Windows_FAT_32 next to the drive.

For example, my card’s name is /dev/disk2.

10

Create a full SD card backup

Use the following command to use the dd utility to backup your Raspberry Pi SD card, changing /dev/disk1 to your disk’s name and path:

sudo dd if=/dev/disk1 of=~/PiSDCardBackup.dmg

Enter your password when prompted.

This will create a file named PiSDCardBackup.dmg in the user directory (~). To change the filename or put it somewhere else, you can change ~/PiSDCardBackup.dmg to something else. For example, ~/Documents/OctoPrint.dmg will name the file OctoPrint.dmg and place it in your Documents folder.

While the backup process is running, you should just see a flashing | indicator.

11

Safely eject your SD card

Don’t forget to safely eject your card before removing it from your computer to prevent data corruption. You can do this in Finder by clicking the eject icon in the sidebar. You’re all done!

12

Restoring the SD card

To restore your backup or clone it onto another SD card, reinsert it into your computer and use the following commands:

diskutil unmountDisk /dev/disk1
sudo dd if=~/PiSDCardBackup.dmg of=/dev/disk1

Be sure to replace /dev/disk1 once again with your card ID, and specify the proper location for the backup image you’re restoring from.

When you’re finished, eject your SD card once more.

13

Connect the SD card to your computer

Use whatever SD card adapter you have to connect your SD card to your computer.

14

Open Terminal

Navigate to Applications > Utilities > Terminal.

15

Find your SD card name

Enter the following command to find your SD card’s name:

diskutil list

You can identify your card by size and partition type. You should see the Raspberry Pi boot partition type of Windows_FAT_32 next to the drive.

For example, my card’s name is /dev/disk2.

16

Create a full SD card backup

Use the following command to use the dd utility to backup your Raspberry Pi SD card, changing /dev/disk1 to your disk’s name and path:

sudo dd if=/dev/disk1 of=~/PiSDCardBackup.dmg

Enter your password when prompted.

This will create a file named PiSDCardBackup.dmg in the user directory (~). To change the filename or put it somewhere else, you can change ~/PiSDCardBackup.dmg to something else. For example, ~/Documents/OctoPrint.dmg will name the file OctoPrint.dmg and place it in your Documents folder.

While the backup process is running, you should just see a flashing | indicator.

17

Safely eject your SD card

Don’t forget to safely eject your card before removing it from your computer to prevent data corruption. You can do this in Finder by clicking the eject icon in the sidebar. You’re all done!

18

Restoring the SD card

To restore your backup or clone it onto another SD card, reinsert it into your computer and use the following commands:

diskutil unmountDisk /dev/disk1
sudo dd if=~/PiSDCardBackup.dmg of=/dev/disk1

Be sure to replace /dev/disk1 once again with your card ID, and specify the proper location for the backup image you’re restoring from.

When you’re finished, eject your SD card once more.

19

Connect the SD card to your computer

Use whatever SD card adapter you have to connect your SD card to your computer.

20

Open Terminal

Navigate to Applications > Utilities > Terminal.

21

Find your SD card name

Enter the following command to find your SD card’s name:

diskutil list

You can identify your card by size and partition type. You should see the Raspberry Pi boot partition type of Windows_FAT_32 next to the drive.

For example, my card’s name is /dev/disk2.

22

Create a full SD card backup

Use the following command to use the dd utility to backup your Raspberry Pi SD card, changing /dev/disk1 to your disk’s name and path:

sudo dd if=/dev/disk1 of=~/PiSDCardBackup.dmg

Enter your password when prompted.

This will create a file named PiSDCardBackup.dmg in the user directory (~). To change the filename or put it somewhere else, you can change ~/PiSDCardBackup.dmg to something else. For example, ~/Documents/OctoPrint.dmg will name the file OctoPrint.dmg and place it in your Documents folder.

While the backup process is running, you should just see a flashing | indicator.

23

Safely eject your SD card

Don’t forget to safely eject your card before removing it from your computer to prevent data corruption. You can do this in Finder by clicking the eject icon in the sidebar. You’re all done!

24

Restoring the SD card

To restore your backup or clone it onto another SD card, reinsert it into your computer and use the following commands:

diskutil unmountDisk /dev/disk1
sudo dd if=~/PiSDCardBackup.dmg of=/dev/disk1

Be sure to replace /dev/disk1 once again with your card ID, and specify the proper location for the backup image you’re restoring from.

When you’re finished, eject your SD card once more.

25

Connect the SD card to your computer

Use whatever SD card adapter you have to connect your SD card to your computer.

26

Connect the SD card to your computer

Use whatever SD card adapter you have to connect your SD card to your computer.

27

Connect the SD card to your computer

28

Open Terminal

Navigate to Applications > Utilities > Terminal.

29

Open Terminal

Navigate to Applications > Utilities > Terminal.

30

Open Terminal

31

Find your SD card name

Enter the following command to find your SD card’s name:

diskutil list

You can identify your card by size and partition type. You should see the Raspberry Pi boot partition type of Windows_FAT_32 next to the drive.

For example, my card’s name is /dev/disk2.

32

Find your SD card name

Enter the following command to find your SD card’s name:

diskutil list

You can identify your card by size and partition type. You should see the Raspberry Pi boot partition type of Windows_FAT_32 next to the drive.

For example, my card’s name is /dev/disk2.

33

Find your SD card name

34

Create a full SD card backup

Use the following command to use the dd utility to backup your Raspberry Pi SD card, changing /dev/disk1 to your disk’s name and path:

sudo dd if=/dev/disk1 of=~/PiSDCardBackup.dmg

Enter your password when prompted.

This will create a file named PiSDCardBackup.dmg in the user directory (~). To change the filename or put it somewhere else, you can change ~/PiSDCardBackup.dmg to something else. For example, ~/Documents/OctoPrint.dmg will name the file OctoPrint.dmg and place it in your Documents folder.

While the backup process is running, you should just see a flashing | indicator.

35

Create a full SD card backup

Use the following command to use the dd utility to backup your Raspberry Pi SD card, changing /dev/disk1 to your disk’s name and path:

sudo dd if=/dev/disk1 of=~/PiSDCardBackup.dmg

Enter your password when prompted.

This will create a file named PiSDCardBackup.dmg in the user directory (~). To change the filename or put it somewhere else, you can change ~/PiSDCardBackup.dmg to something else. For example, ~/Documents/OctoPrint.dmg will name the file OctoPrint.dmg and place it in your Documents folder.

While the backup process is running, you should just see a flashing | indicator.

36

Create a full SD card backup

37

Safely eject your SD card

Don’t forget to safely eject your card before removing it from your computer to prevent data corruption. You can do this in Finder by clicking the eject icon in the sidebar. You’re all done!

38

Safely eject your SD card

Don’t forget to safely eject your card before removing it from your computer to prevent data corruption. You can do this in Finder by clicking the eject icon in the sidebar. You’re all done!

39

Safely eject your SD card

40

Restoring the SD card

To restore your backup or clone it onto another SD card, reinsert it into your computer and use the following commands:

diskutil unmountDisk /dev/disk1
sudo dd if=~/PiSDCardBackup.dmg of=/dev/disk1

Be sure to replace /dev/disk1 once again with your card ID, and specify the proper location for the backup image you’re restoring from.

When you’re finished, eject your SD card once more.

41

Restoring the SD card

To restore your backup or clone it onto another SD card, reinsert it into your computer and use the following commands:

diskutil unmountDisk /dev/disk1
sudo dd if=~/PiSDCardBackup.dmg of=/dev/disk1

Be sure to replace /dev/disk1 once again with your card ID, and specify the proper location for the backup image you’re restoring from.

When you’re finished, eject your SD card once more.

42

Restoring the SD card