Raspberry Pi: how to clone a SD card

I had to clone a SD card for my Raspberry Pi. DiskDump (dd) did the job.

Source: sdc, destination: sdi

dd if=/dev/sdc of=/dev/sdi bs=8M

dd has not a verbose output but we can get some progress information sending periodically the SIGUSR1 signal

watch -n2 "sudo kill -SIGUSR1 $(pidof dd)"

The output every 2 seconds:

7969177600 bytes (8.0 GB) copied, 587.801 s, 13.6 MB/s
954+0 records in
953+0 records out
7994343424 bytes (8.0 GB) copied, 590.067 s, 13.5 MB/s
957+0 records in
956+0 records out
8019509248 bytes (8.0 GB) copied, 591.918 s, 13.5 MB/s
960+0 records in
959+0 records out
8044675072 bytes (8.0 GB) copied, 593.774 s, 13.5 MB/s
961+1 records in
961+1 records out
8068792320 bytes (8.1 GB) copied, 595.125 s, 13.6 MB/s

No Comments

No comments yet.

RSS feed for comments on this post.

Leave a comment

WordPress Themes