Skip to main content

Questions tagged [clone]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
2 answers
43 views

Is there a way to backup/clone 3 drives onto a single drive without ending up with 3 different partitions on Arch Linux?

I have 3 very old hdds that are all lacking and are at least 12 years old. I know you can use a Tool like dd to clone a drive bit by bit, but only if there exists a free partition for it. I want to ...
TheBros47874's user avatar
1 vote
3 answers
139 views

Cloned Linux disk seems to be unusable

I am trying to create a fully functional clone of my Linux system's hard drive - meaning I would be able to replace the original hard drive with a clone, boot from it and continue using it. I have ...
mikef's user avatar
  • 11
0 votes
0 answers
18 views

Clonezilla 'dry-run' or 'what-if' mode to calculate final image size

Is there an option for clonezilla to make it calculate the final image size of a disk to image without actually creating the image, like a test mode or what-if switch? I've searched and read docs ...
Darrell Bunger's user avatar
0 votes
1 answer
33 views

Clone Linux OS Btrfs disk and boot with cloned disk 2024?

Disk D is a typical Linux installation. D has EFI (boot) and Btrfs (the rest) partitions. If I have a disk E whose size is > D, how can I clone D on E, and boot with E? Is that possible without too ...
Damn Vegetables's user avatar
0 votes
0 answers
71 views

fork() is very slow

I have a Linux server running Ubuntu 18.04 on a VM. Executing any task like ls -l or w frequently takes several seconds to finish. strace -c ls -l says ls only takes a few milliseconds, but running ...
Call of Guitar's user avatar
1 vote
1 answer
512 views

Boot problem after cloning

Guess this is the first time I post a question here. Have been playing with Linux and VMware servers for more than 10 years now. Lately I decided to move my focus on Debian desktops and ProxMox (again)...
Steijn van Essen's user avatar
1 vote
1 answer
895 views

how to clone UEFI bootable USB disk onto another disk (possibly of different size)

How can I clone my existing UEFI bootable disk, so that the copy is identical? I have tried creating new bootable disk, using same procedure, same label name, and same UUID and PARTUUID labels for the ...
Martin Vegter's user avatar
0 votes
1 answer
151 views

dd not enough space

I have a drive that is about 1TB big. It is mostly free space. When you add up the size of all the partitions, it is less than 256GB. I have another drive that is 256GB. I would like to clone the data ...
user168226's user avatar
1 vote
0 answers
223 views

Safest way to clone OS disk besides dd and Clonezilla

I would like to clone my OS drive, to a same/larger disk. And I will do this periodically. On Windows I use AOEMI Partition Assistant to clone disks. The GUI is very good and idiot-proof. However, ...
intrigued_66's user avatar
1 vote
1 answer
70 views

How do I adapt a .img clone of my hard disk (1 partition with openSUSE) to another computer?

I have used the dd command to backup my Linux partition (openSUSE Tumbleweed) into a .img file that I saved on an external hard drive. However, I guess dd-ing it on another computer may cause problems,...
Ul Tome's user avatar
  • 117
0 votes
0 answers
163 views

Clone of a functional 32GB SD card doesn't boot

I have a Pine64 from the original Kickstarter (2016.) It boots from a 32GB SD card, which I've imaged from an Ubuntu16 Pine64 image file. I've created a full disk backup of this 32GB SD card using ...
BurningKrome's user avatar
1 vote
1 answer
163 views

Can't boot from SSD after it was moved into an external case

I used a SSD in an ASMT 2105 harddrive docking station connected to my Pi4 for installation (Raspbian Pi OS). After moving the SSD into a smaller external SSD case, the Pi won't boot anymore (no ssh ...
Vindolin's user avatar
  • 256
1 vote
1 answer
142 views

Is it possible to serialize a running program's memory image to disk, instead of closing it?

I recognize this is a stretch, but I have a shadow of a memory of a way to do it, and I'm hoping someone here will recognize what I'm talking about and help jog it. Traditional programs, both by ...
Michael Macha's user avatar
1 vote
1 answer
601 views

git says "fatal: repository not found" when cloning from a lan apache server

Why can't i clone from a repository hosted on my network? /home/ondre $ git clone http://10.0.8.23/example.git Cloning into 'example'... fatal: repository 'http://10.0.8.23/example.git/' not found I'...
meclondrej's user avatar
0 votes
0 answers
410 views

Not a regular file, you need to load the kernel first - mkusb

I'm using mkusb to make an install of TinyCoreLinuxPlus. I used mkusb-dus, selected the option for a persistent live drive, chose my coreplus.iso file, and cloned to the drive as usual. However, ...
Aaron's user avatar
  • 1
0 votes
0 answers
238 views

Not able to mount disk partitions simultaniously after cloning by cat/dd command

In my Ubuntu 20.04.4 LTS virtual machine(in azure), I had 2 data disks (/dev/sdc & /dev/sdd) connected. I attached 2 disks to VM as per: https://docs.microsoft.com/en-us/azure/virtual-machines/...
KIRAN KUMAR B's user avatar
0 votes
1 answer
335 views

