SunOS 3.5 Network Disk

Richard Seegmiller sol!richard at sunkist.west.sun.com
Sat Feb 24 08:14:38 AEST 1990


#Maybe this is old hat.  Does anyone have a quick way to copy files from a
#client's ndp0 without booting the client?  In other words, where is ndp0?
#Please -- no RTFM's.  The M is driving me crazy.

I recall doing this very thing ( a looonnnnggg time ago).

1. You need to make sure that the machines that mount the nd partitions
that you want to use are turned off (or at least, not booted).  

2. On the server, look in /etc/nd.local for an entry of the form 
   user machine_name 0 /dev/xy0c 211720 6700 3 <------- use this number 
   user machine_name 1 /dev/xy0c 218420 33500 -1 

3. Determine the number for the source machine you want to use in the
copy. Also determine the number for the destination machine you want.  

4. Create to directory in the root partition on the file server (eg
'/mnt1' and '/mnt2') 

5. Using the numbers determined in step 3, mount the ndl# partition.  For
example if you want to copy from machineA whose nd partion is 1 to
machineB whose nd partion is 2, do the following: 

      mount /dev/ndl1 /mnt1 mount /dev/ndl2 /mnt2 

6. You may now execute a tar pipe like this: 

      cd /mnt1 tar cf - ./* | (cd /mnt2; tar xvBpf

This will copy the whole root partition to machineB's root partition.
NOTE: You have also copied all of the system files in /etc.  Some of the
files in /etc on machineB will have to be modified.  One that I know of
off hand is /etc/fstab to reference the nd partition of machineB.  If you
only need to copy some files (not the whole root partition of the client)
then the 'tar' command is just a 'cp' of the files you want.  BEWARE: (if
you don't already know) cp does not copy symbolic links, it copies the
file the symbolic link points to.  tar copies symbolic links and preserves
them as links.  

7. Unmount the nd partions by: 

     cd / umount /mnt1 umount /mnt2 rmdir /mnt1 rmdir /mnt2 

8. Boot the machines that were used in the copy.

Good Luck

Richard Seegmiller
Research & Techonology Development
De La Rue Printrak
1250 N. Tustin Ave.
Anaheim, CA 92807

Phone:    (714)666-2700
Internet: sol!richard at sunkist.West.Sun.COM 
	  sol!richard%sunkist.West at Sun.COM	(for hosts table hosts)
UUCP:	  ...!sun!sunkist!sol!richard



More information about the Comp.sys.sun mailing list