Questions tagged [clone]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
10 views

How to correctly clone disk-to-disk using clonezilla?

I'm copying my OS from one USB flash drive to another USB flash drive. My OS have encrypted / and encrypted /boot. And I always get errors after copying and I think that's because of encrypted /boot. ...
0
votes
0answers
26 views

Proper way to install Grub after cloning a drive partition

I currently have a drive installed in a server that I need to clone to a second drive (to move the OS to a different machine). The original drive is a 270GB SAS drive, and the drive I want to move to ...
3
votes
1answer
59 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, ...
0
votes
0answers
24 views

Clone Ubuntu does not working properly

I cloned my Ubuntu 18.04 to a SSD disk with "systemback" program and named it Ubuntuclone. I use Ubuntuclone with my MacBook Pro for separate OS. While my mac is opening I hit "alt" button. In opening ...
0
votes
1answer
54 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 ...
0
votes
2answers
507 views

Fastest way to clone a Debian system?

Apologies if this has already been asked. 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), ...
2
votes
3answers
631 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 ...
-2
votes
1answer
99 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 ...
0
votes
0answers
776 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 ...
0
votes
0answers
28 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.
0
votes
0answers
44 views

Moving MBR to a cloned drive with BTRFS

Context : I have cloned a disk with ddrescue (was supposed nead to death). I want the copy to be bootable. Both disks are installed in the PC, the old one (eventually in good health) on /dev/sdb and ...
0
votes
0answers
298 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 + ...
1
vote
1answer
81 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 ...
0
votes
1answer
177 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 ...
0
votes
1answer
112 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/...
1
vote
1answer
470 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 ...
1
vote
0answers
96 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, ...
1
vote
1answer
659 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 ...
0
votes
3answers
721 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 ...
3
votes
1answer
1k 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 ...
3
votes
1answer
346 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 ...
3
votes
1answer
417 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 ...