Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 2432

General discussion • CLI tool to clone Raspberry Pi disk to new disk (even smaller)

$
0
0
Before 3 months, I need to clone my 512GB disk to 120GB disk (Usage is less than 120GB), and I can't plug in monitor to use SD Card Copier, so I write a CLI tool (script) to copy Raspberry Pi disks [clone_rasp_disk - ZhongUncle GitHub](https://github.com/ZhongUncle/clone_rasp_disk). I want to help someone who thinks like me. Because I found too many posts asking this (from Google) and didn't have a good solution.

This tool will clone boot and system partitions and change something bound to hardware, which cause boot failed, so you can boot from new driver directly after clone and use it like before. And you even can clone to a SMALLER driver, unlike using dd.

This tool works like SD Card Copier from Raspberry Official, but can work in CLI, so you can use SSH to do it in your Pi, unnecessarily to plug in the monitor.

I also write a blog to tell you every step and why: [How to clone system to smaller disk/SD card on Raspberry Pi - ZhongUncle‘s blog](https://zhonguncle.github.io/blogs/6027 ... 80fb7.html), because I think you have the right to know what is happening on your device.

I want to you can try this tool and tell me if you are in some trouble, it will help me improve this tool.

Statistics: Posted by zhonguncle — Mon Jun 17, 2024 10:15 pm



Viewing all articles
Browse latest Browse all 2432

Trending Articles