The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > BSD
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 08-28-2007
Perderabo's Avatar
Perderabo Perderabo is online now
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,711
Check the man page for the tape driver. There should be a no-rewind style of device file. It might be /dev/nrsa1 or something like that. You need to use that device file. Then do dd without count= or skip= so that dd will encounter the filemarks. the first dd will read the first file on the tape and leave the tape positioned to read the second file. So you just run a second dd command to read that file. And continue until you have all of the files. Another way would be the mt command. It will have some option to forward space files. So you might be able to do "mt -f /dev/nrsa1 fsf 3", and follow that by a dd to read only file 4 (assuming that you started with the file rewound). And you can use the mt command to explicitly rewind the tape when you need that.
Reply With Quote