fedora 20, use dd to backup partitions. There are two partitions on the disk
/dev/sdb2 and /dev/sdb3
My usual image backup is as follows:
1. Mount and zero out the empty space:
dd if=/dev/zero of=temp.dd bs=1M
until full empty disk is wiped with zeros, then
rm temp.dd
2. dd the partition while compressing it:
dd if=/dev/sdb2 conv=sync,noerror bs=64K | gzip -c > /mnt/wine/sdb2.ddimg.gz
dd if=/dev/sdb3 conv=sync,noerror bs=64K | gzip -c > /mnt/wine/sdb3.ddimg.gz
But today when I tried to put the system back to normal, I boot from Fedora
20 live cd, i did a
gunzip -c /mnt/wine/sdb2.img.gz | dd of=/dev/sdb2 conv=sync,noerror bs=64K
and
gunzip -c /mnt/wine/sdb3.img.gz | dd of=/dev/sdb3 conv=sync,noerror bs=64K
but after I reboot, I got following error:
Booting....
.
error: file '/grub2/i386-pc/normal.mod' not found.
Entering rescue mode...
grub rescue>
what's wrong with my operations and how to fix this error?
thanks a lot!