You are not logged in.

#1 2011-10-13 15:06:50

archer42
Member
Registered: 2011-06-10
Posts: 92

Stage4 archlinux

I now made a clean Installation of "my" archlinux with gnome3 and all packages I usually use. Now I want to pack my whole /-dir to a tar.bz2 which i then can extract over a gentoo-livecd into new systems. So I only have to install the grub2 and the kernel.

I thought I use

tar cvjf /stage4.tar.bz2 / --exclude=/stage4.tar.bz2 --exclude=/home/* --exclude=/dev/* --exclude=/mnt/* --exclude=/tmp/* --exclude=/proc/* --exclude=/sys/* --exclude=/etc/mtab --exclude=/etc/ssh/ssh_host_* --exclude=/media/* --exclude=/var/cache/pacman/pkg/*

Would this work?

Last edited by archer42 (2011-10-13 15:09:56)

Offline

#2 2011-10-13 18:38:09

ANOKNUSA
Member
Registered: 2010-10-22
Posts: 2,141

Re: Stage4 archlinux

Any reason this process might be preferrable to using partition cloning software?  Something like Clonezilla would definitely be more convenient for this.  Also, unless both machines are identical you may need to change other config files.

Offline

#3 2011-10-13 20:50:07

tlvb
Member
From: Sweden
Registered: 2008-10-06
Posts: 297
Website

Re: Stage4 archlinux

I'm not sure about stageX terminology, but if the tar is any representation it only contains files, not partition data,
so the difference between doing that and cloning the partition would be in the latter influencing partition
size and file system type. ...Which one may or may not want...


I need a sorted list of all random numbers, so that I can retrieve a suitable one later with a binary search instead of having to iterate through the generation process every time.

Offline

#4 2011-10-14 08:10:08

archer42
Member
Registered: 2011-06-10
Posts: 92

Re: Stage4 archlinux

Sure I have to create the partitions and mount them before I can extract the stage4-image. But then I just have to chroot, change rc.conf and install grub2 and the kernel via pacman (and the xf86-video-* driver)

I find this is a really easy way... better then any clone software where you can't see what happens...

I made the Image and will try it the coming days.

Offline

#5 2011-10-14 10:40:33

oenone
Member
Registered: 2011-10-11
Posts: 5

Re: Stage4 archlinux

Don't forget to look at your fstab..

Offline

Board footer

Powered by FluxBB