Skip to main content
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Bumped by Community user
Added my information
Source Link
Timmy
  • 111
  • 5

Environment:

  • My laptop OS: Linux Mint 18.2 Cinnamon 64-bit - Kernel: 4.10.0
  • My Raspberry OS: Raspbian Stretch with desktop (Version: August 2017) - Kernel: 4.9
  • Raspberry is installed on a 16GB SD card
  • When the Raspberry SD is inserted into my laptop through a working card reader I can see these two partition: /dev/mmcblk0p1 and /dev/mmcblk0p2

Short question:

  • How to make a full backup of the raspberry SD in order to move the OS on another SD.

Full question:

In order to backup the SD I followed this guide: https://www.raspberrypi.org/documentation/linux/filesystem/backup.md

  1. Backup of the boot partition: sudo dd bs=4M if=/dev/mmcblk0p1 of=raspbian_boot.img
  2. Backup of the main partition: sudo dd bs=4M if=/dev/mmcblk0p2 of=raspbian.img

Well now I've these 2 img file: raspbian.img (~16GB) and raspbian_boot.img (~44MB), how can I restore these ones?

I know that I've to use these:

  1. sudo dd bs=4M if=raspbian_boot.img of=/dev/mmcblk0p1
  2. sudo dd bs=4M if=raspbian.img of=/dev/mmcblk0p2

But the real problem is: how should I partition the new SD? Which file system for each img? The first one has 3 different partitions (the first: /dev/mmcblk0p0 is not allocated at all)

In order to backup the SD I followed this guide: https://www.raspberrypi.org/documentation/linux/filesystem/backup.md

  1. Backup of the boot partition: sudo dd bs=4M if=/dev/mmcblk0p1 of=raspbian_boot.img
  2. Backup of the main partition: sudo dd bs=4M if=/dev/mmcblk0p2 of=raspbian.img

Well now I've these 2 img file: raspbian.img (~16GB) and raspbian_boot.img (~44MB), how can I restore these ones?

I know that I've to use these:

  1. sudo dd bs=4M if=raspbian_boot.img of=/dev/mmcblk0p1
  2. sudo dd bs=4M if=raspbian.img of=/dev/mmcblk0p2

But the real problem is: how should I partition the new SD? Which file system for each img? The first one has 3 different partitions (the first: /dev/mmcblk0p0 is not allocated at all)

Environment:

  • My laptop OS: Linux Mint 18.2 Cinnamon 64-bit - Kernel: 4.10.0
  • My Raspberry OS: Raspbian Stretch with desktop (Version: August 2017) - Kernel: 4.9
  • Raspberry is installed on a 16GB SD card
  • When the Raspberry SD is inserted into my laptop through a working card reader I can see these two partition: /dev/mmcblk0p1 and /dev/mmcblk0p2

Short question:

  • How to make a full backup of the raspberry SD in order to move the OS on another SD.

Full question:

In order to backup the SD I followed this guide: https://www.raspberrypi.org/documentation/linux/filesystem/backup.md

  1. Backup of the boot partition: sudo dd bs=4M if=/dev/mmcblk0p1 of=raspbian_boot.img
  2. Backup of the main partition: sudo dd bs=4M if=/dev/mmcblk0p2 of=raspbian.img

Well now I've these 2 img file: raspbian.img (~16GB) and raspbian_boot.img (~44MB), how can I restore these ones?

I know that I've to use these:

  1. sudo dd bs=4M if=raspbian_boot.img of=/dev/mmcblk0p1
  2. sudo dd bs=4M if=raspbian.img of=/dev/mmcblk0p2

But the real problem is: how should I partition the new SD? Which file system for each img? The first one has 3 different partitions (the first: /dev/mmcblk0p0 is not allocated at all)

Source Link
Timmy
  • 111
  • 5

How to restore SD backup

In order to backup the SD I followed this guide: https://www.raspberrypi.org/documentation/linux/filesystem/backup.md

  1. Backup of the boot partition: sudo dd bs=4M if=/dev/mmcblk0p1 of=raspbian_boot.img
  2. Backup of the main partition: sudo dd bs=4M if=/dev/mmcblk0p2 of=raspbian.img

Well now I've these 2 img file: raspbian.img (~16GB) and raspbian_boot.img (~44MB), how can I restore these ones?

I know that I've to use these:

  1. sudo dd bs=4M if=raspbian_boot.img of=/dev/mmcblk0p1
  2. sudo dd bs=4M if=raspbian.img of=/dev/mmcblk0p2

But the real problem is: how should I partition the new SD? Which file system for each img? The first one has 3 different partitions (the first: /dev/mmcblk0p0 is not allocated at all)