As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [clone]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
54 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
0 votes
1 answer
53 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
  • 246
1 vote
1 answer
42 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
359 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'...
AverageLinuxEnjoyer's user avatar
0 votes
0 answers
249 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
132 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
210 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
141 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
104 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
181 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
212 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
298 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
600 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
  • 11
0 votes
1 answer
163 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
91 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
795 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
432 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
347 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,154
0 votes
2 answers
957 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
463 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
126 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
3 votes
1 answer
5k 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
65 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
396 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
  • 309
1 vote
1 answer
189 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
  • 309
1 vote
1 answer
947 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,196
0 votes
1 answer
513 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
713 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
  • 470
1 vote
1 answer
185 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
573 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
  • 5,405
0 votes
1 answer
87 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
9k 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
3 votes
3 answers
9k 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
  • 303
-2 votes
1 answer
915 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
4k 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
34 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
635 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
274 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
763 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
330 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,293
1 vote
1 answer
2k views

Why does replacing drive with a dd clone cause machine to hang at boot?

I have a home-brew media server based on a 800MHz Intel Atom with two big LVM drives and Debian 9 on a 250GB 2.5" drive. The latter is showing bad blocks, so I am intending to replace it. I booted ...
Nick Bailey's user avatar
1 vote
0 answers
442 views

Is it possible to create a thread without sharing memory space?

The http://www.man7.org/linux/man-pages/man2/clone.2.html write Since Linux 2.5.35, flags must also include CLONE_SIGHAND if CLONE_THREAD is specified (and note that, since Linux 2.6.0-test6, ...
炸鱼薯条德里克's user avatar
1 vote
1 answer
3k views

Protocol SSL is not working with Curl

I am trying to clone Wayland repository from git (for a project) but git clone command is throwing me an error. I installed curl (from here). After cloning make && make install. Earlier I had ...
RC0993's user avatar
  • 135
1 vote
3 answers
3k views

Can't boot from a cloned hard drive

My laptop's hard drive will fail soon (according to SMART), so I decided to clone the entire drive to another one: sudo sh -c 'cat /dev/sda >/dev/sdc' With the new hard drive the laptop shows ...
Dmitry's user avatar
  • 141
3 votes
1 answer
6k views

Use rsync to clone one server to another?

I have two Debian 9 servers, server A and Server B. Server A is a LAMP stack server. Server A is slow. Server B is fast. I want to clone server A to server B without shutting down server A. How do ...
DrDamnit's user avatar
  • 141
3 votes
1 answer
1k views

How to copy partitions from one device to another, including boot partitions?

Basic Explanation How could I copy partitions sdh1 though shd4 from my 600gb HDD (sdh) to my 1 TB SSD (sdg)? Which are my Windows partitions and still keep it bootable? I used GPT. Below is a ...
MathCubes's user avatar
  • 293
3 votes
1 answer
1k views

With Linux user namespaces, why can clone() mount /proc, but unshare() cannot?

I am trying to get a non-root user to mount /proc in a Linux user namespace. If I create a namespace via clone(), then I can mount /proc. However, if I create a namespace via unshare(), then the ...
mpb's user avatar
  • 1,481