2022 Developer Survey is open! Take survey.

Questions tagged [clone]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
37 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 ...
user avatar
  • 101
0 votes
1 answer
62 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.
user avatar
  • 1
0 votes
0 answers
33 views

change the main storage target (root /) ubuntu

I have 2 hardisks: dev/sda (HDD) dev/sdb (SSD) previously I used dual boot (windows and ubuntu) on dev/sda, so I migrated to SSD by cloning data from HDD to SSD I have also deleted data related to (...
user avatar
  • 101
0 votes
1 answer
68 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 ...
user avatar
  • 5
0 votes
1 answer
27 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 ...
user avatar
  • 5
0 votes
0 answers
35 views

how do I install the yast clone_system module from a command line

# yast clone_system No such client module clone_system is the error I get after booting SLE-15-SP3-Full-x86_64-GM-Media1.iso, choosing the Basesystem-Module_15.3-0, Public-Cloud-Module_15.3-0, and ...
user avatar
  • 209
0 votes
0 answers
39 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 ...
user avatar
  • 119
1 vote
1 answer
97 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 ...
user avatar
  • 119
1 vote
2 answers
139 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 ...
user avatar
  • 11
0 votes
1 answer
65 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) ...
user avatar
0 votes
1 answer
24 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 ...
user avatar
4 votes
2 answers
465 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 ...
user avatar
1 vote
0 answers
269 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:...
user avatar
1 vote
1 answer
140 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-...
user avatar
  • 2,894
0 votes
2 answers
430 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 ...
user avatar
  • 1
0 votes
1 answer
236 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 ...
user avatar
  • 1
0 votes
0 answers
48 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 ...
user avatar
2 votes
1 answer
3k 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+...
user avatar
0 votes
1 answer
37 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 ...
user avatar
0 votes
1 answer
187 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 ...
user avatar
  • 101
1 vote
1 answer
111 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. ...
user avatar
  • 101
0 votes
1 answer
616 views

Clone functionality for APFS

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 that the many of work can be restored should there be ...
user avatar
  • 1,104
0 votes
1 answer
295 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 ...
user avatar
  • 101
0 votes
0 answers
570 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, ...
user avatar
  • 430
1 vote
1 answer
120 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 ...
user avatar
3 votes
1 answer
377 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, ...
user avatar
  • 4,121
0 votes
1 answer
66 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 ...
user avatar
1 vote
2 answers
6k 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. ...
user avatar
  • 29
3 votes
3 answers
6k 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 ...
user avatar
  • 283
-2 votes
1 answer
652 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 ...
user avatar
0 votes
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 ...
user avatar
  • 11
0 votes
0 answers
32 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.
user avatar
0 votes
0 answers
615 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 + ...
user avatar
1 vote
1 answer
193 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 ...
user avatar
0 votes
1 answer
511 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 ...
user avatar
  • 113
0 votes
1 answer
253 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/...
user avatar
  • 1,263
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 ...
user avatar
1 vote
0 answers
275 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, ...
user avatar
1 vote
1 answer
2k 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 ...
user avatar
  • 135
0 votes
3 answers
2k 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 ...
user avatar
  • 111
3 votes
1 answer
5k 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 ...
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 ...
user avatar
  • 301
3 votes
1 answer
874 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 ...
user avatar
  • 1,226