From owner-freebsd-questions Wed Apr 10 06:47:57 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id GAA07017 for questions-outgoing; Wed, 10 Apr 1996 06:47:57 -0700 (PDT) Received: from mail.EUnet.hu (mail.eunet.hu [193.225.28.100]) by freefall.freebsd.org (8.7.3/8.7.3) with ESMTP id GAA07005 for ; Wed, 10 Apr 1996 06:47:53 -0700 (PDT) Received: by mail.EUnet.hu, id PAA20117; Wed, 10 Apr 1996 15:47:35 +0200 Received: by CoDe.CoDe.hu (OAA03490); Wed, 10 Apr 1996 14:20:12 GMT From: Gabor Zahemszky Message-Id: <199604101420.OAA03490@CoDe.CoDe.hu> Subject: Re: hard reading error To: richardc@CSUA.Berkeley.EDU (Richard Chang) Date: Wed, 10 Apr 1996 14:20:12 +0000 (GMT) Cc: freebsd-questions@freebsd.org In-Reply-To: from "Richard Chang" at Apr 9, 96 08:14:24 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > > # (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.) -- Gabor Zahemszky -:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:- Earth is the cradle of human sense, but you can't stay in the cradle forever. Tsiolkovsky