Questions tagged [cloning]
Duplicating an installation of Linux or other Unix-like operating system. See also /migration
142
questions
0
votes
2
answers
51
views
How to clone CentOS 7.7 installation on another disk?
I thought I could clone a running CentOS 7.7 installation by replicating the contents of the /, /boot, /boot/efi partitions on the target disk and then modifying the /etc/fstab and the grub.cfg files ...
0
votes
1
answer
56
views
DD between different file system
I need to install a new server Linux cloned by DD. In the old server i used xt4 and in the new server i want use i.e zfs. Can use DD command from old ext4 to new zfs?
Thanks to Whom will responde.
0
votes
0
answers
42
views
Manjaro Linux HDD Cloning/Backup to External Storage
I have Manjaro XFCE in my Laptop with Windows 8.1 in a dual-boot format.
Now, the issue is when Manjaro Linux is accessed, there is a Continuous "Stroking"/"Screeching" Sound or ...
0
votes
0
answers
97
views
Newly Cloned NVMe won't boot on laptop
In my fairly old laptop running Fedora 38 I have an normal 2.5" SSD drive. The laptop has a NVMe slot so I added a NVMe drive into the laptop.
I Installed the NVMe drive into the laptop and ...
0
votes
0
answers
141
views
using 'rsync' to clone the Debian OP to another partition and get stuck in the booting after installing Windows 10
I am a newbie to Debian but I got all the basics and I have been using it for the base 4 months.I decided to install windows in a dual-boot but i get to the information that i need to install windows ...
1
vote
2
answers
2k
views
How to clone / move entire Fedora installation onto larger disk with minimal changes to the system?
Scenario
I have an SSD in my computer (250GiB), with both /boot and ///home partitions on it.
I'd like to move that into a new M.2 NVME drive which is much larger (1TiB).
The distro I'm using is ...
0
votes
0
answers
274
views
How to assign different ip's on cloned systems (no VM's, embedded systems)
After some research, I am not being able to solve assigning different ip's on cloned systems. Most questions reference working on VM's.
I have an embedded system, I will call it Master: Google Coral, ...
0
votes
1
answer
131
views
How to virtualize Win10 from Linux (into VirtualBox on Linux) and shrink it?
Basically, what I need could be similar to what most other people running Windows for work would want, I suppose, so let us get started on my requirements:
Somehow copy a raw disk (e.g. /dev/sda) ...
1
vote
0
answers
425
views
Is it possible to copy a disk image to a smaller disk?
Let me explain, for a greater detail (although this casuistry will serve for many more cases): I have a cloned image of a 512GB mSATA disk, which in practice, really dlos comanoes not reach 10GB used ...
2
votes
1
answer
2k
views
Fix GPT after using dd to clone a smaller disk onto a larger disk
I used dd to clone a smaller disk onto a larger disk, however now when booting I'm getting dmesg errors of:
[Fri Sep 30 11:48:43 2022] GPT:Primary header thinks Alt. header is not at the end of the ...
0
votes
0
answers
332
views
Moving Linux image to a different hardware
Should I expect any issues with physically moving Ubuntu 22.04 image on SSD to another, similar PC? The only differences are CPUs (from i5-9600K to i5-12600) and motherboards.
0
votes
1
answer
775
views
Access home folder in external hard drive
I recently changed from an HDD to SSD on my machine. The HDD had a dual boot with Windows and openSUSE. The Windows system had no password, the openSUSE had a password.
When putting the HDD in an ...
3
votes
2
answers
199
views
Is this a safe way to migrate my data to a new computer?
I recently bought a new laptop and I would like to migrate to it with as little hassle as possible. I don't want to do a fresh install since I have made various tweaks to my current setup for things ...
1
vote
0
answers
199
views
How to make an exact clone of my debian system to distribute to Google Coral
Background:
I have set up properly Mendel 10.0 (debian) in a Google Coral dev board, and installed my desired libraries (some through apt install, some through git cloning and make install). The ...
1
vote
1
answer
3k
views
How to mount a ZFS volume in FreeBSD for cloning
I am in the process of trying to clone a FreeBSD installation onto a new hard drive and need to mount it and then find the mount points in order to proceed with the cloning process.
The internal drive ...
1
vote
2
answers
809
views
'dd' command disk copy retains old size
I recently upgraded my home server and wanted to increase my cloud disk to 2TB from 600gb. After some research I found the dd command which can fully copy a disk, which in my case seemed like a good ...
2
votes
1
answer
677
views
Cannot clone a full SSD (LVM) to another SSD unless is exact same type
I have a CentOS 7.9 installation and I want to move all SSD contents including OS to a new/faster SSD (both are M.2 nvme).
The disk is setup using LVM.
I tried cloning with Macrium Reflect and other ...
0
votes
0
answers
252
views
Partition table for a 4TB hard disk when cloning a hard disk with a msdos table
Using Ubuntu 18.04 LTS.
I replaced the bootable internal hard disk in a desktop computer with a brand-new 2TB hard disk. I could transfer the partition table and all data from the previous hard disk ...
0
votes
1
answer
125
views
Need help reading rsync log. Problem checking cloned disk has the same files as original disk with rsync
I cloned a drive using dd. I stopped and resumed the process several times, so I want to make sure that all the files copied successfully.
I did some browsing with a file manager and the files seem to ...
4
votes
2
answers
877
views
What would happen if dd receives same input file as output file
Let's say I accidentally ran sudo dd if=/dev/sda of=/dev/sda instead of sudo dd if=/dev/sda of=/dev/sdb
And I didn't want to wait for the 500gb operation to complete to find out if I broke my system.
...
2
votes
0
answers
369
views
When using multiple clones of a machine, what steps are nessecary to make them unique?
I have a base image of Ubuntu 20.04 in vSphere with some of the nessecary configurations for my environment. When I need a new Linux server, I'd like to be able to use a clone of this image as a ...
5
votes
2
answers
3k
views
Using dd to create an image up to an specific sector
I have a 32GB SD Card that contains an Armbian installation for some pi gadget. I want to clone the content into a 16GB card. Using GParted, I shrank the partitions to be less than 16GB and here is ...
5
votes
1
answer
4k
views
How to uncompress a gzipped partition image and dd it directly to the destination partition without writing to current partition?
I've backed up a partition using sudo dd bs=8M if=/dev/sda2 | gzip > /someFolderOnSDB/sda2.img.gz.
The image is stored on a separate disk sdb.
When restoring it using gunzip -k /mnt/bkp/sda2.img.gz ...
4
votes
4
answers
17k
views
Using rsync to create a complete OS backup/clone sufficient?
Will using rsync to duplicate an entire file system, e.g. doing
rsync -avxHAX --progress / /dev/[backup disk]
as suggested here, result in a complete duplicate Linux system? I.e. will all system and ...
2
votes
1
answer
262
views
Backup tool for pulling files out of encrypted disks?
Are there any backup/cloning/recovery tools that can pull files from LUKS-encrypted disks while dropping free blocks?
Something that runs from within the unlocked system and hot-transfers the files, ...
0
votes
0
answers
249
views
Trouble with size of partition (too small) after cloning disk/OS from USB flash drive to SSD
So, I have a Chromebook with two USB ports, a 128gb USB drive with my ideal Linux set up on it (Ubuntu 18.04, i3-gaps, other specific visual customizations) and an external/portable 500gb SSD that I ...
0
votes
0
answers
29
views
Moving Linux OS and all the connected HDDs/SSDs to a new computer (same architecture x64, different socket)
I need to migrate my entire system (Ubuntu OS and all the connected HDDs/SSDs) to a new PC.
The old one has an Intel CPU and the new one an AMD Ryzen socket AM4, so of course all the hardware will be ...
2
votes
2
answers
374
views
Minimal SD Card image
If the command to replicate an SD card:
date; sudo sh -c 'pv /dev/mmcblk0 >pv sdcard.image'; date
images a fresh install of Raspbian sitting on a 128GB SD-Card, then sdcard.image file will be ...
4
votes
1
answer
3k
views
repair gpt after cloning to smaller drive
I had a gpt-partitioned drive, with unpartitioned space at the end, I used dd to clone it to another smaller drive. Unfortunately Linux won't see the partitions on the cloned drive.
My understanding ...
0
votes
1
answer
84
views
Replicating an SD card to a larger SD card
In a previous posting, the Replication of a Raspberry pi SD Card is performed on an identical target SD card. If the goal is to replicate to a larger SD card with the same procedure:
If the source ...
2
votes
1
answer
10k
views
Using the DD command, Linux
I want to use dd to clone my running Linux OS which is installed on a PI4 MicroSD 64GB media, to an image. Because it is a Raspberry PI I cannot (easily) boot from a USB stick and run the job with ...
0
votes
1
answer
204
views
USB stick after incomplete run of dd
I have a hard drive with 2 equally sized partitions and a USB stick with 70% of capacity of the hard drive.
Now I use dd if=/dev/harddrive of=/dev/usbdrive bs=1M to "clone" my hard
drive.
I would ...
1
vote
3
answers
430
views
Anything special to consider when cloning an HD to an SSD?
I would like to move from an HD to an SSD. Is there anything special to consider here? For example:
Different recommended fstab settings
mkfs or partition tools behaving differently when operating on ...
1
vote
0
answers
25
views
Relocate Linux System Copying Linux Partitions Only
I have the next HDD MSDOS configuration in sda:
jeanfar@jeanfar-pc:~$ sudo fdisk -l /dev/sda
Disk /dev/sda: 232,9 GiB, 250059350016 bytes, 488397168 sectors
Disk model: ST250LM004 HN-M2
Units: ...
0
votes
0
answers
58
views
Create duplicate files on 2 different locations?
tough to find information to my idea as people normally look forward to find and remove duplicates not vice versa.
I have an application running to control a heating system.
It uses a file based ...
0
votes
1
answer
468
views
ntfsclone, metadata-only cloning....why?
Been reading the ntfsclone manual but I still can understand and see the point of doing a Metadata-only cloning? What is the point of this, when can it be valuable?
I assume "metadata" is just ...
3
votes
2
answers
6k
views
Replicating an SD card
BACKGROUND
An SD card has been configured for a Raspberry pi. The goal is to replicate the SD card exactly (OS, apps, data) so that the replica will function in a rPi exactly like the original \ ...
0
votes
1
answer
38
views
SSD migration partitioning planning [closed]
Objective
I have used Linux tools to modernize older systems with SSD drives:
format & partition new SSD (gParted)
migrate OS + apps (clonezilla, )
I am seeking to upgrade a Macbook Air ...
0
votes
1
answer
189
views
How do I clone a 2 TB HDD onto a 120 GB HDD (shrink partition using gparted)
I have the following:
Western Digital 2 TB HDD (65GB used space)
Seagate 250 GB HDD (with nothing on it)
The 2 TB HDD has Mac OS X 10.6.8 that I need to clone onto the smaller drive in order to use ...
0
votes
2
answers
682
views
cloning a linux image using dd
If I wish to clone my Linux image using the dd utility, I can do for example dd if=/dev/SDX of=/dev/SDY, where SDX is the internal memory device where the Linux image is stored, and SDY is the ...
1
vote
1
answer
1k
views
Backup the information with rsync to generate a mountable image?
Looking for some program to create a file of image of the information (.img) to later be able to mount it, I have not found anything simple. In the case of Clonezilla, it requires additional space to ...
3
votes
0
answers
773
views
Backup: How to mirror/clone LVM LVs (or VGs) on demand?
So far, I have a semi-automated backup approach for the whole system installed in different LVs, using LVM (CoW) snapshots (which can be created upon boot to avoid data corruption). That is, if I ...
1
vote
3
answers
3k
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
1
answer
78
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
1
answer
7k
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
1
answer
507
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
0
answers
38
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 ...
6
votes
2
answers
1k
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 ...
13
votes
5
answers
32k
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 (...
-4
votes
1
answer
4k
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 ...