Finding tape block size
George Robbins
grr at cbmvax.commodore.com
Sat Feb 16 16:17:06 AEST 1991
In article <1991Feb12.224353.6514 at gjetor.geac.COM> adeboer at gjetor.geac.COM (Anthony DeBoer) writes:
> I periodically get tapes from client's systems or other sources where the
> precise tape format isn't documented. What I'm looking to find out is if
> there's a way to determine exactly what block size was used when the tape was
> written, or even if this is a major requirement (should I even be worrying
> about it or not?). Reading with a tasteful default value usually seems to
> work (even a 512-byte block size has worked before, although at tremendous
> loss of efficiency), but I'm wondering if there's any chance of data loss with
> the wrong block size, or any rule of thumb for optimizing things.
dd if=/dev/nrmt* of=diskfile bs=65535 count=1 ; ls -l diskfile ...
- or -
dd if=/dev/nrmt* bs=65535 count=1 | wc -c
Different tape devices have different characteristics. A sun type cartridge
tape is insensitive to blocksize (except as a performance issue), traditional
raw 9-track tapes may well lose data...
--
George Robbins - now working for, uucp: {uunet|pyramid|rutgers}!cbmvax!grr
but no way officially representing: domain: grr at cbmvax.commodore.com
Commodore, Engineering Department phone: 215-431-9349 (only by moonlite)
More information about the Comp.unix.wizards
mailing list