Clonezilla+partclone: Error while cloning: partclone.dd: invalid option -- 'z'

Bug #1357949 reported by jj05
32
This bug affects 7 people
Affects Status Importance Assigned to Milestone
clonezilla (Ubuntu)
Fix Released
Undecided
Georges Khaznadar
partclone (Ubuntu)
Fix Released
Undecided
Georges Khaznadar

Bug Description

Clonezilla recommends partclone. However the version included with Trusty is older and doesn't support the -z option which was added in later version, and thus cloning won't work.

Run partclone: partclone.dd -z 10485760 -N -L /var/log/partclone.log -s /dev/sdc1 --output - | pigz -c --fast -b 1024 -p 16 | split -b 200000000m - /home/partimag/my-image/sdc1.dd-img. 2> /tmp/split_error.ArOosz
partclone.dd: invalid option -- 'z'

Workaround was to install up-to-date .deb packages from Debian:
https://packages.debian.org/sid/partclone
https://packages.debian.org/sid/libntfs10

Trusty includes partclone 0.2.51 however the -z option was only added with version 0.2.61 .

jj05 (h-launchpad-jj05)
description: updated
description: updated
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in clonezilla (Ubuntu):
status: New → Confirmed
Changed in partclone (Ubuntu):
status: New → Confirmed
Revision history for this message
Georges Khaznadar (georgesk) wrote :

The newest packages from Debian have entered Ubuntu

Changed in partclone (Ubuntu):
assignee: nobody → Georges Khaznadar (georgesk)
Changed in clonezilla (Ubuntu):
assignee: nobody → Georges Khaznadar (georgesk)
status: Confirmed → Fix Released
Changed in partclone (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
jj05 (h-launchpad-jj05) wrote :

It's marked as Fix released, but packages in trusty and utopic are still on 0.2.51.

Revision history for this message
Georges Khaznadar (georgesk) wrote : Re: [Bug 1357949] Re: Clonezilla+partclone: Error while cloning: partclone.dd: invalid option -- 'z'

Dear jj05,

you are right.

However, how can one trigger the migration of the Debian package to
Ubuntu? It has been done automatically in the past, and I did not care
about it.

Best regards, Georges.

jj05 a écrit :
> It's marked as Fix released, but packages in trusty and utopic are still
> on 0.2.51.
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/1357949
>
> Title:
> Clonezilla+partclone: Error while cloning: partclone.dd: invalid
> option -- 'z'
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/clonezilla/+bug/1357949/+subscriptions
>

--
Georges KHAZNADAR et Jocelyne FOURNIER
22 rue des mouettes, 59240 Dunkerque France.
Téléphone +33 (0)3 28 29 17 70

Revision history for this message
universa1 (misterxy-b) wrote :

Hello,

the bug is still present as of today :( And the proposed workaround doesn't work either, since that get's me an unsolveable dependency to "libntfs-3g851"

Revision history for this message
Georges Khaznadar (georgesk) wrote :

Hello,

I am maintaining partclone for Debian, which provide the version
0.2.73-2. Ubuntu provides an older version, 0.2.51-1u3

I ignore who cares about synchronizing Debian and Ubuntu packages, and I
suspect that the dependency chain provided in the latest package is
safer than the dependencies stated by the outdated package.

Best regards, Georges.

universa1 a écrit :
> Hello,
>
> the bug is still present as of today :( And the proposed workaround
> doesn't work either, since that get's me an unsolveable dependency to
> "libntfs-3g851"
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/1357949
>
> Title:
> Clonezilla+partclone: Error while cloning: partclone.dd: invalid
> option -- 'z'
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/clonezilla/+bug/1357949/+subscriptions
>

--
Georges KHAZNADAR et Jocelyne FOURNIER
22 rue des mouettes, 59240 Dunkerque France.
Téléphone +33 (0)3 28 29 17 70

Revision history for this message
sef (stace-fauske) wrote :

In 14.04, I had success by changing some lines in this file
/usr/share/drbl/sbin/ocs-functions

= CREATING AN IMAGE FROM HDD =
  Inside function 'save_part_by_partclone' change line from:
cmd_partclone="partclone.${fs_p} $PARTCLONE_SAVE_OPT -L $partclone_img_info_tmp -c -s $source_dev --output - | $compress_prog_opt"

  to:
cmd_partclone="partclone.${fs_p} -N -L $partclone_img_info_tmp -c -s $source_dev --output - | $compress_prog_opt"

= RESTORING AN IMAGE TO HDD =
  Inside function 'unicast_restore_by_partclone' change lines from:
| LC_ALL=C partclone.${fs_} $PARTCLONE_RESTORE_OPT -L $partclone_img_info_tmp -s - -r -o $part

  to:
| LC_ALL=C partclone.${fs_} -N -L $partclone_img_info_tmp -s - -r -o $part

Admittedly, it's kind of a hammer, but I don't have time to troubleshoot it any further than the couple of things I will use it for.

Revision history for this message
sef (stace-fauske) wrote :

Can't edit my above post. I did a little more digging and found to edit the following file as such:

/etc/drbl/drbl-ocs.conf

Change lines inside that file like this:
# Options to be appended in the partclone command, for save and restore.
# For example, for restoring, if you want to ignore device size checking, "-C" can be put, like:
# PARTCLONE_RESTORE_OPT_INIT="-C"
# From Partclone 0.2.61, we switch to use "-z" instead of "-m":
#~ PARTCLONE_SAVE_OPT_INIT="-z 10485760"
PARTCLONE_SAVE_OPT_INIT="-m 10485760"
#~ PARTCLONE_RESTORE_OPT_INIT="-z 10485760"
PARTCLONE_RESTORE_OPT_INIT="-m 10485760"
#~ PARTCLONE_RESTORE_ONTHEFLY_OPT_INIT="-z 10485760"
PARTCLONE_RESTORE_ONTHEFLY_OPT_INIT="-m 10485760"

Since I'm using partclone version 0.2.51, I need option -m rather than -z.

And actually the issue appears to be with drbl, not partclone or clonezilla.
drbl should maintain a different deb file for ubuntu 14.04.
Current for 14.04 is drbl_2.6.15-1_all.deb.
Current for 16.04 is drbl_2.11.15-1_all.deb.
Just re-package the 2.6.15-1_all.deb above with my changes in file /etc/drbl/drbl-ocs.conf.
My changes would be good until (if) partclone is updated in 14.04 to v 0.2.61.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.