Linux zieht um
Linux Migration from one Server to an other.
Source System on sda1, swap on sda2
Migrationsspace (USB-HD) to sdb1
singel user mode or boot from a life CD
init 1
Create Tar File on a USB-HD (sdb1)
mount /dev/sdb1 /media
cd /
tar --one-file-system -cpf /media/system.tar *
Go to new System! (Live-CD)
Migrationsspace (USB-HD) to sdb1
Target System on sda1, swap on sda2
Make Target System Partition
fdisk /dev/sda (sda1 & sda2)
mkfs.ext4 /dev/sda1
mkswap /dev/sda2
Mount Filesystem
mount /dev/sdb1 /media (USB-HD)
mount /dev/sda1 /mnt
Extract Tar
cd /mnt
tar -xf /media/system.tar
Fix fstab if using UUID's
ls -l /dev/disk/by-uuid/
vi /etc/fstab
Chroot and grubinstall
mount -t proc none /mnt/proc
mount -o bind /dev /mnt/dev
chroot /mnt
grub-install /dev/sda