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

learn more… | top users | synonyms

1
vote
0answers
20 views

How to not reinstall packages when installing a bunch of package? [duplicate]

I saved the pacman -Qqe output from a previous arch install and now I'm using this list to install all the packages I had at once. However some of them are already installed and it wants to reinstall ...
1
vote
1answer
28 views

moving a linux to another device

I am working on an embedded linux ip-camera. I need to have a backup of our Linux for testing and repairing cameras. I have tested multiple options like using tar and rsync , but it does not work and ...
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 ...
0
votes
1answer
44 views

Using dd to copy MBR results in partition tables double the size

I have a laptop with 500GB internal HD and a external 500GB USB HD. I boot up with a linux live cd over the top of my Windows 8.1 machine. My goal is to clone the MBR, partition 1(350mb), and ...
1
vote
0answers
55 views

dd and cat both reporting no space left on device

I have a windows 8.1 Pro laptop with a 500GB HD and a 500GB portable USB HD. I boot up my laptop with a linux live CD so that I can use dd or cat. Testing cat: cat /dev/sda > /dev/sdc cat: write ...
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, ...
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 ...
1
vote
1answer
29 views

Can I clone a larger disk with lots of free space into a smaller disk

Is it possible to clone an OS disk with all its partitions into a smaller disk. The original disk has a lot of free space and the total used space is much smaller than the capacity of the new disk I ...
0
votes
0answers
99 views

Why I can't open the kernel git repo in my GIT GUI client?

I successfully cloned the kernel using git in command line, nevertheless I find difficult to navigate throughout the repo using the cli and I got a gui client, gitkraken to be specific. The thing ...
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 ...
0
votes
0answers
19 views

Clone Linux installation [duplicate]

I have 2 servers, one is brand new with noting on it and 2nd one has everything set up (postfix,dovecot,db,nginx etc..) and I'd like to copy entire image from server 1 to server 2. Is such thing ...
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 ...
1
vote
2answers
58 views

Can't clone hard disk with dd no space left

I am trying to move elementary OS from primary HDD to external HDD. So, I can boot elementary OS from external HDD and install Windows 10 on primary HDD. Hewbot on super user stackexchange suggested ...
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 ...
1
vote
1answer
31 views

How to clone an entire disk to a larger disk and then offload?

The title might be a bit confusing, so in detail: What I have done is clone a small 32GB flash module that had three partitions. I happened to have a 32GB USB lying around, so I thought it might just ...
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 ...
3
votes
0answers
69 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? ...
1
vote
0answers
85 views

clonezilla - restore OS partition image to larger/smaller partition

My old disk has failed. I have made partition images of OS partition and MRB partition instead of disk image. I have a disk but its size is smaller than the OS partition image. Is it possible to ...
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 ...
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 ...
1
vote
1answer
325 views

Fixing GRUB after cloning a drive with RSYNC

I have a remote server (no physical access to it) that I need to clone locally. So, I attached a secondary HD to a local linux server, created the partitions boot, swap and root and rsync'd all the ...
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 ...
2
votes
3answers
289 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
268 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
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:...
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 ...
2
votes
2answers
137 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 ...
0
votes
1answer
14 views

Are there any caveats when restoring a backup to a larger disk than the original disk with Clonezilla?

I have a Clonezilla image of a 250 GB disk. Are there any caveats or downsides if I would restore this to a 500 GB disk? (I will of course not be able to use more than the 250 GB on the new disk, but ...
2
votes
2answers
701 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 ...
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 ...
2
votes
1answer
172 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 ...
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 ...
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 ...
1
vote
1answer
32 views

install already built Linux environment

I have configured aMint-based environment : openVpn, hostapd, and a bunch of other configured package. This is done on a rasp-like computer (OEM). I planned to clone my disk on other machines. I dont ...
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
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 ...
1
vote
0answers
140 views

How to duplicate my installation partition onto a btrfs partition?

I initially installed Linux Mint 17.1 on a ext4 partition, with the /home on a different partition. The intention is to be able to multi-boot and share the /home data. I'm planning to copy it to a ...
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 ...
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/...
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 ...
0
votes
1answer
685 views

Clonezilla fails while cloning/imaging the entire HDD

I am using Clonezilla Live DVD to image my entire HDD consisting of several partitions. An overview of the partitions can be seen in the following excerpt from the log file of Clonezilla: Machine: ...
2
votes
1answer
302 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 (...
0
votes
0answers
352 views

Create an image of an existing linux installation

I have installed fedora 19 Xfce and removed a bunch of packages. I need to do a similar installation in multiple other machines. Repeating the process is time consuming. Is there some way by which I ...
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 ...
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/...
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 ...
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 ...
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 ...
1
vote
0answers
23 views

How to clone a Debian installation? [duplicate]

I recently installed Debian from a live 7.5-amd64 image (downloaded from Debian's site) to a new laptop. I also apt-get install'ed a few additional Debian packages. I would like to clone this ...
1
vote
0answers
38 views

Disk copying with two OS on it

I want to change HDD in my laptop to bigger one. I have installed WIN XP and Mageia Linux and GRUB ver 1 as bootloader. So I want to use such procedure for copying and changing disk: plug new one ...