Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [clone]

The tag has no usage guidance.

0
votes
0answers
77 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 + ...
0
votes
0answers
21 views

After cloning drive using linux original drive wont boot windows [closed]

I'm trying to upgrade system drive for Windows. I first used clonezilla and the new drive was able to boot fine. However, the device manager saw it as the same size as the original drive. So, I was ...
1
vote
1answer
34 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
67 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
23 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
82 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
42 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
108 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 ...
1
vote
3answers
104 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 ...
4
votes
1answer
205 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
76 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 ...
1
vote
1answer
191 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 ...