Source harddisk: Size 500G. 210G of data. Used hexdump to check beyond 280G are all zeroes.
hexdump -C /dev/sdd2 --skip 280G --length 10G # all zeroes
Destination harddisk: Size 600G. Used hexdump to check beyond 250G are all zeroes (or useless data).
hexdump -C /dev/sdc3 --skip 250G --length 10G # all zeroes
I would like to copy all data from /dev/sdd2 to /dev/sdc3 with 250G offset in destination.
FYI: After mount, it is showing no files in destination. But I do not want to overwrite the first 250G, such that I might be possible to recover some files from there.
dd if=/dev/sdd2 of=/dev/sdc3 skip=0G seek=250K bs=1M count=280K status=progress
I tried using the dd command above. It should have done the job. But, after mount, no files in shown in the destination drive. I guess it is because the copied "file index table" is messing up with the original "file index table".
findto enableddto copy multiple files. But it does not handle directories.ddis good because it hasskipandseek. How to skip and seek by usingcporrsync? – midnite Nov 22 '22 at 12:43