I need to restore a partition images on another machine to the unused space on my laptop.
I'm using netcat and dd to restore the partition.
On laptop:
nc -l 192.168.192.254 9000 | dd bs=1024 conv=notrunc,noerror seek=<some block pos> of=/dev/sda
On W/S:
dd if=part.img bs=1024 | nc 192.168.192.254 9000
The problem is that fdisk -l displays start & end sectors of the partitions and I need to know blocks.
How do I determine the block number after the last partition to start writing this image???
---------- Post added at 07:42 PM ---------- Previous post was at 07:04 PM ----------
Displays blocks per partition.
I could add those numbers up but is sure would be nice to have a utility that just give you what you need.
I really don't want to screw this up - any thoughts?