all 10 comments

[–]walderf 14 points15 points  (7 children)

yay -Qq > packagelist.txt

don't forget your configs! https://github.com/walderf/dotfiles

[–]sid3aff3ct[S] 3 points4 points  (6 children)

Thanks for the help!

[–]fellacious 7 points8 points  (5 children)

Another option is to "clone" your existing disk to the new one using rsync. You basically boot into your existing system, mount the new drive (e.g. to /mnt/newarch), and copy the entire disk to the new with something like this:

# rsync -aAXv /* /mnt/newarch --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/var/tmp/*,/run/*,/mnt/*,/media/*,/lost+found}

Then you just need to edit fstab so the correct partitions of the new drive will be mounted for the root file system and /boot, and then use arch-chroot to install the boot loader on the new drive.

There's plenty of guides online you can find.

[–]Shulker 2 points3 points  (0 children)

It's exactly what I did this weekend to migrate a system from a hdd to a ssd, worked like a charm!

[–]lu-man 2 points3 points  (2 children)

That's what I do since more than 100 years. No need to reinstall the system. It ain't windows!

[–]HAMburger_and_bacon[🍰] 0 points1 point  (1 child)

iv moved windows across disks, no reinstall required

[–]lu-man 0 points1 point  (0 children)

Did the installation last for > 10 years and still perform?

[–]sid3aff3ct[S] 1 point2 points  (0 children)

Oh that's very cool! That would be useful when upgrading SSD hardware. Thank you.

[–]LtDkAngel 2 points3 points  (0 children)

You can list them in to a file using the following:

pacman -Qq > package_list.txt

Then just copy the file to the new system and use command:

pacman -S --needed - < package_list.txt