Duplicating an installation of Linux or other Unix-like operating system

learn more… | top users | synonyms

76
votes
7answers
16k views

dd vs cat — is dd still relevant these days?

I recently realized we can use cat as much as dd, and it's actually faster than dd I know that dd was useful in dealing with tapes where block size actually mattered in correctness, not just ...
42
votes
4answers
38k views

Moving linux install to a new computer

I know that it can, in some circumstances, be difficult to move a Windows installation from one computer to another (physically move the hard drive), but how does that work on linux? Aren't most of ...
23
votes
7answers
9k views

How can I use DD to migrate data from an old drive to a new drive?

I am upgrading the internal SATA hard drive on my laptop from a 40G drive to a 160G drive. I have a Linux/Ubuntu desktop which has a SATA card. I would actually like to do the same thing for a couple ...
23
votes
5answers
12k views

Clone whole partition or hard drive to a sparse file

I like to clone a whole partition or a whole hard drive onto a larger external disk but like to create a sparse file. I often use dd for cloning, but it doesn't support sparse files. As a workaround I ...
13
votes
3answers
12k views

How to change partition UUID (2 same UUID)?

I have a fedora guest OS in VMware. I want to expand /boot partition, so I add another virtual disk to this VM, and try to clone the disk. After dd if=/dev/sda1 of=/dev/sdb1, blkid report that /dev/...
12
votes
3answers
41k views

Full DD copy from hdd to hdd

UPDATE: 2 This seems a lot better than before (Thanks to Groxxda for the suggestions): sudo dd if=/dev/sdb bs=128K | pv -s 3000G | sudo dd of=/dev/sdc bs=128K ETA is about 9 hours for 3TB, whereas ...
8
votes
2answers
12k views

Cloning a bootable USB stick to a different-sized stick

HARDWARE: 2 8GB USB flash drives DISTRO: Mint 9 Xfce persistent Live Cd One USB flash drive has two partitions: 1) FAT32 700MB Mint 9 partition 2) ext3 7.3GB casper-rw partition GOAL: I want to make ...
8
votes
3answers
2k views

How to install exactly the same packages on another computer in openSUSE?

Another computer can be as well virtual machine. I cannot make disk clone because of hardware differences and settings. I have computer A, installed and running, I also have computer B. I will ...
7
votes
1answer
3k views

Move qcow2 image to physical hard drive

I have a qcow2 image that I use to boot an installation of linux using QEMU; I would like to place the contents of that image directly onto a physical hard drive so that I can boot to that linux ...
5
votes
3answers
8k views

can 'dd' be used to clone to a smaller HDD, knowing that partitions will need editing?

I've used dd to clone disks like this: dd if=/dev/sdb of=/dev/sda bs=4096 conv=notrunc,noerror,sync And it's always worked fine. Any and all docs on 'dd' take pains to remind you that the target ...
5
votes
2answers
2k views

How to create a snapshot of a physical disk?

I have Windows 7 installed on one of my disks. I want to boot this Windows system in my Xen HVM, but I do not want the changes to be permanent. So I want to create a snapshot of my Windows 7 partition....
5
votes
1answer
171 views

How to back up initial state of external backup drive?

I've picked up an HP Simplesave external drive. It comes with some fancy software that is of no use to me because I don't use Windows. Like many current consumer-targeted backup drives, the backup ...
4
votes
5answers
494 views

volcopy for Linux?

Reading one of the editions of the Nemeth's book (Nemeth et al), have read about volcopy -- an utility that copies a filesystem from one device to another, making "a literal copy" (here's a man page, ...
4
votes
4answers
5k views

Image HDD in Linux (functionality like Norton Ghost)

I am looking to use an embedded Linux distro such as Tiny Core as a automated recovery type tool. Basically, the user would choose to boot into Tiny Core from the boot menu, then if a USB is plugged ...
4
votes
2answers
6k views

Can I duplicate my Apache server settings on a new Linux install?

I have an Apache 2 server set up on my computer that I use for local testing. To be clear, it is not hosting sites on the internet. It's just for local debugging and designing. I was using Ubuntu ...
4
votes
1answer
473 views

Changing HFSPlus UUID from PartedMagic

