It is currently Tue May 21, 2013 12:32 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: cloning of zenwalk
PostPosted: Thu Jun 24, 2010 1:04 pm 
Regular Zenwalker
Regular Zenwalker

Joined: Thu May 20, 2010 9:23 am
Posts: 88
Hi,

I'd like to clone a installed zenwalk box, and use it to install to other computers, i tried Norton Ghost, it does not work, any tips on this? Thanks,

Angelo


 Profile Send private message  
 
 Post subject: Re: cloning of zenwalk
PostPosted: Thu Jun 24, 2010 10:54 pm 
Regular Zenwalker
Regular Zenwalker

Joined: Sun Oct 12, 2008 10:12 pm
Posts: 56
Technically not cloning, but...

Part the first: create a tarball backup

1. Exit X and go to single user (should be 'telinit s')

2. As root (obviously, it being single user) go to the root directory /.

3. Run this:

tar -czvpf backup.tar.gz --exclude=backup.tar.gz --exclude=tmp/* --exclude=proc/* --exclude=sys/* /

And wait for it to complete. This will build a tarball of your entire system and put it in the root directory.

(Note that I assume you have enough room in / for this. Also don't leave out the 'p' in '-czvpf', otherwise permissions won't be preserved and your 'clone' will not work.)

4. Burn the tarball to a data CD.

Part the second: extract the tarball where it's needed

1. Boot the target computer from a live CD. My favorite for this purpose is Parted Magic, but anything with a partitioner and udev will work fine.

2. Recreate the first machine's partition layout and mount the partitions. Or just create whatever partition layout you want - this can be dealt with later.

3. Mount the CD with the tarball on it. Extract the tarball to the new root directory like so:

tar -xzvpf backup.tar.gz -C /$mountpoint

($mountpoint being wherever you mount the new root. Again, don't leave out the 'p'!)

4. Mount necessary virtual filesystems:

mount --bind /proc /$mountpoint/proc
mount --bind /sys /$mountpoint/sys
mount --bind /dev /$mountpoint/dev

And chroot in:

chroot /$mountpoint /bin/bash

Run lilo, first editing lilo.conf as necessary. Edit fstab, again as necessary. Set the timezone if you want (/etc/localtime is the copy of the timezone file, localtime-copied-from is a symbolic link to it).

5. Exit the chroot (just type 'exit'), unmount everything, and reboot. On next boot you should have a working Zenwalk system. Boot, update, and enjoy.


 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


 Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: