You are not logged in.

#1 2020-04-17 14:42:22

jxt_hbtm
Member
Registered: 2019-11-30
Posts: 14

How to clone Arch to a new SSD

I had windows 10 and Arch installed on /dev/sda. I get an SSD and want to clone Arch from /dev/sda to /dev/sdb(the SSD). What should I do?

[root@archlinux ~]# fdisk -l
Disk /dev/sda: 298.9 GiB, 320072933376 bytes, 625142448 sectors
Disk model: ST320LT007-9ZV14
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x4cb43c69

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1  *         2048   3071999   3069952   1.5G  7 HPFS/NTFS/exFAT
/dev/sda2         3072000 107929599 104857600    50G  7 HPFS/NTFS/exFAT
/dev/sda3       107929600 625142446 517212847 246.6G  f W95 Ext'd (LBA)
/dev/sda5       107931648 317646847 209715200   100G  7 HPFS/NTFS/exFAT
/dev/sda6       317648896 338620415  20971520    10G  b W95 FAT32
/dev/sda7       338622464 339146751    524288   256M 83 Linux
/dev/sda8       339148800 355926015  16777216     8G 82 Linux swap / Solaris
/dev/sda9       355928064 376899583  20971520    10G 83 Linux
/dev/sda10      376901632 439816191  62914560    30G 83 Linux
/dev/sda11      439818240 625142446 185324207  88.4G 83 Linux


Disk /dev/sdb: 238.49 GiB, 256060514304 bytes, 500118192 sectors
Disk model: Lenovo SSD SL700
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Offline

#2 2020-04-17 14:48:23

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: How to clone Arch to a new SSD

https://wiki.archlinux.org/index.php/Mi … w_hardware
https://wiki.archlinux.org/index.php/Disk_cloning
https://wiki.archlinux.org/index.php/Rsync

Because the disks are different sizes, you will have trouble cloning the original drive. I suspect you don't actually want to clone the drive, just to migrate the install the the new hardware. I usually use rsync for this, and it works well for me.

Moving to NC.

Offline

#3 2020-04-17 14:53:00

jxt_hbtm
Member
Registered: 2019-11-30
Posts: 14

Re: How to clone Arch to a new SSD

thank you!  I just want to migrate Archlinux to the new disk, leaving Windows 10 on /dev/sda, so I don't need to reinstall all the software of Archlinux.

2ManyDogs wrote:

https://wiki.archlinux.org/index.php/Mi … w_hardware
https://wiki.archlinux.org/index.php/Disk_cloning
https://wiki.archlinux.org/index.php/Rsync

Because the disks are different sizes, you will have trouble cloning the original drive. I suspect you don't actually want to clone the drive, just to migrate the install the the new hardware. I usually use rsync for this, and it works well for me.

Moving to NC.

Offline

Board footer

Powered by FluxBB