From owner-freebsd-questions Wed Apr 10 13:42:50 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id NAA07162 for questions-outgoing; Wed, 10 Apr 1996 13:42:50 -0700 (PDT) Received: from soda.CSUA.Berkeley.EDU (soda.CSUA.Berkeley.EDU [128.32.43.52]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id NAA07146 for ; Wed, 10 Apr 1996 13:42:41 -0700 (PDT) Received: (from richardc@localhost) by soda.CSUA.Berkeley.EDU (8.6.12/8.6.12) id NAA25553; Wed, 10 Apr 1996 13:42:24 -0700 Date: Wed, 10 Apr 1996 13:42:21 -0700 (PDT) From: Richard Chang To: Gabor Zahemszky cc: freebsd-questions@freebsd.org Subject: Re: hard reading error In-Reply-To: <199604101420.OAA03490@CoDe.CoDe.hu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Wed, 10 Apr 1996, Gabor Zahemszky wrote: > > > # (cd /dead_filesystem; tar cf - . ) | (cd /new_filesystem; tar xvf -) > > > > Is there a way to copy /dev to another drive since I've tried > > before and it doesn't appear to be working. > > Yes. You can use it with the previous method, or you can use cpio, or pax, > too: > cpio: > cd /dev ; find . -depth -print | cpio -o | ( cd /newdev ; cpio -id ) > or another way of it: > cd /dev ; find . -depth -print | cpio -pd /newdev > > pax: > cd /dev ; find . -depth -print | pax -w | ( cd /newdev ; pax -r ) > or: > cd /dev ; find . -depth -print | pax -rw /newdev > > With pax, you have more versions, too. (As I know, cpio, dump, - and if you > have - pax can save device files, but original tar not. Of course, FB uses > GNU-tar, which hase this nice feature.) Hmmm, okay... What is FB? Richard