Date: Wed, 10 Apr 1996 14:20:12 +0000 (GMT) From: Gabor Zahemszky <zgabor@CoDe.hu> To: richardc@CSUA.Berkeley.EDU (Richard Chang) Cc: freebsd-questions@freebsd.org Subject: Re: hard reading error Message-ID: <199604101420.OAA03490@CoDe.CoDe.hu> In-Reply-To: <Pine.PTX.3.91.960409201332.24231N-100000@soda.CSUA.Berkeley.EDU> from "Richard Chang" at Apr 9, 96 08:14:24 pm
next in thread | previous in thread | raw e-mail | index | archive | help
> > # (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 <zgabor@CoDe.hu> -:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:- Earth is the cradle of human sense, but you can't stay in the cradle forever. Tsiolkovsky
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199604101420.OAA03490>