You are not logged in.

#1 2011-03-30 10:31:41

sardaukar
Member
From: Netherlands
Registered: 2011-01-05
Posts: 32
Website

migrating Arch to a new PC

Hello all.

I run Arch now as my main OS, and Win7 for great Starcraft 2 justice. I dual-boot, using Windows' boot loader but will be getting a new PC soon just for Linux! What is the surefire way of making it work? I was thinking of hooking up my current disk as slave, booting with a live-cd, DDing the whole partition over to the new hard-drive, readjusting /etc/fstab, and it would Just Work (right?).

Will this copy over the bootloader? Is there a better way?

Thanks for any feedback.

Offline

#2 2011-03-30 10:44:21

jdarnold
Member
From: Medford MA USA
Registered: 2009-12-15
Posts: 485
Website

Re: migrating Arch to a new PC

Do you really need to copy the Arch install? Why not take this opportunity to start from scratch with Arch anyway. Install a new Arch, copy over your /home folder and add apps as you use/need them. That's usually how I do it, anyway.

Offline

#3 2011-03-30 10:51:04

fredre
Member
Registered: 2009-12-18
Posts: 45

Re: migrating Arch to a new PC

I imagine you could have issues if the new computer uses different hardware. e.g. the old computer has a Nvidia chip and the new one has ATI, the old one is i686 the new one is x86_64 etc. I think the best way to go about it would be to just back up all your important data and install from scratch.

Offline

#4 2011-03-30 11:04:59

bohoomil
Member
Registered: 2010-09-04
Posts: 2,376
Website

Re: migrating Arch to a new PC

Technically it may be possible, but it doesn't make too much sense. Unless your new PC is an exact copy of the old one, you're most likely to encounter all kind of 'surprise' errors, unexpected behaviours, or at least performance issues possible. Take your time and do a fresh install so your hardware is recognized properly and in the most rudimentary way optimized. You will probably save lots of time this way.


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#5 2011-03-30 11:13:12

dobedo
Member
From: Belgium
Registered: 2008-10-04
Posts: 113

Re: migrating Arch to a new PC

@sardaukar: I used this in the past (or something very similar) to transfer my system from one machine to another: https://wiki.archlinux.org/index.php/Fu … with_rsync
I had to change the nvidia driver also iirc.

Offline

#6 2011-03-30 11:22:50

sardaukar
Member
From: Netherlands
Registered: 2011-01-05
Posts: 32
Website

Re: migrating Arch to a new PC

Just wanted to keep my stuff, because there's a lot of time involved in setting it up (it's a development machine). But I guess a full install can't hurt...

Offline

#7 2011-03-30 11:23:09

Barrucadu
Member
From: York, England
Registered: 2008-03-30
Posts: 1,158
Website

Re: migrating Arch to a new PC

Last year I moved my Arch install from a laptop to a desktop simply by transplanting the HDD, and the only thing that broke was X, as I was using a xorg.conf rather than having it do its automagic configuration thing. Other than that, everything worked perfectly. YMMV.

Offline

#8 2011-03-30 11:27:27

sardaukar
Member
From: Netherlands
Registered: 2011-01-05
Posts: 32
Website

Re: migrating Arch to a new PC

I'll try the cloning. An install is easy, anyway smile

Offline

#9 2011-03-30 13:40:54

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: migrating Arch to a new PC

Yeah, Linux is not Windows, you can copy your existing install to use it on different hardware. A 32 bit install also works perfectly fine on 64 bit hardware. (I did that but using cp -ar instead of dd.)

Offline

#10 2011-03-30 15:17:20

ninian
Member
From: United Kingdom
Registered: 2008-02-24
Posts: 726
Website

Re: migrating Arch to a new PC

# rsync -av --delete /source/ /target/
then fixup GRUB, fstab and your video driver, and that's about it!
(with a new machine, even the --delete is unnecessary)
wink

Offline

#11 2011-03-30 15:54:30

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: migrating Arch to a new PC

Aside from video card etc., you'll also want to make sure you properly align the partition, should the new hard drive use 4k sectors.  Other than that, config file clean-up is the only real hands-on task; cloning is really just a matter of waiting (and waiting, and waiting...).  Good luck to ya! smile

Offline

#12 2011-03-30 17:00:57

sardaukar
Member
From: Netherlands
Registered: 2011-01-05
Posts: 32
Website

Re: migrating Arch to a new PC

Thanks for all the feedback, guys!

Offline

Board footer

Powered by FluxBB