The sdcard of my raspberry 3 crashed a few weeks ago. I am trying to restore the raspbian system on another sdcard of the same capacity using a backup image of the sdcard created before the crash.
Using a Lubuntu virtual box hosted on my windows 10 computer, I am entering this command line in the terminal
gunzip --stdout ./backup_file.gz | sudo dd bs=4M of=/dev/sdb
as propose the website enter link description here. sdb is the sdcard. The copy takes some time (~10h) but it is a 64GB sd card, so it's normal I think. The process is finishing without any error.
My problem is that when I insert the sdcard back in the raspberry pi and turn it on, nothing append : the two lights of the pi are turned on together, they are not blanking at all, and nothing append after. No signal is sent to the HDMI cable neither.
What I already tried without success :
- Taking an older backup file
- Taking another sd card
- Taking another raspberry pi 3
Do you have any idea of what is going on ? Thank you in advance for your help.
EDIT1 : for information, I have created the backup image of the raspberry pi 3 while it was still ok using this command line : sudo dd bs=4M if=/dev/mmcblk0 | gzip > /media/pi/USBkey/backup_file.gz
EDIT2 : After the restore operation, I can't visualize the result in gparted. I am getting this error : Invalid partition table on /dev/sdb -- wrong signature ffff.
EDIT3 : I think that there is a partition problem when copying the image on a new sdcard. Indeed, using sfdisk
:
Exploring the partitions of the backup image
sudo sfdisk -l <PATH_TO_IMAGE>
:Disque backup-20170201 : 58,2 GiB, 62537072640 octets, 122142720 secteurs Unités : sectors of 1 * 512 = 512 octets Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xd94ffdb3 Périphérique Amorçage Start Fin Secteurs Size Id Type backup-20170201p1 2048 251953 249906 122M e W95 FAT16 (LBA) backup-20170201p2 251954 122142719 121890766 58,1G 5 Étendue backup-20170201p5 253952 319485 65534 32M 83 Linux backup-20170201p6 319488 454655 135168 66M c W95 FAT32 (LBA) backup-20170201p7 458752 122142719 121683968 58G 83 Linux
Exploring the partitions of the sdcard
sudo sfdisk -l <PATH_TO_SDCARD>
:Ignoring extra data in partition table 5. Ignoring extra data in partition table 5. Ignoring extra data in partition table 5. Invalid flag 0xffff of EBR (for partition 5) will be corrected by w(rite). Disque /dev/sdb : 59,6 GiB, 64021856256 octets, 125042688 secteurs Unités : sectors of 1 * 512 = 512 octets Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xd94ffdb3 Périphérique Amorçage Start Fin Secteurs Size Id Type /dev/sdb1 2048 251953 249906 122M e W95 FAT16 (LBA) /dev/sdb2 251954 122142719 121890766 58,1G 5 Étendue /dev/sdb5 4295219249 8590186543 4294967295 2T ff BBT
How can I solve that ?
tar
command suggested you DID NOT backup your image.