Restore Gentoo Linux Backup
Complete new restore
Format system
fdisk /dev/<device>
n
p
w
mkfs.ext4 /dev/<devicepartion>
Mount system
mount /dev/<devicepartion> /mnt/gentoo
Mount and extract remote backup archive
mkdir /mnt/backup
mount -t cifs -o username=<username>,password=<password> //<hostname>/<share> /mnt/backup
cd /mnt/gentoo
tar -xvf /mnt/backup/backup-<name>-<date>.tar.bz2
Chroot system
mount -t proc none /mnt/gentoo/proc
mount --rbind /sys /mnt/gentoo/sys
mount --rbind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
export PS1="(chroot) $PS1"
Install the bootmanager
grep -v rootfs /proc/mounts > /etc/mtab
grub-install --no-floppy /dev/sda