From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,19716f1d7f745df2,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-10-26 06:49:59 PST Path: nntp.gmd.de!newsserver.jvnc.net!howland.reston.ans.net!news.sprintlink.net!hookup!yeshua.marcam.com!charnel.ecst.csuchico.edu!olivea!decwrl!nntp.crl.com!crl8.crl.com!not-for-mail From: cgi@crl.com (Paul Smith) Newsgroups: comp.unix.osf.osf1 Subject: dd can't read >>250Mb from DAT Date: 26 Oct 1994 06:07:12 -0700 Organization: CRL Dialup Internet Access (415) 705-6060 [Login: guest] Message-ID: <38lka0$bn7@crl8.crl.com> NNTP-Posting-Host: crl8.crl.com X-Newsreader: TIN [version 1.2 PL2] I'm going nutz with OSF v3.0 and trying to back up >>3Bgyte of disks both local and NFS mounted to the standard 4mm DAT drive that came in the storage works bay... So many bugs (??) and things not working as they do on other Unixes: 1) Block size for the DAT drive. Such POOR documentation on line, no clear statements of what block size to use with dd to achive the optimum / maximum DAT capacity?? The following script found that 4k blocks wrote max data (I believe): (generate infinate data) | dd ibs=4k obs=4k of=/dev/rmt0l dd bs=4k if=/dev/rmt0l of=/dev/null does indeed read 2Gb 2) The serious problems occur when real work needs to be done: find . -print|cpio -ocv |compress|dd ibs=4k obs=4k of=/dev/rmt0l The above happily writes with no indication that there's a problem. dd ibs=4k obs=4k if=/dev/rmt0l |uncompress |cpio -ict The above errors from dd; "invalid input" or some such, at about 250 Mb read in... If I change the block size in the above to 10k, keeping the block size to an from the pipe at 4k, still the same end result, write to tape is silently OK, read from tape fails at some early point. 3) Forget compress and dd. Just cpio directly to the tape dev, only use the high density device. find . -print|cpio -ocv -O/dev/rmt0h Works fine. cpio -ict -I/dev/rmt0h Cpio gets hung in some read error loop, spinning in a continuous printf, consumming all CPU. 3) Now I'm trying pax. Watch out for; find . -print|pax -w >/dev/rmt0h Find will send both files and directories to pax. Pax behaves like tar with given a dir, so you end up writing the same dirs over and over as you gave "." to pax, then each sub-dir etc and each file.... As I'm writting this, I haven't finished testing whether the following works: find . -type f -print|pax -wv >/dev/rmt0h And read back via: pax -rv