Link to home
Start Free TrialLog in
Avatar of davidpm
davidpmFlag for United States of America

asked on

Save RedHat Install

I have a HP 4050 notebook with 6 GB drive.

I ran the recovery CD that put it back to factory defaults with a C: partition and a D: partition.
I used System Commander to move the partitions around so I could install RH 7.3 also. Each OS has about
3GB
At this time everything is working just fine. I can boot on Win2K or RH 7.3

I've got quite a bit of time setting this all up and I need this setup for work. On the weekend I would
like to play with Gentoo. I've booted with the Gentoo CD and it recognizes the NIC and sets up networking

Is their any way for me to:
1. Boot with the Gentoo CD and store the RH partition on a NFS share
2. Zap the partition
3. Install Gentoo
4. Come Sunday night swap Gentoo and RH and be ready for work.
5. Next Fri. night swap Gentoo and RH or Gentoo and Win2K for another weekend learning session?

I'm thinking that some sort or tar, gzip, dd, rsync type thing may work. But there is the Grub stuff
and the syntax and mounting stuff I'm not sure of.
Avatar of davidpm
davidpm
Flag of United States of America image

ASKER

Must be more work than I thought. Perhaps this will help
Avatar of jlevie
jlevie

You could certainly use dump/restore to move the contents of the Linux filesystem to/from an NFS mount point. Getting the dump image onto an NFS mount is easy. Getting it back onto your laptop would require a bootable floppy or CD that included networking, NFS, and restore.

The bigger problem will be to boot loader. I don't know anything about Gentoo, so I don't know what it uses or how that might affect the w2k installation. Once the RedHat filesystems have been reloaded running grub-install show restore the MBR to what it was before Gentoo.
Avatar of davidpm

ASKER

Could you supply some example commands?
I have one partion /dev/hda3 mounted on /
ASKER CERTIFIED SOLUTION
Avatar of jlevie
jlevie

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of davidpm

ASKER

Thanks. I'll pass this to my Linux intern. Hope it is all he needs
How about posting a comment here after you (or your intern) goes through to process. Oh yes, you can always try this on some other system that has a 'throw away' installation on it. I think it would suffice to just have RedHat on the trial system.
Avatar of davidpm

ASKER

Good Idea. I have just the system for that test already built. The only reason why this project came up is that this is a notebook and my trick of using a spare hard drive and just swapping drives does not work as I only have one drive for the notebook.
Thanks.
Did you ever complete that firewall distro experiment you were working on last year?
Avatar of davidpm

ASKER

This worked:
Only thing I had to change was a dump typo and fstab which apparently is required.
Have not tried restore yet.

Boot on Super Rescue CD (http://www.kernel.org/pub/dist/superrescue/v2/
Press enter to boot then ^d for multi-user mode
Logon as root
cardmgr to load network drivers
netconfig to setup networking
/etc/init.d/network restart to start networking
mkdir /mnt/root /mnt/nfs (creates working mount points)
mount /dev/hda3 /mnt/root  (mounts real file system root to virtual root)
mount 192.168.255.195:/mnt/nfs /mnt/nfs (mounts remote files system to local target point)
vi /etc/fstab (add following line)
/dev/hda3     /mnt/root    ext3    defaults          0 0
dump –z1 -0af /mnt/nfs/root.image /mnt/root (This does the dump)