Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!news.nacamar.de!fu-berlin.de!irz401!orion.sax.de!uriah.heep!news From: j@uriah.heep.sax.de (J Wunsch) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: backing up filesystems Date: 28 Nov 1996 22:11:42 GMT Organization: Private BSD site, Dresden Lines: 37 Message-ID: <57l2mu$hr0@uriah.heep.sax.de> References: <57e77c$m1@quince.nac.ac.za> <87wwv7z2l8.fsf@beowulf.gamp.hacom.nl> Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) NNTP-Posting-Host: localhost.heep.sax.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: knews 0.9.6 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E G. Albert Mietus <albert@gamp.hacom.nl> wrote: > The are lots of easy methods, depending on your exact situation: Well, indeed, but you've just picked the only one that will cause major grieve. :) > When you have only one disk, just add the second one, make a > filsesystem on it (man newfs) and copy: > cd <old> ; tar -cf - . | cd <new> ; tar -xf - Hmpf. The tar format is simply too limited to use it for this purpose. It will damage the 32-bit device minor numbers. Fortunately, it warns about this damage. Ah, what an incident: my ``make release'' is just exactly at this point: tar: dev/rsd2.ctl: minor number too large; not dumped tar: dev/sd3s3: minor number too large; not dumped ... Your best choice is to use a dump/restore pipe, since this is the only way that will also retain the 4.4BSD file flags. The second best choice is using cpio's -p option. If you wanna use two piped cpio processes, you gotta specify -Hcrc or -Hnewc, or you'll also damage the dev minor numbers. (Btw., the release build process doesn't really suffer from the above problem. To work around the tar file format limitations, the device nodes are simply being revamped from scratch once the installation is complete.) -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)