UNIX Checking Tape Space


 
Thread Tools Search this Thread
Operating Systems Solaris UNIX Checking Tape Space
# 15  
Old 11-21-2013
You are right, Solaris does not have "mt tell".
Maybe only Linux has it? Its man page also states it does not work with all tapes.
In this case you must do your own book-keeping...
# 16  
Old 11-21-2013
Quote:
Originally Posted by MadeInGermany
You are right, Solaris does not have "mt tell".
Funny, that's where I found it. He may be having trouble finding mt though.
# 17  
Old 11-21-2013
And you are right, too: Solaris 11 has it.
I only checked Solaris 10.
# 18  
Old 11-21-2013
I will check as soon as I return to work tomorrow.

Are there any available UNIX ISOs? I use Virtual Machine Player. I currently have a Linux build on there. I believe it is called Lovelace or Lovelock.
# 19  
Old 11-22-2013
My apologies. Solaris is not my forte. Surely it must have other tools for managing the tape but I don't know... I'm going to move this into the Solaris forum where you might get better answers.

BSD is a popular "true" UNIX for x86 machines. There's also an OpenSolaris these days, or whatever descended from it.
# 20  
Old 11-22-2013
Hmmm, here's another way you could try it.
Code:
dd if=/dev/rmt/0 | tar vtf -

dd may complain about tar forcing it to quit early but that's exactly why we pipe it into tar, to kill it when the archive ends, not when the tape ends. dd should print rough statistics on how much was read, in blocks of 512, once it is done...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Copying tape-to-tape on UNIX

I am using a 4mm tape to backup my Unix system. However, I wanted to make a copy all of the files and archive headers (or just the archive headers if that's possible) created on one of my tapes to another 4mm tape. I only have one tape drive. Is there a command that will complete such task? ... (1 Reply)
Discussion started by: acoco
1 Replies

2. UNIX for Advanced & Expert Users

Checking the space for /archlog mount point script

I have the below shell script which is checking /archlog mount point space on cappire(solaris 10) server. When the space usage is above 80% it should e-mail. When i tested this script it is working as expected. #!/usr/bin/ksh export MAIL_LIST="tlr.voora@zamn.com" export ARCH_STATUS=`df -k... (1 Reply)
Discussion started by: dreams5617
1 Replies

3. Shell Programming and Scripting

Checking the space for /archlog mount point script

I have the below shell script which is checking /archlog mount point space on cappire(solaris 10) server. When the space usage is above 80% it should e-mail. When i tested this script it is working as expected. -------------------------------------------------------------------------... (0 Replies)
Discussion started by: dreams5617
0 Replies

4. Homework & Coursework Questions

Unix space checking script

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Im still pretty new to this and could really use some help with this task "Write a script to check in the... (12 Replies)
Discussion started by: krolike
12 Replies

5. UNIX for Dummies Questions & Answers

Problem in checking space of mount.Please help me

Hi everyone, I am writing a script. As a part of this script, I wanted to check the space of few mounts, If the space usage percentage of the mount crosses over a certain limit then i wanted to display a warning message. The following is the command df -k | awk ' { if (($6 == "/export/temp")... (4 Replies)
Discussion started by: Sheethal
4 Replies

6. Solaris

Command used for checking space occupied by files & sub-direc's inside a mount in %?

Hi, I want to know the command which can be used for finding the % of disk space occupied by files & sub-folders inside a given mount in Sun Solaris For eg: I have /tmp/ folder when I sat df -k it will give the percentage of space used by /tmp/. Say if I want to see how much % the files &... (2 Replies)
Discussion started by: weblogicsupport
2 Replies

7. UNIX for Dummies Questions & Answers

checking for a space in a file name

hi members... another new probs... i need to check all the zip files in the server and check for a space or "`" in the file name and if found need to remove them and form a zip file. i tried using grep command to check for a space but with out success also when i tried checking for "`" as... (6 Replies)
Discussion started by: madhu_aqua14
6 Replies

8. UNIX for Advanced & Expert Users

Space free on tape /delete a single file on tape

Hi, I' using a sun solaris server, I would like to known if there is the possibility to control how many space is free on a tape and how I can delete a single file on a tape. Thanks DOMENICO (3 Replies)
Discussion started by: Minguccio75
3 Replies

9. UNIX for Advanced & Expert Users

Does tar do crc checking on a tape or tar file?

Trying to answer a question about whether tar table-of-contents is a good tool for verifying tape data. (1 Reply)
Discussion started by: tjlst15
1 Replies

10. UNIX for Advanced & Expert Users

Tape space used not correct

version: SCO 5.0.5 There is a file in /usr/local/bin called ' baktape ', I'm unsure whether this is a standard unix file or one created by someone who used to manage this server? Anyway, it backs up what is specified to be backed up to tape and then prints off a report. Problem: What comes... (2 Replies)
Discussion started by: system77
2 Replies
Login or Register to Ask a Question