Difference between revisions of "Migrate installation to new hardware"

From ArchWiki
Jump to: navigation, search
m (Migration from Old to New Installation Guideline)
(Expanding)
Line 1: Line 1:
 
[[Category:Getting and installing Arch (English)]]
 
[[Category:Getting and installing Arch (English)]]
This page summarizes some hints and ideas when going from a well configured system with ArchLinux to new hardware. The goal is to achieve the same ArchLinux installation, as long as software and configuration is concerned, but also clean config files and other hacks.
+
{{Stub}}
 +
This page summarizes some hints and ideas (especially handy commands) when going from a well configured system with ArchLinux to new hardware. The goal is to achieve the same ArchLinux installation, as long as software and configuration is concerned, but also clean config files and other hacks.
  
 
Basically, there are two ways:
 
Basically, there are two ways:
 
# ''Bottom to Top'': Install a fresh ArchLinux on the new, and try to install and configure all packages from the old.
 
# ''Bottom to Top'': Install a fresh ArchLinux on the new, and try to install and configure all packages from the old.
 
# ''Top to Bottom'': Bitwise copy the old partitions to the new system, try to get the kernel working without forgetting some tweaks
 
# ''Top to Bottom'': Bitwise copy the old partitions to the new system, try to get the kernel working without forgetting some tweaks
Which way you choose depends heavily on how the new system differs from your old and how exactly you want to reproduce the system.
+
Which way you choose depends heavily on how the new system differs from your old and how exactly you want to reproduce the system. In any case:
 +
{{Warning|Please backup all of your data on the old system before continuing! The following commands could be useful or harmful!}}
  
 
== Bottom to Top ==
 
== Bottom to Top ==
 +
=== On the old system ===
 +
# What software?
 +
pacman -Qe | awk '{print $1;}' > Packages
 +
gives you a nice list of explicitly installed packages. Don't forget the software ''not'' installed through pacman.
 +
 +
# Copy /var/cache/pacman/pkg to some backup space.
 +
 +
 +
=== On the new system ===
 +
# Stick to the well-written installation guidelines here in this wiki. Since you are experienced, the [[Quick_Arch_Linux_Install]] could be enough. Try to configure as much as possible sticking to ''current'' wiki articles and forum posts.
 +
 +
# Copy the pacman cache to var/cache/pacman/pkg
 +
 +
# TODO: Find some more intelligent command! This breaks when local packages are listed in the file Packages.
 +
# xargs -a Packages pacman -S
 +
  
 
== Top to Bottom ==
 
== Top to Bottom ==
 +
Try to get the old harddrive(s) in your new system. Consider that you might need adapters (PATA->SATA, USB-HDD-Cases, etc.) and choose a fast connection (or prepare for long copy times).

Revision as of 19:44, 10 August 2010

Tango-document-new.pngThis article is a stub.Tango-document-new.png

Notes: please use the first argument of the template to provide more detailed indications. (Discuss in Talk:Migrate installation to new hardware#)

This page summarizes some hints and ideas (especially handy commands) when going from a well configured system with ArchLinux to new hardware. The goal is to achieve the same ArchLinux installation, as long as software and configuration is concerned, but also clean config files and other hacks.

Basically, there are two ways:

  1. Bottom to Top: Install a fresh ArchLinux on the new, and try to install and configure all packages from the old.
  2. Top to Bottom: Bitwise copy the old partitions to the new system, try to get the kernel working without forgetting some tweaks

Which way you choose depends heavily on how the new system differs from your old and how exactly you want to reproduce the system. In any case:

Warning: Please backup all of your data on the old system before continuing! The following commands could be useful or harmful!

Bottom to Top

On the old system

  1. What software?
pacman -Qe | awk '{print $1;}' > Packages

gives you a nice list of explicitly installed packages. Don't forget the software not installed through pacman.

  1. Copy /var/cache/pacman/pkg to some backup space.


On the new system

  1. Stick to the well-written installation guidelines here in this wiki. Since you are experienced, the Quick_Arch_Linux_Install could be enough. Try to configure as much as possible sticking to current wiki articles and forum posts.
  1. Copy the pacman cache to var/cache/pacman/pkg
  1. TODO: Find some more intelligent command! This breaks when local packages are listed in the file Packages.
# xargs -a Packages pacman -S


Top to Bottom

Try to get the old harddrive(s) in your new system. Consider that you might need adapters (PATA->SATA, USB-HDD-Cases, etc.) and choose a fast connection (or prepare for long copy times).