Skip to content

Transferring system disk to SSD

Hi, I've had archlinux installed on my main PC for almost a year now, and I love it. I've got it tweaked to just how I like it.

The system disk is a GPT setup using EFI , btrfs ( root directory ) , swap and ext4 (/home directory ) partitions.

However my system HD is aging and slow, so I want to get an SSD to replace it. This will be my first SSD so I am a total n00b in that area.

All my personal data is stored on another HD (with backups ), soft linked to home partition.

I absolutely do not want to reinstall archlinux from scratch, so what is the best procedure for migrating the linux install from HD to virgin SSD?

3 points17 comments
Open on Reddit
About this post
Posted
Archived
Score
3 · 100% up
Kind
Text
ID
4tk2sf

Author

13
posts
39
comments
0
media
View profile

17 comments

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.

3 points

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

1 points

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.

1 points

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

1 points

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.

0 points

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.

0 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.