Path: utzoo!attcan!uunet!dino!ux1.cso.uiuc.edu!tank!msuinfo!frith!jhl From: jhl@frith.uucp (John Lawitzke) Newsgroups: comp.unix.questions Subject: Re: Copying /dev/* to another partition Message-ID: <1990May31.135503.27171@msuinfo.cl.msu.edu> Date: 31 May 90 13:55:03 GMT References: <2538@tuminfo1.lan.informatik.tu-muenchen.dbp.de> Sender: news@msuinfo.cl.msu.edu Organization: Michigan State University Lines: 18 From article <2538@tuminfo1.lan.informatik.tu-muenchen.dbp.de>, by k2@charly.bl.physik.tu-muenchen.de (Klaus Steinberger): $ rtidd@mwunix.mitre.org (Randall Tidd) writes: $>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. Under SCO Xenix and SCO UNIX, tar does not copy empty directories or device nodes. -- j |%|John Lawitzke, Dale Computer Corp., R&D |%|UUCP: uunet!mailrus!sharkey!dale1!jhl |%| or: uunet!frith!dale1!jhl Inquiring minds just wondering. |%|Internet: jhl@frith.egr.msu.edu