Menu

#270 zesty mis-calculates destination partition size.

testing_clonezilla
open
nobody
None
5
2017-01-05
2016-11-23
No

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.

Related

Bugs: #270

Discussion

  • Steven Shiau

    Steven Shiau - 2016-11-27

    Could you please show us the partition table by running:
    sfdisk -d /dev/sdb
    Thanks.

    Steven

     
  • William Smith

    William Smith - 2016-12-22

    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.

     
  • Steven Shiau

    Steven Shiau - 2016-12-28

    "/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

     
  • bill smith

    bill smith - 2016-12-28
    not so - read it again (or maybe I don't understand your response).

    beginner mode - duplicate device to devce - source partition is being used, but copy fails with an incorrect sector count.

    source and target devices are the same size - exactly. same brand/model nand.

    ...so is it a bug you will fix, or continue using work around?

    -------- Original Message --------
    Subject: [clonezilla:bugs] #270 zesty mis-calculates destination
    partition size.
    From: "Steven Shiau" <steven_shiau@users.sf.net>
    Date: Wed, December 28, 2016 4:18 am
    To: "[clonezilla:bugs] " <270@bugs.clonezilla.p.re.sf.net>

    "/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

    [bugs:#270] zesty mis-calculates destination partition size.
    Status: open
    Group: testing_clonezilla
    Created: Wed Nov 23, 2016 11:43 PM UTC by William Smith
    Last Updated: Thu Dec 22, 2016 03:41 AM UTC
    Owner: nobody
    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.

    Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/clonezilla/bugs/270/
    To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
     

    Related

    Bugs: #270

  • Steven Shiau

    Steven Shiau - 2017-01-05

    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

     

Log in to post a comment.

MongoDB Logo MongoDB