You are not logged in.

#1 2015-05-16 00:29:55

neon612
Member
Registered: 2013-03-31
Posts: 7

Copying arch from a dying hard drive

My hard drive is dying, so I got a new one to replace the old one. The only hardware that is going to change is a single hard drive. From what I have read on the forums and wiki, it is possible to copy my current arch root partition from the dying drive to the new one, do a few changes to fstab and grub, and be back up and running.

I booted using a live disc to copy the old arch to the new drive.
Ran cp -a /mnt/old/* /mnt/new
changed the fstab to point to the new drive partitions
do a manual boot in grub to get to the new drive

Everything is going great up to this point. But I get a timeout error on a few systemd services. Something to do with a dependancy missing dealing with dhcpd. And, it is unable to mount one of my other drives from the fstab, and gives a timeout error there also.

Did I skip a step or something? I'd rather not have to do a fresh install, now that I finally have things configured the way I like them.

Offline

#2 2015-05-16 11:11:29

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Copying arch from a dying hard drive

neon612 wrote:

I get a timeout error on a few systemd services. Something to do with a dependancy missing dealing with dhcpd. And, it is unable to mount one of my other drives from the fstab, and gives a timeout error there also.

Please post the verbatim errors.


Also, post the content of /etc/fstab and the output of:

blkid

It may have been better to use `rsync` rather than `cp`
https://wiki.archlinux.org/index.php/Fu … with_rsync


Jin, Jîyan, Azadî

Offline

#3 2015-07-15 08:57:48

boban_dj
Member
Registered: 2015-03-17
Posts: 150

Re: Copying arch from a dying hard drive

Sorry, this is a duplicate answer of the previous post.

sudo rsync -aAXv /* /run/media/user/new_disk --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found,/home/user/*}

change the /etc/fstab to the new UUID from the UUID of the

find the UUID:

# blkid

Last edited by boban_dj (2015-07-15 09:06:28)

Offline

Board footer

Powered by FluxBB