Copying A/UX to another disk

Jim Jagielski jim at jagubox.gsfc.nasa.gov
Tue Apr 23 22:40:58 AEST 1991


In article <5032 at dftsrv.gsfc.nasa.gov> I ramble:
}In article <1991Apr23.010830.5923 at am.dsir.govt.nz> Tony Cooper writes:
}}
}}|> |	find / -print | grep -v /mnt | cpio -pdlm /mnt
}}|> 
}}|> Well, "something like" ought to be something more like
}}|> 
}}|> 	find / -print | egrep -v '^/mnt$|^/mnt/' | cpio -pdlm /mnt
}}|> 
}}Well neither of the two is correct. Neither "copies" A/UX to another disk.
}}They both change the files in subtle ways. Files on both filesystems are
}}changed in fact and both filesystems are not identical. The only way to make
}}a copy is by using dump. Dump to tape then restore to disk. Then only two
}}files get changed on both filesystems (namely the raw disk special files)
}}and both filesystems are otherwise identical.
}}
}
}Yep, dump is good, but I seem to recall (it's been awhile though :) that dump
}also "copies" the SuperBlock info, meaning that the sizes of the FileSystems
}MUST be the same. That is, if you want to "copy" a 55MB Root FS to a new
}100MB partition, you can't use dump since the sizes are the same. In this case,
}you must use a file-oriented utility, such as cpio.

Well, I goofed! I was actually thinking of volcopy and NOT dump.bsd concerning
the SB stuff.

Using dump.bsd IS the way to make exact copies of file systems, but you don't
even need tape, as Tony says. Make your new file system and then mount it on
/mnt... now to copy root over just type:

	$ dump.bsd 0f - /dev/rdsk/c0d0s0 | ( cd /mnt; restore xf - )

Using a pipe removes the need for any external storage...
--
===========================================================================
#include <std/disclaimer.h>
                                 =:^)
           Jim Jagielski                    NASA/GSFC, Code 711.1
     jim at jagubox.gsfc.nasa.gov               Greenbelt, MD 20771

 "I object to all this sex on the television. I mean, I keep falling off!"



More information about the Comp.unix.aux mailing list