Open boyska opened 11 years ago
It should be enough to make something similar to
(dd if=$src bs=1 count=1048576; dd if=${src}1) > $dest
where $src
is the source device, $dest
is the destination one and 1048576
is just 2048*512
2048 is the typical start sector of the first partition; 512 is the typical sector size. This can be read by fdisk -l.
also
parted /dev/sdX unit b print | awk '{ print $3 }' | grep -A1 End | tail -n1
will get the number of bytes to copy from /dev/sdX
. It will probably be cleaner using python-parted
moved to v1.1
Who is working on it?
@paskao has something to show about it. yay!
From a freepto, it should be easy to create another one.