SliTaz SliTaz Forum

You are not logged in.

#1 2018-10-30 08:36:31

neoclust3
Member
Registered: 2018-10-09
Posts: 27

Partclone needs to be rebuilt

Hi,

i try to use partclone on slitaz but it can't start because it is searching for libntfs-3g.so.85  but thsi is  libntfs-3g.so.88 which is installed.

Offline

#2 2018-10-30 11:31:05

Erkan_Yilmaz
Member
Registered: 2014-12-18
Posts: 78

Re: Partclone needs to be rebuilt

Hi,

I have rebuilt it and upgraded it also to version v0.2.70

Can you check if it works for you?

Currently only downloadable here: (1)

install as root:

tazpkg -i ./partclone-0.2.70.tazpkg

I only invoked it, nothing more than (2)

Erkan YILMAZ

http://people.slitaz.org/~eyilmaz/blog/

(1) http://cook.slitaz.org/cooker.cgi?pkg=partclone

(2)

./partclone.imager

partclone.imager v0.2.70 http://partclone.org

Usage: partclone.imager [OPTIONS]

    Efficiently clone to an image, device or standard output.

    -o,  --output FILE      Output FILE

    -O   --overwrite FILE   Output FILE, overwriting if exists

    -W   --restore_raw_file create special raw file for loop device

    -s,  --source FILE      Source FILE

    -L,  --logfile FILE     Log FILE

    -c,  --clone            Save to the special image format

    -r,  --restore          Restore from the special image format

    -b,  --dev-to-dev       Local device to device copy mode

    -D,  --domain           Create ddrescue domain log from source device

         --offset_domain=X  Add offset X (bytes) to domain log values

    -R,  --rescue           Continue clone while disk read errors

    -w,  --skip_write_error Continue restore while write errors

    -dX, --debug=X          Set the debug level to X = [0|1|2]

    -C,  --no_check         Don't check device size and free space

    -N,  --ncurses          Using Ncurses User Interface

    -I,  --ignore_fschk     Ignore filesystem check

    -i,  --ignore_crc       Ignore crc check error

    -F,  --force            Force progress

    -f,  --UI-fresh         Fresh times of progress

    -B,  --no_block_detail  Show progress message without block detail

    -z,  --buffer_size SIZE Read/write buffer size (default: 1048576)

    -q,  --quiet            Disable progress message

    -E,  --offset=X         Add offset X (bytes) to OUTPUT

    -v,  --version          Display partclone version

    -h,  --help             Display this help

Offline

#3 2018-10-30 16:03:09

neoclust3
Member
Registered: 2018-10-09
Posts: 27

Re: Partclone needs to be rebuilt

as new partclone would need new drbl, etc can we just rebuild current partclone for now ?

I am OK to test the rebuild version.

Offline

#4 2018-10-31 14:10:41

mojo
Administrator
Registered: 2011-03-29
Posts: 2,173

Re: Partclone needs to be rebuilt

@neoclust3

Partclone-0.2.49 built against current 5.0 rolling repo.

tux@slitaz:~$ ldd /usr/sbin/partclone.ntfs

/usr/sbin/partclone.ntfs:

    libcom_err.so.2 => /lib/libcom_err.so.2 (0xb77bc000)

    libntfs-3g.so.88 => /lib/libntfs-3g.so.88 (0xb7772000)

    libncursesw.so.5 => /lib/libncursesw.so.5 (0xb772d000)

    libpthread.so.0 => /lib/libpthread.so.0 (0xb7712000)

    libtinfo.so.5 => /lib/libtinfo.so.5 (0xb76f5000)

    libc.so.6 => /lib/libc.so.6 (0xb757f000)

    /lib/ld-linux.so.2 => /lib/ld-2.14.1.so (0xb77c1000)

Offline

#5 2018-11-02 00:06:31

neoclust3
Member
Registered: 2018-10-09
Posts: 27

Re: Partclone needs to be rebuilt

thanks we will test today.

Offline

#6 2018-11-02 07:30:12

neoclust3
Member
Registered: 2018-10-09
Posts: 27

Re: Partclone needs to be rebuilt

