You are not logged in.

#1 2016-12-11 12:29:04

slashviper
Member
Registered: 2015-11-11
Posts: 17

Making a clone image from terminal with dd

Hi,
i would like to make a ghost image of the OS using dd command.
Source is an SSD drive and destination is an external HDD drive.
I tried Clonezilla from USB but it fails at the moment it starts cloning. Logs says just service stopped.
Do you know if i can do it from terminal when running OS? will it work ?
i was thinking maybe is better if i perform the dd from Live USB OS.
What would you reccomend to use to clone Bunsenlabs?
Thanks

Offline

#2 2016-12-11 13:22:18

nobody
The Great
Registered: 2015-08-10
Posts: 3,655

Re: Making a clone image from terminal with dd

I'd use partclone for cloning partitions and dd or ddrescue for cloning entire drives. You can apply extra compression when using dd or ddrescue if you are archiving to files; partclone will compress for you [when backing up to files].

Any cloning should only take place when the respective partition or drive is NOT in use, that is without running OS to ensure data and general file system consistency. Otherwise, you might back up garbage. So, make sure to use a live OS. I recommend using GRML, a live environment specifically designed for sysadmins and administrative work that comes with all the batteries included: https://grml.org/. apparently they haven't had updates in a long time. Using a Debian or Ubuntu live medium would be best I think.

Offline

#3 2016-12-11 13:28:28

slashviper
Member
Registered: 2015-11-11
Posts: 17

Re: Making a clone image from terminal with dd

Thanks, very helpful!

Offline

#4 2016-12-11 15:49:52

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,093
Website

Re: Making a clone image from terminal with dd

I prefer to use rsync as it allows more flexibility than dd but it would require that the target drive be partitioned, formatted & mounted correctly beforehand and the bootloader would have to be re-configured afterwards.

https://wiki.archlinux.org/index.php/Fu … with_rsync

Offline

Board footer

Powered by FluxBB