On Sat, Dec 19, 1998 at 07:34:59AM -0700, Karl F. Larsen wrote: > > You don't do this much so you forget. I just moved a number of > large directories from one ext2 filesystem to another and it works just > great. I decided from where to where exactly and then as root typed: > > cp -a here.directory there.dirctory > > This copies the specified directory and all subs to the there defined > directory. But you can't copy your root directory using that. Say you're trying to copy / to /mnt; it'll copy /mnt to /mnt/mnt and so on forever. cp -ax / /mnt would do it though; -x means "only one file system", so it won't copy anything else you have mounted (like /proc or /mnt). I think it will copy devices in /dev properly; not sure. Alternatively (cd /; tar clf - /) | (cd /mnt; tar xvf -) would do it too. The "l" to tar is the one file system option again. You can do it with cpio too but I don't know how. Hamish -- Hamish Moffatt Mobile: +61 412 011 176 [EMAIL PROTECTED] Rising Software Australia Pty. Ltd. Developers of music education software including Auralia & Musition. 31 Elmhurst Road, Blackburn, Victoria Australia, 3130 Phone: +61 3 9894 4788 Fax: +61 3 9894 3362 USA Toll Free: 1-888-667-7839 Internet: http://www.rising.com.au/
