LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   error when trying to create a bootable img from clonezilla backup (https://www.linuxquestions.org/questions/linux-software-2/error-when-trying-to-create-a-bootable-img-from-clonezilla-backup-4175642336/)

Rosika 11-14-2018 05:50 AM

error when trying to create a bootable img from clonezilla backup
 
Hello,

I´ve run into a problem when trying to create a mountable img out of a clonezilla-backup.

For doing this I used
Code:

sudo cat /dir-to-images/sdb1.ext4-ptcl-img.gz.* | sudo gzip -d -c | sudo partclone.ext4 -C -r -W -s - -O /dir-to-new-image/hda1.img
which in my case translates to

Code:

sudo cat /media/rosika/58B6A7DE7CA15FC5/Lubuntu_2018-10-16-09-img/sdd2.ext2-ptcl-img.gz.* | sudo gzip -d -c | sudo partclone.ext2 -C -r -W -s - -O /media/rosika/545A-B3AE/sdd2.img
This worked for a few minutes:

Code:

Partclone v0.2.86 http://partclone.org
Starting to restore image (-) to device (/media/rosika/545A-B3AE/sdd2.img)
Calculating bitmap... Please wait... done!
File system:  EXTFS
Device size:  38,2 GB = 9329920 Blocks
Space in use:  27,3 GB = 6663415 Blocks
Free Space:    10,9 GB = 2666505 Blocks
Block size:  4096 Byte

but after 12,33% completion it stopped and I got the error-message:

Code:

target seek ERROR:Das Argument ist ungültigpleted:  12,33%, 848,55MB/min,     
Partclone fail, please check /var/log/partclone.log !2,37%, 843,94MB/min,

I looked up the log-entries:

Code:

Partclone v0.2.86 http://partclone.org
Starting to restore image (-) to device (/media/rosika/545A-B3AE/sdd2.img)
we need memory: 1174500 bytes
image head 4160, bitmap 1166240, crc 4100 bytes
Calculating bitmap... Please wait... done!
File system:  EXTFS
Device size:  38,2 GB = 9329920 Blocks
Space in use:  27,3 GB = 6663415 Blocks
Free Space:    10,9 GB = 2666505 Blocks
Block size:  4096 Byte
target seek ERROR:Das Argument ist ungültig

I´m really at loss here. Can anybody help me?

Tnx a lot in advance.

Rosika :(

P.S:
system: Lubuntu 16.04.5 LTS, 64 bit
partclone: 0.2.86-1

scasey 11-15-2018 12:49 AM

Please translate the error messages...this is an English-only forum.

I'm guessing it ran out of memory
Quote:

we need memory: 1174500 bytes
...but that's just a guess.

Rosika 11-15-2018 06:10 AM

Hi scasey,

sorry for not having translated.
Here are the messages again (# indicating translation).

Code:

target seek ERROR:Das Argument ist ungültigpleted:  12,33%, 848,55MB/min,  # argument is invalid   
Partclone fail, please check /var/log/partclone.log !2,37%, 843,94MB/min,

Code:

Partclone v0.2.86 http://partclone.org
Starting to restore image (-) to device (/media/rosika/545A-B3AE/sdd2.img)
we need memory: 1174500 bytes
image head 4160, bitmap 1166240, crc 4100 bytes
Calculating bitmap... Please wait... done!
File system:  EXTFS
Device size:  38,2 GB = 9329920 Blocks
Space in use:  27,3 GB = 6663415 Blocks
Free Space:    10,9 GB = 2666505 Blocks
Block size:  4096 Byte
target seek ERROR:Das Argument ist ungültig  # argument is invalid

Quote:

I'm guessing it ran out of memory
What exactly does that mean? I really can´t think of anything wrong in my configuration of commands. :confused:

dc.901 11-15-2018 07:19 AM

More like RAM or even perhaps space on disk drive.
Both, your input and output file is under /media/rosika/
Is this filesystem large enough?

Then how much RAM is in your system?

I would say, monitor your filesystem and memory usage when this command is running with watch; so open two more terminal windows and run something like:

Code:

watch free -h
watch df -h /media (or whatever filesystem)


Rosika 11-15-2018 08:39 AM

Hi dc.901,

thank you so much for your help. I finally succeeded. :)

My RAM is 4 GB. And I did what you suggested.

Now I chose the third partition of my HDD for my output file where there was enough free space for sure.
Code:

watch free -h

watch df -h /media/rosika/f14a27c2-0b49-4607-94ea-2e56bbf76fe1

My new command was
Code:

sudo cat /media/rosika/58B6A7DE7CA15FC5/Lubuntu_2018-10-16-09-img/sdd2.ext2-ptcl-img.gz.* | sudo gzip -d -c | sudo partclone.ext2 -C -r -W -s - -O /media/rosika/f14a27c2-0b49-4607-94ea-2e56bbf76fe1/kgw/Neu/sdd2.img
I kept watching the output of the two commands and couldn´t find anything unusual. Indeed everything was fine.
And: this time the whole process went through to 100 %. Output: "cloned successfully".

Being excited as far as the result is concerned I mounted the resulting sdd2.img with
Code:

sudo mount -o loop ./sdd2.img /mnt
from the respective directory.
Unmounting went well with
Code:

sudo umount sdd2.img
And indeed: it granted me access to all my personal data from my /home-directory which I had created with clonezilla. I´m so pleased. :)

Of course I wanted to find out why things didn´t go well in the first place.
My original command referred to a 128 GB stick with two equally large partitions. On the 1st one there is my clonezilla data. The second partition was empty. So I thought. But it turned out that in "trash" there were several 4 GB chunks of data. And indeed 33 % of the partition was used. I really didn´t know that:redface:.

So it seems everything works fine now.

Thanks again for your help with leading me into the right direction. I wouldn´t have thought of it myself.

Many greetings
Rosika


All times are GMT -5. The time now is 01:05 AM.