Path: utzoo!attcan!uunet!seismo!ukma!rex!uflorida!haven!decuac!decwrl!shelby!eos!ames!sun-barr!newstop!sun!snafu!lm From: lm@snafu.Sun.COM (Larry McVoy) Newsgroups: comp.unix.questions Subject: Re: Copying /dev/* to another partition Message-ID: <136423@sun.Eng.Sun.COM> Date: 31 May 90 01:45:47 GMT References: <109757@linus.UUCP> <2538@tuminfo1.lan.informatik.tu-muenchen.dbp.de> Sender: news@sun.Eng.Sun.COM Reply-To: lm@sun.UUCP (Larry McVoy) Organization: Sun Microsystems, Mountain View Lines: 22 In article <2538@tuminfo1.lan.informatik.tu-muenchen.dbp.de> k2@charly.bl.physik.tu-muenchen.de (Klaus Steinberger) writes: >rtidd@mwunix.mitre.org (Randall Tidd) writes: > >>I am running SunOS 4.1 on a Sun 3/160. > >>I am trying to clone my root partition to a backup partition (just >>root and subdirectories, but *not* other partitions such as /usr, >>/home, etc). I ran into a problem when trying to copy /dev; when I >>try to cp /dev/sd0a (for example), it will try to read from the device >>/dev/sd0a rather than copy the actual file /dev/sd0a. > >Use cpio or tar for this purpose. That's the way to do it. And don't forget to install the boot block - just copying it doesn't work. Check out installboot(8). Also - your backup /etc/fstab is going to be different. As a side note to sys admins: what this person is trying to do is *really* handy if you are the sort that trashes partitions. I do file system development and I can't survive w/o a backup root & usr. --- Larry McVoy, Sun Microsystems (415) 336-7627 ...!sun!lm or lm@sun.com