You need to make a copy of the disc with a breakdown of the image into parts. Preferably with the possibility of a pause. Because data transfer occurs using a flash drive. I found part of the solution, but I have not figured out how to make a breakdown on the fly.

sudo dd if=/dev/sdXY bs=1M conv=noerror | gzip -c > /mnt/backup/root.dd.gz 

see here.

The task is to copy files, but the disk is damaged, despite the fact that it is mounted and you can work with files, some files freeze when copying. If to pass them, then only manually. The only option so far is to use dd and work with the image. But the PC on which it is has an insufficiently large disk, and transmission over the network is unstable.

  • Manually, via dd bs=1G skip=2 count=1 - user236014
  • You can turn into a loop: for i in $(seq 1 5); do echo dd skip="$i" bs=2G count=1 ; echo 'Insert next volume'; read ; done for i in $(seq 1 5); do echo dd skip="$i" bs=2G count=1 ; echo 'Insert next volume'; read ; done for i in $(seq 1 5); do echo dd skip="$i" bs=2G count=1 ; echo 'Insert next volume'; read ; done - user236014
  • @Anon is it possible to get an explanation for the comments? - shaman888
  • To score on the OS - it will still not feel the best way after copying to a fresh screw and you still need to reinstall. Use rsync --ignore-errors . If the transmission over the network is unstable, then most likely the problem is also in the mother. Just take a screwdriver, unscrew the screw and hook it to another computer. Save a lot of time. Do you need to drag the info disk? - don Rumata
  • bmap-tools try. github.com/01org/bmap-tools - 0andriy

0