LinuxQuestions.org
Visit Jeremy's Blog.
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 12-15-2017, 08:17 PM   #1
arfon
Member
 
Registered: Apr 2004
Location: Texas
Distribution: Slackware
Posts: 178

Rep: Reputation: Disabled
How do I make Clonezilla compatible image from CLI?


I need to make a compressed disk image (all partitions) that would be compatible with Clonezilla. I REALLY don't want to reboot my desktop here just to run Clonezilla over the next hour.

Can anyone clue me in as to the commands (and pipes) that Clonezilla uses to make a complete disk image so I can just run it from my CLI? I know dd but, doesn't CZ use stuff like diskpart?

(I want it compatible with Clonezilla because that's the tool that I have used to make backups of ALL of my disk images).
 
Old 12-15-2017, 09:22 PM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
https://en.wikipedia.org/wiki/Tar_(computing)
then do that with
https://en.wikipedia.org/wiki/Dd_(Unix)

so you dd if your drive tar to image
https://wiki.archlinux.org/index.php/disk_cloning
now you know how we backed up real to real tape drives in the 70's

Last edited by Drakeo; 12-15-2017 at 09:24 PM.
 
Old 12-15-2017, 09:29 PM   #3
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
here is the issue you want to put that image on another drive a different size. you you need to compress it then place where you want it .
I like to use squashfs because it keeps the permissions.
http://tldp.org/HOWTO/SquashFS-HOWTO...gandusing.html
mksquashfs /mnt/sda1 sda1.sfs . now drop it on any drive unsquashfs sda1.sfs cd root.squaashfs mv -a * ../ and set your fstab for the device to boot you will have a new blkid for every new drive.

Last edited by Drakeo; 12-15-2017 at 09:33 PM.
 
Old 12-20-2017, 01:46 PM   #4
_roman_
Member
 
Registered: Dec 2017
Location: _Austro_Bavaria_
Distribution: gentoo / linux mint
Posts: 433

Rep: Reputation: 29
Quote:
I REALLY don't want to reboot my desktop here just to run Clonezilla over the next hour.
when you setup your box properly it has lvm2.

I moved during the use the physical extents to the external drive. Than dumped the "SAMSUNG" (crapware) HDD becasue of bad sectors. Put the new drive in my asus g70sg and made it boot.

lvm2 has a snapshot feature which is the thing you are requesting.
I tried it once, but I think i failed somewhere on the road. When I have understood it correctly. You make a lvm2 snapshot. Than you can backup from that point of time and keep on using your box. this is what the redhat documentation suggests, or how I understood it

--

usually you need a read only file system to make backups or restrict access.

Backup to UASP - USB 3.0 + SATA SSD is also a bonus. Taking a shower while making a backup reduces also the wait time

--

I suggest you ditch clonezilla

get same drive as you use.
recreate those partition tables and bootloader, e.g. gentoo handbook
cp -avr
*) for /boot
*) for /

very off topic now: also consider using lvm2 and luks. when your drive dies it is software encrypted. usual windows noob can not read it. ordinary File system, any idiot can read your data. I read hole windows 10 drive from the guy who sold me his asus g75vw. was an apple iphone user, so he was not that smart anyway. I found server passwords for his shop, lawyer papers with his bank debts and other very interesting findings. I was testing at that point if windows 10 had the same flaws as windows 95. and yes it has. I securely wiped hte drive and sold it, as it was second hand and used. He even let me wait 2 hours while we talked and finished hte trade. During that time he Windows 10 wiped the drive, lol ... Was very securely wiped :P => do not ask me about windows 10. I hardly use it. i see it from an outsider perspective when i use a webbrowser sometimes on it, or when i see others using it

Last edited by _roman_; 12-20-2017 at 01:58 PM.
 
Old 12-20-2017, 01:50 PM   #5
_roman_
Member
 
Registered: Dec 2017
Location: _Austro_Bavaria_
Distribution: gentoo / linux mint
Posts: 433

Rep: Reputation: 29
Quote:
Originally Posted by Drakeo View Post
so you dd if your drive tar to image
https://wiki.archlinux.org/index.php/disk_cloning
now you know how we backed up real to real tape drives in the 70's
Just do not suggest DISK Destroyer.

There are many fools who mix up source with destination. A fix is to use lvm2 with human readable volume names.

and when you use dd you use dd-rescue or testdisk on a dd-rescue image

--

much better is cp -avr
no one needs to bitwise copy every error, fragmentation of the file system, whatever else with DISK DESTROYER (= dd)

--

dd has its only use for creating special sectors on smartphones, to make an usb pendrive bootable and such.
 
Old 12-20-2017, 09:18 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 19,350

Rep: Reputation: 2977Reputation: 2977Reputation: 2977Reputation: 2977Reputation: 2977Reputation: 2977Reputation: 2977Reputation: 2977Reputation: 2977Reputation: 2977Reputation: 2977
Clonezilla only uses dd if it can't read and write native file system.

It will copy file by file and part of it used partclone as well as some other tools.
 
Old 12-20-2017, 10:15 PM   #7
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 480Reputation: 480Reputation: 480Reputation: 480Reputation: 480
why clonzila do the edited (work) your self. make the image and just drop it some where else make the compress it and expand it on another drive. and tune the fing drive to the name you want
nothing magic

Last edited by jefro; 12-20-2017 at 11:07 PM.
 
  


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
[SOLVED] Clonezilla Image Data JJJCR Linux - General 4 09-17-2012 08:17 PM
restoring image using clonezilla in citrix VM amondre Linux - Server 0 03-22-2011 08:10 AM
[SOLVED] My Clonezilla image files - how are they used ? MBA Whore Linux - Software 1 09-02-2009 07:08 PM
hot can make a text browser compatible mior of a sit that isnt normally compatible markyg852 Programming 2 04-14-2009 10:22 AM
clonezilla clone disk to image, when restore from image to destination hdd problem. hocheetiong Linux - Newbie 3 05-06-2008 08:59 PM

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

All times are GMT -5. The time now is 02:50 AM.

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