From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076339121484.tru64-unix-managers.marc@archive.invalid> From: Jeff Higgins Date: Mon, 16 Sep 1996 17:58:11 +0000 To: tru64-unix-managers Subject: SUMMARY: Determining tape used/remaining X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076339121484 Warm thanks to all who answered my question: >Is there any way to find out how many blocks are used and remaining on my >backup cassettes? We have a 1000/200 with a TLZ07 tape drive (4mm cassettes) There apparently is no direct way to analyze this, but two people suggested: #tapex -m which reports out the number files, number or records per file, and size of records, which is at least a start. I couldn't test this, not having tapex installed nor a chance to locate and install it. Juergen Bock has a clever idea: >one thing should work on all (unix) systems and for all drives: >Place your tape at the end of your last file written to tape. Then use: dd if=/dev/zero of=/dev/Yourtape bs=8192 >After the operation is completed, dd will tell you how many blocks it >has written. Since your blocksize is 8192 you simply have to compute >8192 * amount_of_blocks_written and you have the free space on you >tape. Of course you can choose a different blocksize. >The operation may take some time but it is reliable. I tried this with two interesting results: 1) I made a typo in the "of" spec, and filled my filesystem =:-O 2) I cleaned up my filesystem :) and sent it off to the tape, where it looped for hours and ate CPU time. When I ^C'd, it reported: 2572783+0 records in 2572227+0 records out I think Mr. Bock is on to something, but I must need to refine my implementation! Thanks to: Juergen Bock Dave Sill Lucio Chiappetti John Schaeffer Paul A Sand