Questions tagged [clone]
50 questions
4
votes
2 answers
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 parent process needs to allocate a stack for the child, even if…
exliontamer
- 137
- 6
3
votes
1 answer
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+linux+all data files) to the SSD, so that I can…
Tayyab Mazhar
- 141
- 1
- 6
3
votes
1 answer
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, if a 100GB partition is only 5% full, I am only…
ron
- 5,749
- 7
- 48
- 84
3
votes
3 answers
How can I create an image of a partition (ext4) and later mount it to browse/restore files?
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 restore files as needed.
I thought I would use…
SofaKng
- 303
- 1
- 5
- 10
3
votes
1 answer
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 I do that?
I think I can do something like…
DrDamnit
- 141
- 1
- 5
3
votes
1 answer
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 diagram the layouts of my partitions on the 600GB Hard…
MathCubes
- 301
- 1
- 2
- 11
3
votes
1 answer
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 call to mount() fails with Operation not…
mpb
- 1,501
- 1
- 15
- 23
2
votes
2 answers
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. What is the easiest and fastest way to accomplish…
Josh
- 39
- 1
- 4
1
vote
0 answers
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, Linux isn't supported.
I have tried Clonezilla and I…
intrigued_66
- 181
- 4
1
vote
1 answer
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, since the hardware is different and therefore…
Ul Tome
- 87
- 2
- 8
1
vote
1 answer
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 terminal and GUI, have a starting sequence and a…
Michael Macha
- 311
- 2
- 12
1
vote
1 answer
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'm using Arch Linux ARM on the server with apache…
AverageLinuxEnjoyer
- 11
- 3
1
vote
1 answer
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 mount /dev/sdb1 /media/frank/cloned/
mount:…
Frank
- 129
- 7
1
vote
2 answers
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 on the boot screen(PCI devices listing) before…
perlwle
- 11
- 2
1
vote
0 answers
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…
unix1959
- 11
- 1