View previous topic :: View next topic |
Author |
Message |
DSeichter n00b
Joined: 27 Jul 2002 Posts: 10
|
Posted: Sat Jul 27, 2002 3:19 pm Post subject: Building own Stage |
|
|
Hello!
I've yesterday installed the gentoo 1.2 and have compiled on my 233Mhz machine for about 9 or 12 hours (during I've slept very well). Now I want to backup this to a CD or a file on a file-server. How can I make a stage-archive for the current installation?
Is there a problem, because I've installed vim with all dependencies?
Thank you
Daniel Seichter |
|
Back to top |
|
|
delta407 Bodhisattva
Joined: 23 Apr 2002 Posts: 2876 Location: Chicago, IL
|
Posted: Sat Jul 27, 2002 4:58 pm Post subject: |
|
|
A "stage" is basically a tarball of one's root filesystem. You could boot the CD and tar+bzip2 your root filesystem. However, you would want another hard drive or extra partition to do this on... you could use your swap space, though, if it's large enough. I would try something like this:
Code: | # mkdir /mnt/gentoo
# mount /dev/ROOT /mnt/gentoo
# mount /dev/BOOT /mnt/gentoo/boot
# rm -r /mnt/gentoo/var/tmp/portage /mnt/gentoo/usr/portage/distfiles (cleans up stuff for a smaller tarball)
# mke2fs -j /dev/SWAP (reformats swap as ext3)
# mkdir /mnt/temp
# mount /dev/SWAP /mnt/tmp
# cd /mnt/tmp
# tar cjpvf mystage.tar.bz2 /mnt/gentoo/* |
_________________ I don't believe in witty sigs. |
|
Back to top |
|
|
DSeichter n00b
Joined: 27 Jul 2002 Posts: 10
|
Posted: Sat Jul 27, 2002 6:17 pm Post subject: |
|
|
Thank you
delta407 wrote: | A "stage" is basically a tarball of one's root filesystem. You could boot the CD and tar+bzip2 your root filesystem. However, you would want another hard drive or extra partition to do this on... you could use your swap space, though, if it's large enough. I would try something like this:
Code: | # mkdir /mnt/gentoo
# mount /dev/ROOT /mnt/gentoo
# mount /dev/BOOT /mnt/gentoo/boot
# rm -r /mnt/gentoo/var/tmp/portage /mnt/gentoo/usr/portage/distfiles (cleans up stuff for a smaller tarball)
# mke2fs -j /dev/SWAP (reformats swap as ext3)
# mkdir /mnt/temp
# mount /dev/SWAP /mnt/tmp
# cd /mnt/tmp
# tar cjpvf mystage.tar.bz2 /mnt/gentoo/* |
|
|
|
Back to top |
|
|
|