r/archlinux • • 23d ago

QUESTION Moving arch partition to another laptop

I've got a riced arch + hyprland setup on my current laptop (a T480s) which has now died and only works when plugged into power. I bought an intel T14 Gen 2 second hand and now need help transferring the partition to the new T14. I've got access to a usb harddrive that (I'm pretty sure) can fit the partition. What tools do I use? How do I go about doing this? Do I need to move my grub install too? The laptop comes with microslop windows 11 pro preinstalled and I wanna keep it there incase I need any windows specific software, or generally as a backup, do I need to transfer my grub asw (the T480s has zorin and Kali installs i don't use or need anymore, hence I have grub)? Any and all help is needed as I only have 2 days to do this - the T480s is being traded in on Friday!

3 Upvotes

9 comments sorted by

10

u/iAmHidingHere 23d ago

Use the installer image to make a new partition on the new laptop, and use raync to copy the data.

1

u/iLikeRamen13 23d ago

I'm assuming you meant rsync? How would this work if im first copying it to a usb harddrive? Same thing? Would I also include grub?

3

u/iAmHidingHere 23d ago

I don't see any reason to use a usb-drive. You would have to install a bootloader on the new drive, update fstab etc. The wiki describes it well: https://wiki.archlinux.org/title/Migrate_installation_to_new_hardware#Top_to_bottom

2

u/iLikeRamen13 23d ago

The time overlap of the new laptop coming and the old laptop being traded in is extremely slim, if not unexistant. I'll check the wiki

1

u/un-important-human 19d ago

you specify the paths (folders ) to be rsynced. so you take your /home/[username] and voila

4

u/evild4ve 23d ago

none of these tasks are Arch-specific or different on Arch. always backup first!

the Arch installation guide explains how to partition disks and install and configure grub. It tends to be more confusing when there are root partitions to be juggled around but so long as you keep backups it is ultimately the same principles and wiki pages

you don't want multiboot at all if you can avoid it - better to take out the Windows disk and put it in a drawer, and move the Arch disk into the new laptop

2

u/Wemorg 23d ago

You can dd your root partition on an external USB device and dd it back onto a new partition on the laptop. Think can break, but surprisingly works quite well these days.

1

u/Particular-Juice-669 17d ago

Clonage a l’aide de dd.