Tool for cloning Raspberry Pi disk or SD card to another driver (even for smaller space). You can use it in your Raspberry, rather than using another Linux device. And it is very simple!
The usage is simple:
./clone_rasp_disk.sh [target_device_name]
For example:
./clone_rasp_disk.sh /dev/sdb
It will clone your local Raspberry Pi system and files to target disk /dev/sdb
.
If you want to know more details and explanations, please read my blog:
- English version: How to clone system to smaller disk/SD card on Raspberry Pi - ZhongUncle‘s blog
- 中文版: 如何克隆树莓派系统到较小的硬盘/SD卡上(如何分区、设置修复引导) - ZhongUncle CSDN
If you find a bug, please report it in issue!