I needed to make a clone of my hard drive recently (bad blocks FTW). I was using Clonezilla at the time. However, Clonezilla refused to copy the HFS+ partition, so I did it manually. The problem is ...
4
votes
2answers
94 views

Is `dd` really necessary to clone a disk? [duplicate]

Almost any tutorial will tell you that to clone a disk on the command line (say, to clone /dev/sda to /dev/sdb) you can use: dd if=/dev/sda of=/dev/sdb ...and some block size options... This reads ...
3
votes
3answers
2k views

Copying an HDD to a larger one by dd

I'm trying to copy an entire HDD which has IBM PC-style partition table to a larger one by dd on GNU/Linux. The questions are: Can I use the additional space on the larger disk by changing the ...
3
votes
3answers
57 views

Most efficient way to deploy an OS on multiple of the same machine?

I have learnt about the dd cmd, this does the job perfect as one can create an image of a HD(with an OS already installed) and write it to other HD's. The problem with this method is if you had a 2TB ...
3
votes
2answers
3k views

Can I restore a single partition from a Clonezilla disk image?

I was thinking of performing a Clonezilla backup and was wondering what backup mode to choose. Generally speaking, Clonezilla offers the following backup options: savedisk: Save a full disk image ...
3
votes
2answers
443 views

Best method for performing a HDD copy from a master to slave

We are running a Debian-based system in our product, out of which I need to create new drives from a master drive. Method 1: Install OS from debian live CD and copy the required custom software. ...
3
votes
1answer
161 views

Is it possible to create a bootable usb from a partition?

Is it possible? How hard would it be to do so?
3
votes
0answers
20 views

LUKS: Change master key

I've already read this SE question, but it's somewhat old now. How can I reencrypt a LUKS partition using a different master key? I have a cloned VM image that needs to go into production, but it's ...
3
votes
0answers
68 views

Clone running machine over network

I'd like to clone a running Debian machine (ext4, no LVM) to identical hardware, preferably over the network to create a test box. Q1) Which tools / scripts are available that allow me to do this? ...
3
votes
0answers
60 views

How to move a PC's Debian to a USB and remain fully bootable?

I have a 64 GB USB 3.0 drive, to which I'd like to transfer (in terms of file system and grub2 bootability) the Debian Jessie installed on the SSD of my retina MacBook Pro. I am looking to do this in ...
2
votes
1answer
132 views

cloning a partition to a partition of different format

If I clone a partition (I can be using dd command or clonezilla software or anything) with ext4 format to partition of xfs format: will I have any issue/error? The resultant data/partition will be ...
2
votes
2answers
1k views

Adding null bytes to a file using dd

I have an img file which I had cloned from a disk of my RISC PC using dd: dd if=/dev/hdb of=RISCPC.IMG The size around 2GB. I want to add 512 null bytes to the start and end of the file. What's ...
2
votes
2answers
136 views

HDD cloning and non-matching checksums

I've been trying to clone a 1Tb HDD to a 1Tb SSD following the instructions here. I tried cloning it several times with both dd (painfully slow) and cat (far quicker) but when I came to do checksums ...
2
votes
1answer
256 views

Cloning a root partition onto a dm-crypt encrypted one

I have Gentoo Linux installed on a 25.93GB/62.43GB partition /dev/sda4. The other partitions on the disk are 150MB /boot on /dev/sda1 and 56,66GB unused space on other two partitions. I am planning ...
2
votes
3answers
2k views

clone root directory tree using busybox

I have an TI DaVinci-based (ARM architecture kin to OMAP) system which netboots using TFTP and NFS-mounted root filesystem, and am trying to make it boot standalone without a netboot server. The ...
2
votes
1answer
267 views

How do I clone a single drive onto a new RAID 1 array?

Here's a little background on the situation at hand. I have a DELL Precision T7600 at work that I'm responsible for maintaining, which just lost a hard-drive, thankfully just the /home directory was ...
2
votes
1answer
301 views

Clone a Linux to Another Linux

