LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 05:50 AM   #1
Rosika
Member
 
Registered: Apr 2017
Distribution: Lubuntu 64 bit
Posts: 280

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 06:00 AM.
 
Old 11-15-2018, 12:49 AM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
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, 06:10 AM   #3
Rosika
Member
 
Registered: Apr 2017
Distribution: Lubuntu 64 bit
Posts: 280

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, 07:19 AM   #4
dc.901
Senior Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
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, 08:39 AM   #5
Rosika
Member
 
Registered: Apr 2017
Distribution: Lubuntu 64 bit
Posts: 280

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



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 06:45 AM
[SOLVED] Unable to create bootable SD card from img file using dd i8dbbq Linux - General 4 04-15-2017 05:07 PM
Convert bootable USB .img file to bootable CD .iso file Chris.Bristol Linux - Software 7 01-12-2013 01:00 PM
LXer: Clonezilla-release Stable Clonezilla live (2.0.1-15) Released LXer Syndicated Linux News 0 12-18-2012 09:21 PM
create clonezilla bootable .iso ? linux_sj Linux - Software 3 07-28-2011 12:11 PM

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

All times are GMT -5. The time now is 11:13 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
Open Source Consulting | Domain Registration