Alexandr Kuznetsov Posted September 1, 2016 Posted September 1, 2016 Dear gurus good afternoon. I ask for help because itself I don't understand any more what not so I do. I should make a clone of my sdcard, but nothing leaves. I tried so:I find the sdcardfdisk - lI create the empty file of an imagedd if=/dev/zero of=armbian.img bs=2048 count=1402144also I add him to looplosetup/dev/loop0 armbian.imgnow I clone the sdcard in loop the devicedd if=/dev/sdd of=/dev/loop0now I write down a half-scientific image on new sdcarddd bs=2048 if=armbian.img of=/dev/sddAs a result my sdcard doesn't seem on linux and I can't mount sections and loading doesn't happen to sdcard. Prompt please in what a mistake and as to me to make a clone of the sdcard.I am very grateful.
gompa Posted September 1, 2016 Posted September 1, 2016 i think you can just do : dd if=/dev/sdd of=/home/user/imagename.img sdd is the sdcard change user too your user (i have not tryed this with armbian images but it works for raspberry)
Alexandr Kuznetsov Posted September 1, 2016 Author Posted September 1, 2016 My new sdcard is a little less than old therefore at record of an image on the new card which has been created so: dd if=/dev/sdd of=/home/user/imagename.img, the message is given:dd: write error "/dev/sdd": On the device there is no empty seat left7563265+0 records are received7563264+0 records are sent 15489564672 bytes (15 GB), 4249,41 c, 3,6 MB/c are copied
tkaiser Posted September 1, 2016 Posted September 1, 2016 On 9/1/2016 at 3:11 PM, Alexandr Kuznetsov said: My new sdcard is a little less than old therefore at record of an image on the new card which has been created so That's the reason why most recent Armbian images do not use the full capacity of the installation media but leave a small spare area. To prevent this sort of problems since cards of 'same' size might differ by a few sectors in reality. A few more infos can be found by googling for 'backup sd card site:armbian.com' (seems the forum search is completely broken ATM), IIRC @rodolfo provided a script to clone in such a situation somewhere in the forums.
Alexandr Kuznetsov Posted September 1, 2016 Author Posted September 1, 2016 I haven't absolutely understood what next to do? how to me to transfer an image?
RagnerBG Posted September 1, 2016 Posted September 1, 2016 On 9/1/2016 at 3:44 PM, Alexandr Kuznetsov said: I haven't absolutely understood what next to do? how to me to transfer an image? You can shrink the image a little with GParted, to fit to your new card. Just make sure you don't cut file area. You can use this guide: Shrinking images on Linux
Alexandr Kuznetsov Posted September 1, 2016 Author Posted September 1, 2016 Also doesn't want to open. sdcard after record of an image doesn't open, I see the section, but gives an error message of reading the section.
rodolfo Posted September 1, 2016 Posted September 1, 2016 http://forum.armbian.com/index.php/topic/1331-armbian-sd-card-backup/page-2#entry11169 Hope this helps
Alexandr Kuznetsov Posted September 1, 2016 Author Posted September 1, 2016 On 9/1/2016 at 8:09 PM, rodolfo said: http://forum.armbian.com/index.php/topic/1331-armbian-sd-card-backup/page-2#entry11169 Hope this helps Thanks a lot, everything has turned out. I had only one question: whether this method of cloning is correct whether something will break? Also I apologize that not on a subject, but I am tormented by a question why after performance of nand-sata-install the root section is in the fstab file on / dev/mmcblk1p1 /dev/mmcblk1p1/ext4 defaults, noatime, nodiratime, commit=600, errors=remount-ro 0 1 , judging by fdisk - l the root section has to be / dev/mmcblk0p1 / dev/mmcblk0p1 2048 30469567 30467520 14.5G 83 Linux
Recommended Posts