Rsync tags to give a perfect clone

I want to create a perfect clone of a folder, including permissions and ownership. I'm using command: rsync -a <source> <destination> The sync is missing some of the files that are root ...
Emily's user avatar
  • 101
0 votes
1 answer
197 views

How to clone unused space only of an Ext4 partition

How to make an image of free space of an Ext4 partition? Per example: A 10GB partition has 5GB of allocates files, I need to make a raw image of the other 5GB free/unallocated space/data left.
Mark's user avatar
  • 1
0 votes
1 answer
132 views

Practically unfork process

I have an executable binary (no source) that clone()s. It doesn't print anything and I think the child is trying to, which I'd like it to do. It always returns successfully even when the child ...
sedwho's user avatar
  • 5
0 votes
1 answer
315 views

Debug an instantly failing/never appearing child process

I have an executable binary (it's a device driver). It runs and instantly exits with a successful 0 return code. On one computer it creates the all important child process I can see with pgrep, but ...
sedwho's user avatar
  • 5
0 votes
0 answers
292 views

Are duplicate partition UUIDs a problem on bootable CFs cards, on different devices/systems?

We have a fleet of about 100 devices that run off of linux on a bootable compact flash. Each device used a single compact flash. For a recent update we were given a single CF drive for which we were ...
Frank's user avatar
  • 129
1 vote
1 answer
462 views

Unable to mount cloned compact flash after using dd to clone bootable compact flash

I'm trying to clone a bootable 1GB compactflash to a second 1GB complactflash, but when I try to mount it, i get an error like so, sudo mount /dev/sdb1 /media/frank/cloned/ frank@ThinkPad2:~$ sudo ...
Frank's user avatar
  • 129
1 vote
2 answers
921 views

copy ssd to hdd using dd, hdd won't boot

I am trying to copy a ubuntu 20.04 on 64G SSD to a 160G HDD between two computers. I have created the SSD disk image using dd and restored the image to the HDD. However, the new system with HDD stuck ...
perlwle's user avatar
  • 111
0 votes
1 answer
225 views

Clone disk with broken filesystem

I have a virtual disk for my virtual machine (XCP-NG) that has a broken filesystem and I can't repair it because the (virtual) disk somehow seems to be read only. So I want to clone the (broken) ...
Patryk Be's user avatar
0 votes
1 answer
122 views

how to change grub for doing the script

ater cloning my HDD on an OPEN SUSE 13.1 PC with Acronis True Image 2021 I followed the advices written on the Acronis pages. ATI-CLONE_LINUX-INFO But when I start now I come in the GRUB2 CLI. when I ...
Walter Schrabmair's user avatar
4 votes
2 answers
1k views

Why is the stack argument required for the clone wrapper?

I've been carefully reading the linux man page for clone(), and I understand the difference between the clone() wrapper and the "raw" system call. But what I don't understand is why the ...
exliontamer's user avatar
1 vote
0 answers
623 views

Cloning fully encrypted SATA disk to larger SSD

I am using Debian and have fully encrypted disk include /boot partition. I have SATA 320GB disk and planning to buy a SSD. I want to clone my current disk to a new larger SSD. I found this link (https:...
unix1959's user avatar
1 vote
1 answer
683 views

After cloning a VM with virt-clone, how do I rename the newly created qcow2 file?

I wanted to build another server based on an existing config, so I performed the following: [user@box ~]# virt-clone --original serverA-rhel8 --name serverB-rhel8 --auto-clone Allocating 'serverA-...
a coder's user avatar
  • 3,263
0 votes
2 answers
2k views

Clone SSD from .img with DD

I saved a backup from ssd A to .img file with dd command now I want to know to clone ssd A to ssd B can I do it directly from the .img file something like: dd if=/dev/backup.img of=/dev/sdc bs=1 ...
Adam's user avatar
  • 1
0 votes
1 answer
698 views

dd command caused segmentation fault and now stuck in shell

I am pretty new to Linux and have run into some problems. Goal: I have two machines running Debian 9 Stretch and I want to clone one of the machines onto the other. First thing I did was connected an ...
Kevin's user avatar
  • 1
0 votes
0 answers
197 views

GNU/Linux mirror display at lower resolution

I'd like to mirror my primary display which is 2560x1440 to another monitor at 1920x1080. The other monitor is capable of up to 4k. I have tried various xrandr commands and either the second screen ...
David Healey's user avatar
4 votes
1 answer
6k views

Migrate Dual-boot system from HDD to SSD

I've a dell laptop that has a 512 GB Hard Disk. It has windows and Linux installed in it. I am planning to buy an SSD of similar size(500 GB or 512 GB). How should I migrate my whole system(Windows+...
Tayyab Mazhar's user avatar
0 votes
1 answer
108 views

What's the fastest way to clone a Linux installed computer?

We have several same branded/model computers and would like to clone Linux-Mint. It takes about 1 hour to install/upgrade etc. for one computer. I used dd command to make an image file and saved on ...
user215422's user avatar
0 votes
1 answer
584 views

Does rsync support hot transfer while the system is running?

I want to use rsync for creating complete, bootable backups of a LUKS-encrypted Linux disk. Does it support hot-transferring of files, i.e. can I use rsync from a running (idling) system with opened ...
david's user avatar
  • 329
1 vote
1 answer
256 views

Using live Linux or custom distros as backup?

There are tools such as Remastersys (and possibly also Linux Live kit) for creating custom distros and live Linux systems. Is it possible to use them to create a complete system backup, i.e. ...
david's user avatar
  • 329
2 votes
1 answer
1k views

Clone functionality for APFS

2022 UPDATE: Clonezilla supports the APFS file system I understand that Clonezilla does not list APFS as a supported file system. It is important to me to be able to create a clone back of a disk so ...
gatorback's user avatar
  • 1,394
0 votes
1 answer
788 views

Clone and restore a Opensuse linux on another physical machine

I have a Opensuse Linux installed and all application/database configured. This Linux has no GUI, only command prompt. Now we want to create an image of this installation so that we can set it up on ...
Rahatur's user avatar
  • 101
0 votes
0 answers
882 views

Cloning a mdadm RAID1

I have an old PC which has two internal hard drives of 80GB in a mdadm RAID1 configuration with LVM on top of it. I wanted to migrate this PC to a virtual machine, so I booted both, the PC and the VM, ...
T. Pluess's user avatar
  • 552
1 vote
1 answer
228 views

Backup Clone Bootable USB Thumb To Slightly Smaller USB Thumb

I have a bootable USB Linux thumb that I want to backup to have a safety copy. The thumb is a UEFI 64GB drive with several partitions; 1) FAT32 2) ext4 (boot) 3) linux-swap 4) FAT32. I bought ...
martinsbm's user avatar
3 votes
1 answer
743 views

