zesty mis-calculates destination partition size.
A partition and disk imaging/cloning program
Brought to you by:
steven_shiau
zesty 16-11-14.
cloning Raspberry Pi 3b
on raspberry pi, install distribution microSD as Raspbian
on server, clone using device to device using an identical microSD as target using beginner mode (both SDs are in USB slots.)
/dev/sdb7 (target) is one count larger than /dev/sda7 (source), thus expert mode -icde -k1 must be used.
/dev/sdb7 was moments earlier copied from partition table on /dev/sda.
this error is not produced on lower numbered partitions...perhaps size related.
I think I may have seen this on earlier versions as well.
Could you please show us the partition table by running:
sfdisk -d /dev/sdb
Thanks.
Steven
partimag@X9 ~ $ sudo sfdisk -d /dev/sde
sudo: unable to resolve host X9: Connection timed out
[sudo] password for partimag:
label: dos
label-id: 0x00095982
device: /dev/sde
unit: sectors
/dev/sde1 : start= 8192, size= 2280871, type=e
/dev/sde2 : start= 2289063, size= 28827225, type=5
/dev/sde5 : start= 2289065, size= 65534, type=83
/dev/sde6 : start= 2354600, size= 129024, type=c
/dev/sde7 : start= 2483625, size= 28625920, type=83
partimag@X9 ~ $
sorry, i didn't get an email with your response.
"/dev/sdb7 (target) is one count larger than /dev/sda7 (source), thus expert mode -icde -k1 must be used." -> Not really, you can use the the same partition table from souce without using opitons "-icds -k1" because source is smaller disk is than destination one.
The mechanism to calculate destination partition size for logical device is broken in this case, that's true. It's complicated so "-k1" option won't work, especially for logical drives.
Steven
Related
Bugs: #270
Even for the same brand, same model, it's still likely that the size is only 1 byte different. Therefore could you please run:
parted -s /dev/sda unit s print
parted -s /dev/sdb unit s print
Then post the results of these two commands?
Thanks.
Steven