dd

Story: Backup or Clone a Disk in Linux by using ClonezillaTotal Replies: 2
Author Content
penguinist

May 17, 2016
7:11 PM EDT
This article describes a long procedure to accomplish what can be done with a usb live disk and three commands:

mount /dev/sdb1 /mnt
dd if=/dev/sda of=/mnt/backup_sda.img bs=1M
umount /mnt
dotmatrix

May 17, 2016
7:34 PM EDT
True.

But then you'd need to get a 'live-cd-zilla' version of a GNU/Linux distro... zcat or dd or whatever the image onto a USB stick... then boot into the live image, open a terminal, and issue the aforementioned commands.

It's probably convenient for some people to have a single purpose bootable USB thingie to do dastardly doings on drives... kind of like DBAN, I suppose.
flufferbeer

May 18, 2016
2:47 AM EDT
@penguinist

> mount /dev/sdb1 /mnt

> dd if=/dev/sda of=/mnt/backup_sda.img bs=1M

> umount /mnt

Or maybe even "mount /dev/sdb1 /mnt ; dd if=/dev/sda of=/mnt/backup_sda.img bs=1M ; umount /mnt "

Either one of these sure seems to me to nicely adhere to the principle of K.I.S.S.!

2c

Posting in this forum is limited to members of the group: [ForumMods, SITEADMINS, MEMBERS.]

Becoming a member of LXer is easy and free. Join Us!