So how can I restore /root and /home partitions and make disk bootable? The third partition I can restore just by creating new one and simply copy user data files. Please advice me because it is my wife laptop

mount -o loop -t ext4 /path/to/myddimage.iso /path/to/mymountpoint
parted myddimage.iso unit b print
losetup -o<starting byte of partition from previous command> /dev/loopN myddimage.iso
mount /dev/loopN /path/to/mymountpoint
umount mymountpoint
losetup -d /dev/loopN
for i in 1 5 7
do
dd if=/dev/sda$i bs=10M conv=notrunc | gzip -c > /home/maciek/back/RSYNC/piotr_sda$i.iso.gz && md5sum /home/maciek/back/RSYNC/piotr_sda$i.iso.gz | awk '{ print $1 }' > /home/maciek/back/RSYNC/piotr_sda$i.iso.gz.md5 && ncftpput -u user -p password server /home/media/disk-2/ /home/maciek/back/RSYNC/piotr*
rm -f /home/maciek/back/RSYNC/piotr_sd*
done
Users browsing this forum: No registered users and 1 guest