You are not logged in.

#1 2017-01-04 18:20:33

govg
Member
Registered: 2014-01-05
Posts: 3

Migrating from existing HDD to SSD

I have an Arch Linux install as part of a dual boot system, and I recently purchased an SSD. I tried to migrate the install to the SSD using the following steps :
0) Take a tar backup of the existing installation (creating archive of / folder)
1) Format SSD as one primary partition
2) Do a fresh install of Arch on the SSD using the live image, up until installing the base system.
3) Install Grub onto SSD (/dev/sdb)
4) At this point, untar the existing backup into the / folder, replacing all existing files
5) Editing fstab on the SSD to account for UUID change
6) Run grub to generate boot image.
7) Reboot after exiting from chroot

I face a couple of issues following this process. First, pacman warns of duplicate database entries for all the packages installed as part of the base system. Working around this, I run into issues of gcc-libs conflicting with gcc-multilibs.

Once I reboot the system (it successfully booted into my old install the first time around), systemd shows a failure for logind.service, and the booting process hangs at that point. I can't access any of the other terminals, and it is stuck at the booting status messages (successfully initialized hardware sensors, etc).

Is there a more straightforward backup process I can follow? I have an image of the drive that Arch was installed on, as well as the tar backup. Unfortunately I do not have access to my original drives.

Offline

#2 2017-01-04 18:28:41

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,523
Website

Re: Migrating from existing HDD to SSD

Steps 2 and 3 are completely redudant (or worse) with 4.  You should do one or the other, not both.

You will have to update the grub config with the new UUID.  The fstab is good, but if you have single partition you dont really even need an fstab.

EDIT: (s/1-3/2 and 3/) as noted below, step 1 is necessary, I miscounted.  But in step 2 you repartition again ... just partition and format once, and don't install anything if you want to restore the backup.

Last edited by Trilby (2017-01-04 19:04:17)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2017-01-04 18:37:00

govg
Member
Registered: 2014-01-05
Posts: 3

Re: Migrating from existing HDD to SSD

Oh, looks like I didn't read enough beforehand. Does that mean I can simply extract the tar archive into the blank partition, update grub and fstab and get it to work?

Last edited by govg (2017-01-04 18:39:08)

Offline

#4 2017-01-04 18:54:30

ayekat
Member
Registered: 2011-01-17
Posts: 1,589

Re: Migrating from existing HDD to SSD

Actually you do need step 1 (formatting), as I assume that the tarball contains the files of the filesystem, not a byte-to-byte copy (dump) of the filesystem.


pkgshackscfgblag

Offline

#5 2017-01-04 19:27:49

govg
Member
Registered: 2014-01-05
Posts: 3

Re: Migrating from existing HDD to SSD

Yep, got it thanks. Works perfectly now smile

Offline

#6 2017-01-18 20:44:28

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: Migrating from existing HDD to SSD

Offline

Board footer

Powered by FluxBB