MBR and bootstrap explanation for different size disk copy

I wish to clone a 500gb MBR source disk to a 250gb MBR destination disk manually by making each corresponding partition on the destination disk and restoring just the data contents of each. This way, ...
ron's user avatar
  • 7,264
0 votes
1 answer
122 views

Duplicating an image to another machine?

I'm trying to duplicate the entire environment on one machine to another. Will simply copying all files from the source machine to the destination one work? My main concern is that typically, when ...
Thundercleez's user avatar
2 votes
2 answers
12k views

Fastest way to clone a Debian system?

I have a Debian 10 system running on my laptop, and I'd like to clone it over to my Ubuntu laptop (which has a larger hard drive than the Debian laptop), replacing the Ubuntu installation altogether. ...
Josh's user avatar
  • 39
5 votes
3 answers
11k views

How can I create an image of a partition (ext4) and later mount it to browse/restore files? [duplicate]

I'd like to backup my current Debian 9 server OS partition so I can install a clean version of Debian 10. However, after installing Debian 10, I'd like to mount my old OS image so I can browse and ...
SofaKng's user avatar
  • 333
-2 votes
1 answer
1k views

Cloning a disk to a larger disk without overwriting

If I clone a hdd to another (larger) hdd that already has data on it, will the older data get deleted or will new data get added on top of old data? I need to move data from 2 smaller hard drives to ...
topencrypt's user avatar
1 vote
0 answers
5k views

Create an installation ISO image from and of an existing Ubuntu Linux installation on a USB

Trying to find out the best and possibly easier way to create an installation ISO image from and of an existing Ubuntu Linux installation. I can then use a LiLi like tool to then make it bootable on a ...
eecs's user avatar
  • 21
0 votes
0 answers
44 views

centos 7 can't run on new pc

I have a fully working centos 7 pc, I want to change that pc so I need to take out the HDD from old to new PC( keep all files and VM config) but my new PC cant find the centos 7 EFI file to boot from.
Arshavink's user avatar
0 votes
0 answers
691 views

execve(2) not launching system commands

I am trying to implement a container, and for that I create a process using the clone(2) system call with the appropriate flags: if ((child_pid = clone(child_main, process_struct.Stack + ...
o.awajan's user avatar
1 vote
1 answer
341 views

error creating namespaces

I am trying to create a process with new namespaces, and for that i need to use clone(2) with the appropriate flags, the following is the clone system call and a printf() statement to print the parent ...
o.awajan's user avatar
0 votes
1 answer
1k views

Allow a non-super-user run process to fork and clone itself (probably duplicate)

Question I would like to launch a Docker container which runs a process which may or may not clone itself. Is it possible to set up a user with normal + clone_newuts permission so that I do not have ...
MarkJL's user avatar
  • 113
0 votes
1 answer
395 views

Why does unshare binary call clone() so many times?

I am trying to test the unshare command in Linux. I am using it to create a new user namespace. I tried the following test: user1@myPC$ strace -e clone,unshare,fork,execve unshare --user execve("/usr/...
Jake's user avatar
  • 1,373