Add new comment

How to read tapes in TAR per frame format

Submitted by Aleksey Tsalolikhin on Fri, 2008-05-23 11:21.

TAR per frame means each TIFF file is written as a separate TAR file onto tape. This is a practice in the entertainment industry.

Now, the default tape device (/dev/st0 on Linux) rewinds after each command. Trying to read consecutive files, and rewinding between each read, adds a lot of time.

It's possible to specify a no-rewind tape device which doesn't rewind after each command. The device name is different on every Unix but on Linux it's /dev/nst0. (the "n" stands for no-rewind. The "st" stands for SCSI tape.)

Here is a loop to read a file and then advance to the next This command will extract the entirety of the TAR per frame tape.

while true ; do tar xvf /dev/nst0 ; mt -f /dev/nst0 fsf 1; done

Trackback URL for this post:

http://lopsa.org/trackback/1621

Reply


*

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <hr> <dl> <dt> <dd> <h2> <h3> <h4> <pre> <i> <table> <tr> <th> <td> <img> <div> <p> <br> <blockquote> <font>
  • Lines and paragraphs break automatically.
  • Images can be added to this post.
  • Easily link to terms in various wikis or other websites by typing [prefix:term]. Use the "|" character to create a "piped link," e.g., "[w:public transport|public transportation]" displays as "public transportation." For a full list of available prefixes and the websites to which they point, see interwiki.
  • You may use [inline:xx] tags to display uploaded files or images inline.
  • Web and e-mail addresses are automatically converted into links.
  • Web and e-mail addresses are automatically converted into links.
  • Lines and paragraphs break automatically.
  • You may use [inline:xx] tags to display uploaded files or images inline.
  • Images can be added to this post.
  • You may use [inline:xx] tags to display uploaded files or images inline.
  • Easily link to terms in various wikis or other websites by typing [[prefix:term]]. Use the "|" character to create a "piped link," e.g., "[[w:public transport|public transportation]]" displays as "public transportation." For a full list of available prefixes and the websites to which they point, see interwiki.
  • WikiText is converted to HTML (supported WikiText formatting will show in the long tip format).
Verify comment authorship
Captcha Image: you will need to recognize the text in it.
*
Please type in the letters/numbers that are shown in the image above.