Depending on your disk space, you can make a tar file or you could just do
it over a network. You should shut down things like databases before doing
anything below. There may be other things you want to stop depending on
how intact you want your log files, etc to be.

If you have a CD Burner handy, grab the LNX-BBC
(http://www.lnx-bbc.org/). You're life will be much easier. Partition the
disk in your target PC how you want it, then get it all mounted. I don't
remember if the LNX-BBC includes a NFS server or not, but I think it does.

Boot up the LNX-BBC on your target PC, get your
network going on the target pc (run trivial-net-setup, then
/etc/init.d/portmap start), edit /etc/exports to export the disk that
you've partitioned and formated, and then mounted somewhere under /mnt...

/mnt/rw/target/ 192.168.1.0/255.255.255.0(ro,insecure,no_root__squash)

On the RedHat box:
mount -t nfs XXX.XXX.XXX.XXX:/mnt/rw/target /mnt/new-pc
where XXX.XXX.XXX.XXX is the ip you gave the target PC.

Now:
cd /
tar cvf - bin/ etc/ usr/ boot/ opt/ root/ var/ home/ lib/ sbin/
initrd/ |(cd /mnt/new-pc; tar xvf -)

(Doing it this way is mostly a hack to get around incompatible command
switches in the GNU version of tar and the version of tar that was shipped
on say, a Solaris or IRIX box. There are different ways to do it, but this
works on almost any UNIX AFAIK....)

You want to leave out areas like /mnt/, /dev/, and /proc/, as these are
automatically generated (double check that your RedHat install uses devfs,
otherwise you might want to throw dev in...) Make sure that if you don't
tar these directories that you do actually create the directories of the
virtual filesystems will fail to mount.

A few NFS timeouts later, every thing should be copied over. Fix
/etc/fstab, module config, and anything else that would be different  with
LNX-BBC, and reboot. Use your RedHat install media as a rescue CD, bring
up your box in single user mode, do a grub-install /dev/hda, and you
should be in business more or less.

Andrew S. Zbikowski | http://www.ringworld.org
 A password is like your underwear; Change it
 frequently, don't share it with others, and
     don't ask to borrow someone else's.


_______________________________________________
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota
http://www.mn-linux.org tclug-list at mn-linux.org
https://mailman.real-time.com/mailman/listinfo/tclug-list