On Sun, Jan 06, 2008 at 04:58:44PM +0200, Tom Rosenfeld wrote:
> What is the recommended method to distributing linux images?
> 
> If I have a workstation with a tuned installation and I want to replicate it
> to other workstation. The old fashion way is to open the box and physically
> copy the disk with ghost. How can I do this without a screwdriver?

The prefered (by me) method is to make a bzip2'ed 2 tar file(s) of the system.
Depending upon how many disks you have, how big it is and how much load you
want to put on your network, you can burn it on a dvd, mount it with NFS, etc.

Most of this can be done easily with a shell script kept in the same
place as the tar file.

For example:

boot a rescue CD. (fedora directory names used).

mkdir /mnt/oldimage
mount -t nfs system:sharename /mnt/oldimage
(partition disk as 3 partitions, 1 boot 32m-100m, 2 swap, 3 rest of disk)
mkfs -t ext3 /dev/hda1
mkfs -t ext3 /dev/hda3
mkswap /dev/hda2
mkdir /mnt/new
mount /dev/hda3 /mnt/new
mkdir /mnt/new/boot
mount /dev/hda1 /mnt/new/boot
cd /mnt/boot
tar xvjf /mnt/oldimage/imagename.tar.bz2
(run grub or lilo)
umount /mnt/new/boot
umount /mnt/new
umount /mnt/oldimage
sync
sync
sync
reboot
-- 
Geoffrey S. Mendelson, Jerusalem, Israel [EMAIL PROTECTED]  N3OWJ/4X1GM
IL Voice: (07)-7424-1667 U.S. Voice: 1-215-821-1838 
Visit my 'blog at http://geoffstechno.livejournal.com/

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to