Gentoo Wiki


This article is part of the Imaging series.
G4U G4L yagi UDPcast LiveCD



G4U is a small BSD system for the purpose of copying partitions or entire disk images with gzip compression. It is very basic and very easy to use. A current problem is that it doesn't support multicasting and requires the user to be physically at the machine in question.

I see potential for correction of these problems with were you to adapt the LTSP guide and somehow write alternate startup scripts to the Unix File System on which it was hosted. If you used BSD this should be easy, but I use Linux.

Acquiring G4U

Ghost for Unix (which has no relation to Norton Ghost) can be found here:

Preparing Server for Imaging

You will need an ftp server. I recommend mod_ftpd and vsftpd for *nix, and FileZilla for Win.

Any user with write privileges will do, but unless otherwise specified, g4u assumes the user install.

Preparing Clients for Imaging


If you are on a *nix system you should write blank bits to the "empty" space on your filesystems:

Code: Nullifying
 for FS in "/boot/ / /home/"
    cat /dev/zero > ${FS}nullfile.tmp
    rm ${FS}nullfile.tmp

As long as your kernel is of the "kitchen sink" type, you should be able to deploy your image across multiple hardware types.


On WinXP it is rumored that you can use the microsoft sysprep utility just before the imaging process and you will then be able to deploy the image across multiple hardware types. I have had no such success with Windows 2000.


Boot up with the G4U disk.

Unless you are using BSD you won't be able to use the ability to copy slices (partitions). If you are using BSD, then check out the official howto.

USER=install # this name is assumed if you don't specify
IPADDR= # the IP of the ftp server
IMAGENAME=lab_dell_gx270 # the name of the file
Code: Uploading Image
 uploaddisk ${USER}@${IPADDR} ${IMAGENAME}.gz
Code: Downloading Image Image
 slurpdisk ${USER}@${IPADDR} ${IMAGENAME}.gz
Retrieved from ""

Last modified: Wed, 26 Sep 2007 05:25:00 +0000 Hits: 7,485