Re: migrating Arch to a new machine - what config to keep

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Tue, Dec 11, 2012 at 11:34:39PM +0800, Marek Otahal wrote:
> * I'll do pacman -Qe > installed.txt (on the old one), pacman -S
> $((cat installed.txt)) (on new)

That isn’t likely to work right.  You should use your favorite AUR
helper for this, because this list contains AUR packages, too.

> For other directories: /boot - nothing, /var - I dont care about old
> logs, is there anything else important?

You may have some useful stuff (eg. databases) in /var.  And copying
over /var/cache/pacman/pkg may be a good idea to speed up the
installation.

> /etc ... some files (related to hw) changed, but many (wifi,
> iptables, cron, security, ...) stay ...is it possible to copy/merge
> them in a smart way? Or I have to go through all the configuration?

Go through a diff of both /etc’s and merge them by hand.  That is the
safest way.

> I read this one:
> https://wiki.archlinux.org/index.php/Migrate_installation_to_new_hardware
> and basically I'd like to elaborate on how to merge the configs in
> /etc (or else?)

As I said: by hand is the safest way.  If you make a non-human do it,
you may end up without your kitten.

PS. I did my migration back in February, from a system converted from
i686 to x86_64 on an ext4 partition converted from ext3 (I am
serious.)  It went like this:

dd if=/dev/sda2 of=/dev/sdb2 # /
dd if=/dev/sda5 of=/dev/sdb5 # /home
grub-install /dev/sdb        # configured for (hd0,1); GRUB1.

-- 
Kwpolska <http://kwpolska.tk>
stop html mail      | always bottom-post
www.asciiribbon.org | www.netmeister.org/news/learn2quote.html
GPG KEY: 5EAAEA16
# vim:set textwidth=70:

Attachment: pgpAXmZ2JSUCK.pgp
Description: PGP signature


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux