RPi: Copy SD card, clone Raspbian

From CMEE4K
Jump to navigation Jump to search

Use command line dd to clone SD RAM

  • dd if=/dev/sda of=/dev/sdb bs=4M

Use Raspbian piclone (GUI) utilities

  • Using Accessories > SD Card Copier program
    • From: SC64G (/dev/mmcblk0)
    • To: MXT-USB Storage Device (/dev/sda)

Note: It can only copy one time, then it hangs on the Partition 2 of 2. Need to reboot, and reinsert the SDRAM, otherwise we cannot select as target.

Other Commands

  • lsblk - show the Block device
  • sudo apt install eject
  • sudo eject /dev/sda

Use pv Pipe Viewer command to monitor the data being send through the pipe.

  • sudo apt install pv
  • diskutil unmountDisk /dev/disk2
  • pv openwrt.img | sudo dd of=/dev/rdisk2 bs=1m