In a previous posting, the Replication of a Raspberry pi SD Card is performed on an identical target SD card. If the goal is to replicate to a larger SD card with the same procedure:
If the source device is /dev/sdb
and the target device is /dev/sdc
. To replicate the SD card, run the following command as root:
sudo cat /dev/sdb >/dev/sdc
The SD card would need to be modified to extend the partition to utilize the incremental space on the larger SD card.
- What are the options to extend the partition and is there a best-practice?
- Is there a better (single step) command than
cat
that replicates the smaller SD card to the larger device and ensures the maximum size partition?
Is there a "best practice" or context-driven decision making process ("It depends on ....")?
raspi-config
utility to resize the disk and enable Raspbian to utilize the entirety of the SD-Card. In this exercise, raspi-config is not available because a different distro is replicated. Maybe this functionality common to all rPi Distros? – gatorback Dec 08 '19 at 16:16cat
tag was removed. Please help me understand the why, so that I can make better decisions when choosing tags – gatorback Dec 08 '19 at 17:36cat
command was incidental to the question -- that it was either a predecessor or successor to a re-partioning step or was to be replaced by a "better (single step) command". Feel free to re-add it if you think it's central to the question. @gatorback – Jeff Schaller Dec 08 '19 at 19:13