Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!news.cs.indiana.edu!rutgers!cmcl2!panix!alexis From: alexis@panix.uucp (Alexis Rosen) Newsgroups: comp.unix.aux Subject: Re: Copying A/UX to another disk Message-ID: <1991Apr18.201134.8738@panix.uucp> Date: 18 Apr 91 20:11:34 GMT References: <1991Apr17.173127.15460@jato.jpl.nasa.gov> Organization: PANIX - Public Access Unix Systems of NY Lines: 27 dundas@granite.Jpl.Nasa.Gov (John Dundas) writes: >I want to copy my entire root file system onto another (larger) disk. >I seem to remember using a pipe like: > find / -print | cpio -pdl /something >but this isn't working. The actual command I am using is: > find / -depth -print | cpio -pdl /dev/rdsk/c1d0s0 >but when issued, this command complains that it >"cannot write in " >(I am root when trying). Any suggestions? The problem with this is that you have to copy onto a mounted filesystem. But if you mount the disk, it will be found by find, and you'll have an infinite loop (you'll see that that disk isn't nearly as big as you though :-). So what you want to do is this: 1) Make sure the new disk (and any others, if you have any) is UNmounted. 2) cd / ; find . -depth -print >tmp/files # (Make the list of files) mount /mnt /dev/dsk/c1d0s0 # mount your new disk cpio -idm /mnt