Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!hplabs!hpcc05!hpcuhb!hpcuhe!whitten From: whitten@hpcuhe.cup.hp.com (Jim Whitten) Newsgroups: comp.sys.hp Subject: Re: Third-party SCSI disks under HP-UX Message-ID: <31480010@hpcuhe.cup.hp.com> Date: 26 Feb 91 20:33:15 GMT References: Organization: Hewlett-Packard, Cupertino CA Lines: 37 Well, my fave method for cloning unlike disks is... 1) mount your new disk, preferably not on the directory path you're going to be cloning/copying/whathaveyou. (If you're copy all of root on down, use a *very* unique directory name, like funkychicken97). 2) cd to the top of the directory tree you want to copy, and do this: find . -hidden -depth -print | cpio -pduvmxl /funkychicken97 the 'm' option to cpio maintains file modification times, but not directory mod times. Do a "man" on cpio for the other options; basically these preserve links and copy special files. Lose the -hidden option to "find" if you don't want CDF's to be copied. (Actually, there's a -cpio option to "find", I just don't happen to use it, mostly 'cuz of the next step...) *) If the directory or file system you've mounted your disk to is in the path you're trying to copy (like when you copy the entire disk from root down) use an "fgrep -v" in the command line: find . -hidden -depth -print | fgrep -v "./funkychicken97" | \ cpio -pduvmxl /funkychicken97 If you're truly cloning a disk, that is copying the contents of one (perfectly good) disk to another disk of the *exact same* type and format, just use "dd". Good Luck, Jim Whitten "The statements and opinions expressed (408) 447-4759 herein are mine alone and do not reflect INTERNET: whitten@hprasor.cup.hp.com those of my employer." UUCP: ...!hplabs!hpda!whitten "Not an official statement of HP" Cupertino, California Brought to you by Super Global Mega Corp .com