LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-14-2018, 06:50 AM   #1
Rosika
Member
 
Registered: Apr 2017
Distribution: Lubuntu 64 bit
Posts: 268

Rep: Reputation: Disabled
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

Last edited by Rosika; 11-14-2018 at 07:00 AM.
 
Old 11-15-2018, 01:49 AM   #2
scasey
Senior Member
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.7.1908
Posts: 4,371

Rep: Reputation: 1537Reputation: 1537Reputation: 1537Reputation: 1537Reputation: 1537Reputation: 1537Reputation: 1537Reputation: 1537Reputation: 1537Reputation: 1537Reputation: 1537
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.
 
Old 11-15-2018, 07:10 AM   #3
Rosika
Member
 
Registered: Apr 2017
Distribution: Lubuntu 64 bit
Posts: 268

Original Poster
Rep: Reputation: Disabled
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.
 
Old 11-15-2018, 08:19 AM   #4
dc.901
Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS 6-7; SuSE 8-12
Posts: 657

Rep: Reputation: 199Reputation: 199
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)
 
Old 11-15-2018, 09:39 AM   #5
Rosika
Member
 
Registered: Apr 2017
Distribution: Lubuntu 64 bit
Posts: 268

Original Poster
Rep: Reputation: Disabled
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.

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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Create bootable kvm image(.img) from bzimage tehniyat Linux - Newbie 0 11-06-2018 07:45 AM
[SOLVED] Unable to create bootable SD card from img file using dd i8dbbq Linux - General 4 04-15-2017 06:07 PM
Convert bootable USB .img file to bootable CD .iso file Chris.Bristol Linux - Software 7 01-12-2013 02:00 PM
LXer: Clonezilla-release Stable Clonezilla live (2.0.1-15) Released LXer Syndicated Linux News 0 12-18-2012 10:21 PM
create clonezilla bootable .iso ? linux_sj Linux - Software 3 07-28-2011 01:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration