I have bought a new internal HDD hard drive as the previous one is old enough now I use Ubuntu and Kali Linux in dual boot and I have done a lot of customization and don't want to do that again with fresh install how do I clone both Kali Linux and Ubuntu as it is now to the new internal HDD without losing any data?
Asked
Active
Viewed 387 times
1 Answers
0
Copy the entire drive from one to another. The destination drive needs to be bigger or at least the same size as the source:
Boot into an install cd/usb, "try without installing"
Open gnome-disks or gparted or sudo fdisk -l: So you can identify which drive is which.
Open a terminal
sudo dd if=/dev/sdX of=/dev/sdY bs=1M status=progress
substituting X and Y for the device names you found on your system
/dev/sdX - (the old drive) the entire device, not just a partition(ie sdX1,sdX2).
/dev/sdY - (the new drive) again your writing to the entire device.
Should take a while depending on the size.
WU-TANG
- 3,316