hi all .
i tried clone copy of sd card .
by kali linux ,
dd if=/dev/mmcblk0 of=/dev/sdb bs=16M
/dev/mmcblk0 is original sd card , and /dev/sdb is cloned sd card .
but this method is to be cloned bigger size sd card .
what to do to clone to smaller seze sd card ?
the clone methods by using rsync are failed , i do not know the reason .
You should not clone a active partition.
Your best bet would be to plug the SD card into a usb reader, then something like:
dd if=/dev/sda of=/dev/sdb
Where /dev/sda is the SD card you want to clone, /dev/sdb is the target card.
Or for simplicity. Win32Diskimager, click read to create an .img file. You can then write that to another SD card.
i use kali linux .
it runs on intel CPU .
it has both usb intterfaces and sd card interface .
so dd if=sd card interface of=usb intterfaces .
by the way
i can clone sd card on running arm machine which runs armbian .
Ah, my bad, I assumed you were trying to run DD the active SD card on a SBC, apologies.
recently i backup micro sd card to hard disk by archlinux .
fdisk -l /dev/sdb
dd if=/dev/sdb of=./MBR-$x.img bs=512 count=10000
partclone.ext4 -c -s /dev/sdb1 -o ./sdb1-$x.pcl
partclone.ext4 -c -s /dev/sdb2 -o ./sdb2-$x.pcl
restore namely clone is easy .
for example about sdb1
dd if=./MBR.img of=/dev/sdb bs=512 count=10000
partclone.ext4 -r -s ./sdb1.pcl -o /dev/sdb1
this is time sparering and more volume sparing .
i also use this for btrfs .