it works perfectly with this new package.

Offline

#7 2018-11-02 08:07:24

Erkan_Yilmaz
Member
Registered: 2014-12-18
Posts: 78

Re: Partclone needs to be rebuilt

> it works perfectly with this new package.

just to clarify:

you are talking about 0.2.49 or 0.2.70 ?

Offline

#8 2018-11-02 10:00:29

neoclust3
Member
Registered: 2018-10-09
Posts: 27

Re: Partclone needs to be rebuilt

0.2.49.

But i think we need to update all clonezilla stack to a newer version because sfdisk is too recent.

clonezilla stack is   clonezilla, partclone, drbl ( i think i don't forget anything )

Offline

#9 2018-11-14 08:52:05

neoclust3
Member
Registered: 2018-10-09
Posts: 27

Re: Partclone needs to be rebuilt

i am trying to build partclone 0.2.89

but it fails with:

make[2]: Leaving directory '/home/slitaz/wok/partclone/source/partclone-0.2.89/src'

Making all in docs

make[2]: Entering directory '/home/slitaz/wok/partclone/source/partclone-0.2.89/docs'

make[2]: Nothing to be done for 'all'.

make[2]: Leaving directory '/home/slitaz/wok/partclone/source/partclone-0.2.89/docs'

Making all in tests

make[2]: Entering directory '/home/slitaz/wok/partclone/source/partclone-0.2.89/tests'

make[2]: Nothing to be done for 'all'.

make[2]: Leaving directory '/home/slitaz/wok/partclone/source/partclone-0.2.89/tests'

Making all in fail-mbr

make[2]: Entering directory '/home/slitaz/wok/partclone/source/partclone-0.2.89/fail-mbr'

sh compile-mbr.sh

compile-mbr.sh: line 16: dpkg-architecture: not found

compile-mbr.sh: line 16: dpkg-architecture: not found

The architecture is not x86, so the file 'fail-mbr.bin' is not compiled

Copying 'fail-mbr.bin.orig' to 'fail-mbr.bin'

Checking the file:

files fail-mbr.bin and fail-mbr.bin.orig differ significantly:

diff: can't stat 'f1.obj': No such file or directory

Makefile:498: recipe for target 'fail-mbr.bin' failed

make[2]: *** [fail-mbr.bin] Error 1

make[2]: Leaving directory '/home/slitaz/wok/partclone/source/partclone-0.2.89/fail-mbr'

Makefile:397: recipe for target 'all-recursive' failed

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory '/home/slitaz/wok/partclone/source/partclone-0.2.89'

Makefile:338: recipe for target 'all' failed

make: *** [all] Error 2

ln: /sbin/findfs: File exists

Build dependencies to remove: 30

Removing: autoconf automake docbook-xml docbook-xml-412 docbook-xml-42

docbook-xml-43 docbook-xml-44 docbook-xsl e2fsprogs e2fsprogs-dev fuse-dev

libcomerr libcomerr-dev libcrypto-dev libgcrypt libgpg-error libxslt

ncursesw-dev ntfs-3g ntfs-3g-dev ntfsprogs ntfsprogs-dev openssl-dev pciids

udev usbids util-linux-blkid util-linux-mount util-linux-smartcols

util-linux-uuid-dev

ERROR: cook failed

Debug information

=============================================================================================================================================================================================================================================

Cook date: 2018-11-14 08:48

Cook time: 33s

ERROR: cook failed

ERROR: cook failed

sh: can't open 'autogen'

diff: can't stat 'f1.obj': No such file or directory

=============================================================================================================================================================================================================================================

Offline

#10 2018-11-14 09:11:28

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: Partclone needs to be rebuilt

compile-mbr.sh: line 16: dpkg-architecture: not found

try to tazpkg -gi dpkg

Offline

#11 2018-11-14 09:45:27

neoclust3
Member
Registered: 2018-10-09
Posts: 27

Re: Partclone needs to be rebuilt

i don't see it after installing dpkg :

# tazpkg -gi dpkg

"dpkg" package is already installed.

You can use the --forced option to force installation.

home/slitaz# dpkg-architecture

/bin/sh: dpkg-architecture: not found

Offline

#12 2018-11-14 10:41:31

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Partclone needs to be rebuilt

Hi there,

The problem comes from [c]$src/fail-mbr/compile-mbr.sh[/c] script.

There [c]dpkg-architecture[/c] (I can only guess what is it) used to determine architecture of your system. Right now I try to make latest version of Partclone, 0.3.12, and here this line looks like:

[c]if dpkg-architecture -e amd64 || dpkg-architecture -e i386 || [ "$RPM_ARCH" = "x86_64" ] || [ "$RPM_ARCH" = "i386" ]; then[/c]

so I added

[c]export RPM_ARCH=$ARCH[/c]

as the first line in the function [c]compile_rules()[/c] in the [c]receipt[/c].

So, it isn't a problem.

Problem in neoclust3's report is:

[c]diff: can't stat 'f1.obj': No such file or directory[/c]

Looking the aforementioned script, [c]f1.obj[/c] is created using command:

[c]objdump -D -b binary -mi386 -Maddr16,data16 fail-mbr.bin > f1.obj[/c]

And [c]fail-mbr.bin[/c] in your case is the copy of [c]fail-mbr.bin.orig[/c] (see the message "Copying 'fail-mbr.bin.orig' to 'fail-mbr.bin'"). Check the file [c]$src/fail-mbr/fail-mbr.bin.orig[/c] & [c]$src/fail-mbr/fail-mbr.bin[/c] existence. If they are there, then looks like your [c]objdump[/c] can't produce output.

---

In my case, with version 0.3.12, solution is easy:

1. [c]export RPM_ARCH=$ARCH[/c] and nevermind [c]dpkg-architecture[/c] absence;

2. Second stop, it show me:

[c]sh compile-mbr.sh
compile-mbr.sh: line 17: dpkg-architecture: not found
compile-mbr.sh: line 17: dpkg-architecture: not found
Checking the file:
files fail-mbr.bin and fail-mbr.bin.orig differ significantly:
--- f1.obj
+++ f2.obj
@@ -1,5 +1,5 @@

-fail-mbr.bin:     file format binary
+fail-mbr.bin.orig:     file format binary

Disassembly of section .data:
@@ -17,7 +17,7 @@
    d:    42                       inc    %dx
    e:    52                       push   %dx
    f:    90                       nop
-  10:    31 c0                    xor    %ax,%ax
+  10:    33 c0                    xor    %ax,%ax
   12:    50                       push   %ax
   13:    1f                       pop    %ds
   14:    be 33 7c                 mov    $0x7c33,%si
make[2]: *** [Makefile:506: fail-mbr.bin] Error 1
make[2]: Leaving directory '${src}/fail-mbr'
make[1]: *** [Makefile:402: all-recursive] Error 1
make[1]: Leaving directory '${src}'
make: *** [Makefile:343: all] Error 2[/c]
But there:

[c]-  10:    31 c0                    xor    %ax,%ax
+  10:    33 c0                    xor    %ax,%ax[/c]
I see the same assembly instructions with the different opcodes, so I skip this test using onliner (I put it to the line next to "export RPM_ARCH=$ARCH" in receipt):

[c]sed -i 's|exit 1|exit 0|' fail-mbr/compile-mbr.sh[/c]

Well, no more problem.

---

PS. Look here for you assistance: partclone @ next & partclone @ next64. Click on "receipt & stuff" button, look for "logs", etc.

Offline

#13 2018-11-15 14:22:08

neoclust3
Member
Registered: 2018-10-09
Posts: 27

Re: Partclone needs to be rebuilt

it builds well for me too this way.

thank you.

Btw when you update partclone don't forget to update the whole stack ( partclone, clonezilla, drbl )

Offline

#14 2018-11-15 19:30:11

lexeii
Administrator
Registered: 2012-03-21
Posts: 1,853

Re: Partclone needs to be rebuilt

Well, thank you for the tip ;-)

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.019 seconds, 7 queries executed - Memory usage: 1.57 MiB (Peak: 1.77 MiB) ]