fun with tar


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers fun with tar
# 15  
Quote:
Originally posted by PxT
Have you verified the contents of the tape with the 't' option to tar?

i.e. "tar -tvf /dev/rmt0"

does this command show you the contents you expect?
I did this and it seems to only list through the first "save set". I don't know how to get to the other sets that I appended after the first one.
# 16  
Try fast-forwarding through the tape with the 'mt' command.
Something like:

mt -f /dev/rmt0n fsf 1


Will fast-forward the tape by one set. Then you could try your tar command again when you get to the appropriate place in the tape.

Make sure you are using the "no-rewind" version of the tape device. See the mt man page for more info.

HTH
# 17  
Quote:
Originally posted by PxT
Try fast-forwarding through the tape with the 'mt' command.
Something like:

mt -f /dev/rmt0n fsf 1


Will fast-forward the tape by one set. Then you could try your tar command again when you get to the appropriate place in the tape.

Make sure you are using the "no-rewind" version of the tape device. See the mt man page for more info.

HTH
I tried the mt command and when I displayed the table of contents, it was information from the first save set again. I also tried to tar -xvf the directory I needed, but again it ran for a few minutes but did not restore anything that I needed from the tape. I need to go 15 save sets into the tape. Does that matter? I don't have man pages available here, what is the "no-rewind" version?
# 18  
Hammer & Screwdriver

All though I think I know a lot about UNIX I have been known to forget key commands. Well searching for 8mm I came across the command I have been looking for. mt -t /dev/rmt/8mmn. Which just by using that command I was able to save my command about $80,000. That's what they were going to spend to have the data extracted from 50 tapes. Thanks again.

JohnSmilie
 

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #135
Difficulty: Easy
As of 2006, approximately five percent of the Linux kernel was written by Linus Torvalds himself
True or False?

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

tar command to explore multiple layers of tar and tar.gz files

Hi all, I have a tar file and inside that tar file is a folder with additional tar.gz files. What I want to do is look inside the first tar file and then find the second tar file I'm looking for, look inside that tar.gz file to find a certain directory. I'm encountering issues by trying to... (1 Reply)
Discussion started by: bashnewbee
1 Replies

2. Shell Programming and Scripting

More fun with awk

#!/usr/bin/ksh ls -l $@ | awk ' /^-/ { l = 5*log($5) h = sprintf("%7d %-72s",$5,$8) print "\x1B ls command with histogram of file sizes. The histogram scale is logaritmic, to avoid very short bars for smaller files or very long bars for bigger files. Screenshot: (4 Replies)
Discussion started by: colemar
4 Replies

3. Shell Programming and Scripting

Fun with awk

uggc://ra.jvxvcrqvn.bet/jvxv/EBG13 #!/usr/bin/awk -f BEGIN { for (n=0;n<26;n++) { x=sprintf("%c",n+65); y=sprintf("%c",(n+13)%26+65) r=y; r=tolower(y) } } { b = "" for (n=1; x=substr($0,n,1); n++) b = b ((y=r)?y:x) print b } ... (0 Replies)
Discussion started by: colemar
0 Replies

4. What is on Your Mind?

fun scripts

Lets get a list of everyones funny scripts (8 Replies)
Discussion started by: JamieMurry
8 Replies

5. UNIX for Dummies Questions & Answers

tar -cvf test.tar `find . -mtime -1 -type f` only tar 1 file

Hi all, 4 files are returned when i issue 'find . -mtime -1 -type f -ls'. ./ora_475244.aud ./ora_671958.aud ./ora_934052.aud ./ora_934050.aud However, when I issued the below command: tar -cvf test.tar `find . -mtime -1 -type f`, the tar file only contains the 1st file -... (2 Replies)
Discussion started by: ahSher
2 Replies

6. UNIX for Advanced & Expert Users

like to have fun in terminal

Hai Friends I have installed FreeBSD in my system... I have installed it to work in text mode don't have the GUI. The default text color is Black background with White Foreground. I want it to be with Black background with Green Foreground. How could i do that. Thanks in advance Collins (4 Replies)
Discussion started by: collins
4 Replies

7. News, Links, Events and Announcements

Fun with FreeBSD

Fun With Automounting on FreeBSD Link: Nice tips for FreeBSD Unix. http://ezine.daemonnews.org/200202/automounting.html (2 Replies)
Discussion started by: killerserv
2 Replies

Featured Tech Videos