Robizzle01
Limp Gawd
- Joined
- Sep 30, 2005
- Messages
- 159
I've been a good boy and have been making stage4 backups fairly frequently, however, every time I go to use one, it ends up not working. The closest i've come was one stage 4 that booted all the way into gnome but was acting very odd -- I think ivtv wouldn't modprobe anymore although I dont remember exactly.
So, what i'm looking for is someone that has a first-hand tested and fully working make stage 4 and install stage4 guide. Bonus points if you can explain to me what is in each of the excludes (for making the stage4) and why it is alright to exclude/not-exclude said directories.
Below is what I have been doing, and it did not work so I would not recommend anyone actually using this code. Almost straight from the gentoo-wiki.
(note that /video and /heap are partitions that never were destroyed. They were not backed up and they were not included in the stage4.)
contents of /heap/backup/stage4.excl
And then finally to restore, I did this:
So, what i'm looking for is someone that has a first-hand tested and fully working make stage 4 and install stage4 guide. Bonus points if you can explain to me what is in each of the excludes (for making the stage4) and why it is alright to exclude/not-exclude said directories.
Below is what I have been doing, and it did not work so I would not recommend anyone actually using this code. Almost straight from the gentoo-wiki.
(note that /video and /heap are partitions that never were destroyed. They were not backed up and they were not included in the stage4.)
Code:
# mount /boot
<make file /heap/backup/stage4.excl, see below for contents>
# tar cjpf /heap/backup/stage4.tar.bz2 / -X /heap/backup/stage4.excl
contents of /heap/backup/stage4.excl
Code:
.bash_history
/dev/*
/mnt/*
/tmp/*
/proc/*
/sys/*
/usr/src/*
/usr/portage/*
/video/*
/heap/*
And then finally to restore, I did this:
Code:
<fdisk /dev/sda stuff>
mkfs.ext2 /dev/sda1
mkfs.ext3 /dev/sda3
mkswap /dev/sda2
swapon /dev/sda2
mount /dev/sda3 /mnt/gentoo
mkdir /mnt/gentoo/boot
mount /dev/sda1 /mnt/gentoo/boot
<copy stage4 to /mnt/gentoo/stage4.tar.bz2>
cd /mnt/gentoo
tar -xvjpf stage4.tar.bz2
mount -o bind /dev /mnt/gentoo/dev
mount -t proc none /mnt/gentoo/proc
mknod -m 660 /mnt/gentoo/dev/console c 5 1
mknod -m 660 /mnt/gentoo/dev/null c 1 3
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile