Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 05:39 13 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : LINUX: Imaging the new Linux system....

Author Message
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9755
Posted: 05:30am 10 Aug 2019
Copy link to clipboard 
Print this post

Macrium Reflect does not run on Linux, and apparently can't EVER run on Linux due to the fact that you can't unmount the system partition. Something like that, so said their website.

So, I had to look for something else, and have found CloneZilla, which is what many Linux sites say is the tool to use to image a Linux system.

I have pretty much got this system running the way I want, so I want to make at least one image of the system, so if I F....... Ahem....

If I stuff something up, I can copy the saved image back to another SSD(or the old one), and carry on from where I am up to now, without having to do it all again.

Pretty much the same idea as cloning a Windoze drive, but just for Linux.

Is CloneZilla what others would recommend? I only ask, as I don't really know what Linux applications are best for certain things, so I have to rely much more on what the web suggests then my own knowledge at this point - for now.
Smoke makes things work. When the smoke gets out, it stops!
 
Revlac

Guru

Joined: 31/12/2016
Location: Australia
Posts: 1207
Posted: 12:07pm 10 Aug 2019
Copy link to clipboard 
Print this post

Nice to see your enjoying it Grogster.

I have been a Ubuntu user for a few years now and happy with it , I still have some win7 and win8 on other computers etc.

As for as drive cloning, I have not used any yet because the system was still running so well by the time the next edition was released.
I guess its time I tried messing around with it a bit, found plenty of interesting stuff to look at, So found this ubuntupit.com there might be some interesting tools reviewed there if you haven't already seen it.
Or here
Well hopefully there is something helpful there.
Cheers Aaron
Off The Grid
 
ajkw
Senior Member

Joined: 29/06/2011
Location: Australia
Posts: 290
Posted: 01:16pm 10 Aug 2019
Copy link to clipboard 
Print this post

Boot to a Linux OS from USB/CD and use dd at the command line. (I use Ubuntu, this should be correct for others)

dd if=/dev/sda of=/dev/sdb

if is input file or drive and of is output. Be very sure to get the /dev/xxx's correct. If you get it wrong there are consequences.

In the above example it will clone a drive to a drive, you can do other things like

dd if=/dev/hdb of=/image.img

To save space, you can compress data produced by dd with gzip, e.g.:

dd if=/dev/hdb | gzip -c > /image.img
You can restore your disk with:

gunzip -c /image.img.gz | dd of=/dev/hdb


This is not a tutorial but more a hint of the power of dd and what you can do at the command line. I have cloned drives but I haven't tested the space saving example.

Search dd & clone linux drive.

Cheers,
Anthony.
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4135
Posted: 02:46pm 10 Aug 2019
Copy link to clipboard 
Print this post

I've used dd like that (and with more compression e.g. bzip2) and it works fine - but you do need to make NO mistakes.

You can copy a running disk (have it fairly inactive) and it's also fine.

You can copy over the net e.g. from one disk (or partition) then probably to a compression program then across the net to somewhere (file or decompresss and to a disk or whatever).

Not exactly user-friendly.

As has been said:
Linux - a nice place to live but you wouldn't want to visit there.

(Somewhat unfair but does get the point across hopefully.)

John
 
bigfix
Senior Member

Joined: 20/02/2014
Location: Austria
Posts: 129
Posted: 04:25pm 10 Aug 2019
Copy link to clipboard 
Print this post

Why not Macrium Reflect Standalone Version from a USB Stick or CDrom ??

Macrium Reflect has a Menu Item to create this, so you need Windows only once to create it

I usually had success borrowing a Macrium Reflect bootable version from another PC
Edited 2019-08-11 02:28 by bigfix
 
SimpleSafeName

Guru

Joined: 28/07/2019
Location: United States
Posts: 351
Posted: 05:23pm 10 Aug 2019
Copy link to clipboard 
Print this post

Clonezilla is the way to go if you are going to clone it manually. It's its own version of linux and it has all of the tools that you will need.

That said, Mint allows you to set up backup images as part of the installation, which is what I do.
 
hitsware2

Guru

Joined: 03/08/2019
Location: United States
Posts: 734
Posted: 05:35pm 10 Aug 2019
Copy link to clipboard 
Print this post

  ajkw said  Boot to a Linux OS from USB/CD and use dd at the command line. (I use Ubuntu, this should be correct for others)

dd if=/dev/sda of=/dev/sdb

if is input file or drive and of is output. Be very sure to get the /dev/xxx's correct. If you get it wrong there are consequences.

In the above example it will clone a drive to a drive, you can do other things like

dd if=/dev/hdb of=/image.img

To save space, you can compress data produced by dd with gzip, e.g.:

dd if=/dev/hdb | gzip -c > /image.img
You can restore your disk with:

gunzip -c /image.img.gz | dd of=/dev/hdb


This is not a tutorial but more a hint of the power of dd and what you can do at the command line. I have cloned drives but I haven't tested the space saving example.

Search dd & clone linux drive.

Cheers,
Anthony.


Yes ! ...... If using Linux, one may as well actually use it ! :)
my site
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9755
Posted: 11:26pm 10 Aug 2019
Copy link to clipboard 
Print this post

  bigfix said  Why not Macrium Reflect Standalone Version from a USB Stick or CDrom ??

Macrium Reflect has a Menu Item to create this, so you need Windows only once to create it

I usually had success borrowing a Macrium Reflect bootable version from another PC


Excellent suggestion, thanks. I will try that one first, as I am familiar with Macrium Reflect, as I used it all the time to image my and other people's Windoze machines.

I did not even know they had a stand-alone version - I will revisit their website.

If that pans out, I will look into using CloneZilla, as there are several videos on YouTube about how you clone a Linux drive with that.
Smoke makes things work. When the smoke gets out, it stops!
 
hitsware2

Guru

Joined: 03/08/2019
Location: United States
Posts: 734
Posted: 11:40pm 10 Aug 2019
Copy link to clipboard 
Print this post

Hey Grogster ,

You don't like to use the terminal ?
my site
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9755
Posted: 12:33am 11 Aug 2019
Copy link to clipboard 
Print this post

The Linux terminal is a scary place to me. You can do pretty much ANYTHING in the terminal. That is its power, but also its danger in the wrong hands. I tend to heed the warnings of others that the terminal is NOT the place to be, if you are just playing around, as if you do the wrong thing in there, you can actually destroy the whole system.

I am getting more and more used to using it, but I still consider myself a novice at the Linux terminal, and prefer GUI applications to do things.

I guess I will get less nervous about it as I use it more and more from this point on as I move forward with Linux.

I might just have a go with the dd thing, and just be very sure I have the drives correctly identified.
Smoke makes things work. When the smoke gets out, it stops!
 
hitsware2

Guru

Joined: 03/08/2019
Location: United States
Posts: 734
Posted: 02:46am 11 Aug 2019
Copy link to clipboard 
Print this post

Yes ....... The dd works good and is simple.
I like to add as few apps as possible (to save space)
( Using Raspberry Pi as main P.C. ( There is some limitation of ARM software ) )
Edited 2019-08-11 12:46 by hitsware2
my site
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025