Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [cloning]

Duplicating an installation of Linux or other Unix-like operating system. See also /migration

1
vote
3answers
81 views

Drive won't boot from its Grub, but will from another drive's Grub, after cloning, why?

It was a month ago, so if you ask me on details, I might still remember, but better act on information that can be given as of now. Due to the lack of time, I did not ask for help here. I have cloned ...
-1
votes
1answer
52 views

Is there any advice so I can clone the entire thing smoothly next time

Here is my situation. I have spent days to solve this and now I give up. It is very painful, takes a lot of time, and can break the OS itself. I used to change job after working for 1.5 years or 2 ...
1
vote
1answer
2k views

How to clone Ubuntu 18.04 LTS from HDD to SSD?

I have Ubuntu 18.04 LTS installed on a 1000 GB HDD /dev/sda (93% free space) on my laptop: /dev/sda1 -> 512M - vfat - EFI System Partition /dev/sda2 -> 732M - ext4 - Linux ...
0
votes
1answer
94 views

Scriptable way to clone source disk to multiple destination disks?

I need to clone a bootable disk to multiple disks (of different sizes) on different computers and it needs to be scriptable, but I can't find a way to do it. I'm using Ubuntu 16.04 on everything. ...
1
vote
0answers
27 views

What to modify if I dd sda1 to another machine? [duplicate]

There are 2 servers, they were application level clusters. One of the servers / got corrupted, see: / got corrupted and showing as ext2 The idea is the next: I would dd the sda1 from the good ...
5
votes
2answers
417 views

Errors on cloning disk with cat

I wish to clone a large disk (a 500GB SSD, for what it's worth), and I am leaning toward using cat, as suggested by Gilles here. But what gave me pause is that I do not really know what cat does upon ...
1
vote
3answers
456 views

How can I clone/backup/restore Windows 10 from Linux?

Case scenario: $ sudo fdisk -l Disk /dev/sda: 223,6 GiB, 240057409536 bytes, 468862128 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (...
-3
votes
1answer
917 views

Replicate an Ubuntu server onto another ubuntu server [closed]

I am very new to using ubuntu servers and I have two of them. One has everything I need configured properly and working (it runs a nodes app that I developed), the other is a fresh, stronger server I ...
1
vote
2answers
64 views

How to identify relevant parts of an ext4 partition

Background: I need to clone ext4 partitions from an eMMC using uboot (and if neccessary custom bare metal code). I copied the whole thing using mmc read and found that most of the partition is empty, ...
0
votes
0answers
54 views

how to copy all applications from one linux machine to another

I wonder how I can copy all applications from one linux machine to another? I have a "source" machine (Ubuntu 16.04) which has all the configurations, setup and many complex application installed on ...
0
votes
1answer
90 views

Migrate packages from one fedora system to other

Currently, I am using Fedora 26 for my daily use. I want to transfer all the packages which I have installed with command sudo dnf install to another fedora desktop (as it doesn't have access to ...
1
vote
2answers
74 views

Switch laptop disk drive without reinstalling Linux?

I have Lubuntu 17.04 installed on my laptop's HDD. I've now bought an SSD, of almost the same size, as a replacement; it's empty, untouched. Now, I want to switch the disks and have basically the ...
0
votes
2answers
86 views

Cloned SSD doesn't boot and prints strange lines

Playing with a little headless server (PC Engines APU 1D4) and Debian. I am controlling it from terminal on serial port. Normally I install the OS from a USB key, but the process is terribly long and ...
1
vote
1answer
278 views

Is it possible to clone Linux software RAID 0 array with LVM on top to a single HDD?

I have 2 500GB HDD in 3 software RAID 0 arrays with LVM on top. Both disks are partitioned: -MBR partition table -256 MB Physical volume for RAID -4 GB Physical volume for RAID -remaining 496 ...
0
votes
1answer
310 views

Clonezilla: Server No disk image found in /home/partimag.. make sure you already saved an image

I am new to ubuntu and fairly new to linux as a whole. Anyway I am trying to setup a cloning sever to restore disk images onto quite a few computers. When I am going through the dcs command I choose ...
1
vote
1answer
327 views

Pipe limit data in bytes

I'm trying to do an 'advanced case' of cloning. There is a pipe writing to a block device, at the end of which there is a partition that should not be touched. I know where this partition starts. In ...
5
votes
4answers
711 views

Move files between Linux and OpenBSD and keep file properties

I would like to move/share some files between Linux and OpenBSD. What would be an easy and simple way to achieve this? These are the solutions I have found so far and why I am not fully convinced: ...
0
votes
2answers
112 views

can't find windows after cloning to hd using dd command

Ok. Here's what happened. I have a laptop with 500GB HD. I had installed windows 7 on it. i had 5 partitions on it. all four partitions were ntfs and one was ext4 for installing kali linux. I had a ...
1
vote
1answer
520 views

How to convert a Linux system from a virtualbox machine to a physical machine without losing data?

I need to convert a CentOs 7 from virtualbox to a file .iso and then transfer this .iso file to a usb stick or bootable DVD and install that CentOs (contains my files and packages that I want) to ...
1
vote
1answer
270 views

How to clone HP-UX server to another fresh server

I have a HP-UX box and i want to clone the same to other server. Lets assume HP-UX(A) and other server(B) <SERVER_NAME> $ uname -a HP-UX <SERVER_NAME> B.11.23 U 9000/800 1544735064 ...
1
vote
0answers
79 views

Cloning Machines joined to Domain using SSSD

We are using Amazon Web services and have a number of Debian boxes that are registered to our domain. I want to clone these boxes, change there hostname and rejoin them to the domain without impacting ...
0
votes
1answer
548 views

Will a clonezilla image restore properly to a different hard drive?

From a planning standpoint, I would like to understand if a Clonezilla Unix image will restore to a different hard drive. I would also like to understand the same point with regard to a Windows XP ...
0
votes
1answer
382 views

How to backup GPT partitions and file systems only (no files/folders)?

For the purpose of disaster recovery we do wish to backup: GPT partition table, disk geometry (to restore to different sizes drives) and the corresponding file systems of each partition. For ...
0
votes
1answer
991 views

“SSL handshake failed” when connecting to localhost (server clone)

In order to test OS upgrade of a Ubuntu Server 12.04, I cloned it into VirtualBox VM on my workstation. Most things behave the same way and I was able to resolve a few differences. However, there is ...
0
votes
1answer
1k views

DD Clone not booting

I cloned my SSD to my USB using dd, but the USB won't boot... Here's the story: I just got a 275 GB SSD to replace my 128 GB SSD, which is running low on space, but I want to continue using my Ubuntu ...
3
votes
2answers
869 views

how to copy my linux system to another notebook

I want to copy/clone my current linux system as it is to another notebook because I'm afraid my current one will die sooner or later and I loose all of my linux setup, tools and file structures. I ...
1
vote
0answers
24 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
107 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 ...
0
votes
1answer
758 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
541 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 ...
3
votes
3answers
103 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 ...
2
votes
2answers
621 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, ...
1
vote
1answer
164 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 ...
1
vote
0answers
1k 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
514 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 ...
1
vote
2answers
776 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
1answer
706 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 ...
3
votes
0answers
399 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
498 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
684 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
402 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
1answer
2k 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 ...
4
votes
3answers
8k 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
0answers
183 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:...
3
votes
1answer
1k 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 ...
0
votes
1answer
26 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
978 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
347 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 ...
3
votes
0answers
116 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
43 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 ...