How can I perform a complete clone on an OS and have it installed to another computer kernels and all as close as possible to the original?? Is Clonezilla a good idea? Source: VB of Oracle Linux 5 (...
2
votes
1answer
84 views

efficient rc file syncing or replication

Recently I've been experimenting with KVM and virtual machines. I'm lazy and tired of manually copying/syncing my .rc files. Some Googling didn't immediately turn up any tools. Are there any CLI tools ...
2
votes
1answer
1k views

How to split a ddrescue disk image and how to use it again?

I have a 500GB external HDD that I need to rescue the contents of. Unfortunately I only have two 400GB partitions to save the contents to. Can I split the disk image as: ~$ cd /mnt/part1/Recovery/ /...
2
votes
3answers
2k views

How to clone linux installation onto an external harddisk?

I see a lot of dd related questions, but could not find answers to the following. If question/answers already exist, please point to them, then flag to close, delete or merge. Can a working linux ...
2
votes
2answers
700 views

Cloned VirtualBox CentOS disk is unbootable after cloning in GParted

I cloned and enlarged an existing virtual CentOS-6 disk by the following steps: Create 15GB virtual disk and mount the old and the new disks in GParted. In GParted copy boot, swap and ext3 ...
2
votes
1answer
785 views

Preparing a Linux image in a virtual machine

I am trying to set up a system to prepare a Linux system on a virtual machine and then deploy it onto an SD card. The target system has an Atom processor, so there aren't architecture compatibility ...
2
votes
3answers
285 views

Using dd to clone a disk while mounted - risks?

I want to clone a hard disk using dd. Because I want to keep a process on the machine alive continuously, I would like to do this while the filesystem is still mounted. I understand this is not the "...
2
votes
1answer
170 views

Taking a clone of a customized RHEL server hosted in a data center remotely

We are planning to upgrade OS to RHEL 6.6 on all our servers. All our servers are located in a data center. We have to follow a repeated process of installing application stack, securing, hardening ...
2
votes
2answers
156 views

dd taking weeks

A few days ago, I got the message "Windows detected a hard disk problem". I got a new hard drive, and booted into Ubuntu using a live USB. I started cloning the failing disk using sudo dd if=/dev/...
2
votes
2answers
96 views

How to schedule initial configuration of a system after cloning?

I want to setup a big amount of servers using cloning. After the initial image was applied, I want to run a configuration script. The cloning will be done through hard disk replication by the hardware ...
2
votes
0answers
56 views

mdadm - Creating RAID1 on LiveUSB does not persist when re-booting

I have three drives sda, sdb, and sdc: $ lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 2.7T 0 disk ├─sda1 8:1 0 1M 0 part ├─sda2 8:2 0 500M 0 part ├─sda3 8:...
2
votes
1answer
674 views

How do I get LILO to boot on cloned hard drive? [closed]

I have a really old hard drive with DOS and Linux partitions with LILO as the boot loader. I want a clone of this hard drive that works exactly like the original. I made a clone using Knoppix and ...
1
vote
2answers
460 views

Making Bootable USB, problems copying /proc

I'm creating a bootable usb as a cloned partition and am running into problems copying /proc to the usb. I know /proc contains a lot of virtual files, but I'm not sure how to copy them over. It seems ...
1
vote
2answers
85 views

Snapshot of drive

Does technology exist which allows you to take an instantanious snapshot of a drive? At the moment, I am using dd which takes a few minutes to create an image of a usb drive to my hdd. Is it ...
1
vote
2answers
1k views

Best way to back up a system in its entirety?

I considering doing a complete re-build of my home desktop computer. The only thing that will actually be the same, will be the case. I have a 1 TB external hard drive I want to back up my 200 GB of ...
1
vote
1answer
1k views

Clone OS to a smaller drive

I would like to copy/clone/move my CentOS (which is on a 20GB hard drive) to a smaller hard drive (5GB)... Can someone tell me how to do this?
1
vote
1answer
149 views

Clone Linux fedora using Clonezilla

Actually this is the first time for me with Clonezilla, and I`m not system administrator. I have on my machine (Win7 & Fedora22 workstation). Fedora each time run shows to me partition size ...
1
vote
2answers
1k views

Transfer a Fedora system to another computer

I'd like to transfer my Fedora to a remote machine. Fedora is under Grub 2.0 and on the remote machine there is a Centos system and Grub 0.97. In fact, I have two questions. First is how to properly ...
1
vote
2answers
30 views

Can I copy archlinux installation to another computer?

I want to get an archlinux system with the same packages, settings, etc. on another computer. Can I do it by creating partitions on another computer, mounting them, copying the whole filesystem, ...