From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,de5ebb56b69728cb X-Google-Attributes: gidfee84,public From: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) Subject: Re: [Q] how to list #/size of dumpfiles on tape Date: 1996/04/21 Message-ID: <4ldp9p$j5b@nntpd.lkg.dec.com>#1/1 X-Deja-AN: 150819874 distribution: world references: organization: Digital Equipment Corporation reply-to: alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.) newsgroups: comp.unix.osf.osf1 In article , John Haro writes: >I need some kind of way to do a listing on my DEC TZ87 tape drive to find out >how many and number of dumpfiles so I know how much tape I have left. You could start with: % dd if=/dev/nrmt#h of=/dev/null bs=block-size-of-dump Repeat until end of tape. Each dd(1) command will print the number of tape records read. Multiply by the block size and you know how much uncompressed tape capacity has been used. But, there's the problem; UNCOMPRESSED tape capacity. It may be hard to get the running compression ratio (the drive may keep it in a mode page). Without knowing how well the data compresses (since the TZ87 does compression), you won't be able to tell accurately how much more data a tape can hold. Dump also writes this information to /dev/tty. Depending on how your script is written, it may be possible to capture that information. > >Thanks, John. > >pls email back to > haro@fclzoo.itdl.ds.boeing.com > > -- Alan Rollow alan@nabeth.cxo.dec.com