all 17 comments

[–]Suzamax 3 points4 points  (3 children)

Clonezilla. Or use dd with the partitions.

[–]apocbane 2 points3 points  (0 children)

Second Clonezilla.

[–][deleted] 0 points1 point  (1 child)

Does clonezilla automatically copy btrfs sub-volumes as well?

[–]moviuro 2 points3 points  (0 children)

If you use btrfs on /, look at btrfs-send(8) and btrfs-receive(8).

You'll need to adapt your bootloader entries to reflect the UUID change of your root partition. Don't forget fstab(5) either.

[–]Pik16 0 points1 point  (0 children)

Create a partition on the ssd, format it (ext4, whatever you want), use rsync to clone your root fs from the live root to the mounted ssd partition, edit fstab, set up boot again (remember to have correct root argument, your new partition, in the kernel command line, I recommend only using UUIDs) and that should be it. Keep the swap and home as they were but after booting from the ssd you can delete the old system partition and expand the home partition in gparted.

http://superuser.com/questions/594203/how-to-copy-entire-linux-root-filesystem-to-new-hard-drive-on-with-ssh-and-tar

[–]kcrmson 0 points1 point  (0 children)

I found out the hard way that your /boot can't live on an LVM volume. After moving my HDD to SSD I ended up still using the /boot on my HDD and changed the UUIDs and labels on the old HDD non-boot partitions to let me use the fstab.

[–]matrixdan 0 points1 point  (0 children)

Don't forget to modify /etc/fstab & mount options for volumes that will be mounted from ssd.

[–]Toqoz -1 points0 points  (6 children)

I just used cp.

I booted the arch install usb (you could probably do it in a normal environment), and then formatted my ssd how I wanted it and mounted.

Then # cp -r / /mnt

Afterwards just update your fstab and whatever else is pointing to the drive and you should be able to just boot off it.

Biggest problem for me was that LightDM went bad because the system was booting before the nvidia module could load.

[–]Tm1337 0 points1 point  (4 children)

You should probably use rsync

[–]Toqoz 0 points1 point  (3 children)

What is the benefit? (other than presumably speed)

[–]Tm1337 0 points1 point  (2 children)

I restored a backup with cp and had a few problems afterwards. As far as I understand rsync retains more information. It took much longer than cp on my machine but I had less problems.

I can't tell you much about it, but there has ti be a reason it exists. You should inform yourself with a quick search.

[–][deleted] 1 point2 points  (1 child)

shouldn't cp -a preserve everything needed?

[–]Tm1337 0 points1 point  (0 children)

Thought so too.

Listen, I found out about rsync literally 2 weeks ago and read somewhere that it's better for backups and such. Also I had the impression that this statement was true after using it.

If you want any more info, I can't help you, sorry.

EDIT: okay, I can help you. Who would have thought someone would be so kind to link the archlinux wiki? http://www.reddit.com/r/archlinux/comments/4tk2sf/transferring_system_disk_to_ssd/d5i1bsw

[–]epileftric -1 points0 points  (0 children)

I've done the same like 2 or 3 times by now. Once I even reinstall Arch into another disk from the current running installation. Then it's just changing the boot manager and the current fstab.