11-03-2016, 08:44 PM
Hi all
sd card is /dev/sdc .
1) backup
dd if=/dev/sdc of=~/Pine-mate-MBR.img bs=512 count=10000
partclone.vfat -c -s /dev/sdc1 -o ~/Pine-mate-sdx1of3.pcl
fsck /dev/sdc2
partclone.ext4 -c -s /dev/sdc2 -o ~/Pine-mate-sdx2of3.pcl
and then i put anothe sd card into USB .
2)restore
dd if=/root/Pine-mate-MBR.img of=/dev/sdc bs=512
partclone.vfat -r -s /root/Pine-mate-sdx1of3.pcl -o /dev/sdc1
partclone.ext4 -r -s /root/Pine-mate-sdx2of3.pcl -o /dev/sdc2
mkswap /dev/sdc3
---------------------------
all is done .
this is much faster by using dd .
----------
regards
sd card is /dev/sdc .
1) backup
dd if=/dev/sdc of=~/Pine-mate-MBR.img bs=512 count=10000
partclone.vfat -c -s /dev/sdc1 -o ~/Pine-mate-sdx1of3.pcl
fsck /dev/sdc2
partclone.ext4 -c -s /dev/sdc2 -o ~/Pine-mate-sdx2of3.pcl
and then i put anothe sd card into USB .
2)restore
dd if=/root/Pine-mate-MBR.img of=/dev/sdc bs=512
partclone.vfat -r -s /root/Pine-mate-sdx1of3.pcl -o /dev/sdc1
partclone.ext4 -r -s /root/Pine-mate-sdx2of3.pcl -o /dev/sdc2
mkswap /dev/sdc3
---------------------------
all is done .
this is much faster by using dd .
----------
regards