<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CPIO - Extracting From DDS2 in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/cpio-extracting-from-dds2/m-p/2830032#M2778</link>
    <description>To Darrell -&lt;BR /&gt;&lt;BR /&gt;Thanks a bunch!  The -ivdBum switch worked like a charm.  I'm rolling in tif's now!! :)&lt;BR /&gt;&lt;BR /&gt;Thanks again!</description>
    <pubDate>Tue, 22 Oct 2002 12:28:43 GMT</pubDate>
    <dc:creator>William Carty</dc:creator>
    <dc:date>2002-10-22T12:28:43Z</dc:date>
    <item>
      <title>CPIO - Extracting From DDS2</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cpio-extracting-from-dds2/m-p/2830026#M2772</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I know very little about cpio, have always used tar to create archives.&lt;BR /&gt;&lt;BR /&gt;I've been given a DDS2 tape which contains 4 directories full of tif images (around 400 images total).  I'm trying to extract those images from tape to the local hard drive using cpio.  Unfortunately, I don't have access to the machine that created the archive - it is my understanding that it was created on an HP-UX box using cpio.  I'm running RedHat 6.2 on the machine I want to extract the data to.&lt;BR /&gt;&lt;BR /&gt;I've been able to read the tape &amp;amp; generate a list of the directories / files using "cpio -itvB &amp;lt; /dev/nst0 &amp;gt; /tmp/images/index".  That command produces output as follows:&lt;BR /&gt;&lt;BR /&gt;-rw-------   1 304      24          20987 Oct 16 08:53 LR30/LR200000151000101_001.tif&lt;BR /&gt;-rw-------   1 304      24          37085 Oct 16 08:53 LR30/LR200000151000101_002.tif&lt;BR /&gt;-rw-------   1 304      24          69440 Oct 16 08:53 LR30/LR200000151000101_003.tif&lt;BR /&gt;-rw-------   1 304      24          73582 Oct 16 08:53 LR30/LR200000151000101_004.tif&lt;BR /&gt;-rw-------   1 304      24          68438 Oct 16 08:53 LR30/LR200000151000101_005.tif&lt;BR /&gt;-rw-------   1 304      24          76456 Oct 16 08:53 LR30/LR200000151000101_006.tif&lt;BR /&gt;-rw-------   1 304      24          57100 Oct 16 08:53 LR30/LR200000151000101_007.tif&lt;BR /&gt;-rw-------   1 304      24          28259 Oct 16 08:53 LR30/LR200000151000101_008.tif&lt;BR /&gt;&lt;BR /&gt;My main question is how exactly am I supposed to go about extracting these files??&lt;BR /&gt;&lt;BR /&gt;I did the following:&lt;BR /&gt;&lt;BR /&gt;[root@tape tmp]# cpio -ivBum /LR30/LR200000151000101_001.tif &amp;lt; /dev/st0&lt;BR /&gt;85313 blocks&lt;BR /&gt;&lt;BR /&gt;Which, seems to me, completed sucsesfully.  However, I can't seem to find the extracted image anywhere!&lt;BR /&gt;&lt;BR /&gt;I've been working on this for three days now &amp;amp; have overcome many other problems.  I feel like I've finally got it working, if I can just figure out where this stuff is being extracted to...&lt;BR /&gt;&lt;BR /&gt;"locate *.tif" doesn't find the file.&lt;BR /&gt;&lt;BR /&gt;Thanks for any suggestions.</description>
      <pubDate>Mon, 21 Oct 2002 14:13:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cpio-extracting-from-dds2/m-p/2830026#M2772</guid>
      <dc:creator>William Carty</dc:creator>
      <dc:date>2002-10-21T14:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: CPIO - Extracting From DDS2</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cpio-extracting-from-dds2/m-p/2830027#M2773</link>
      <description>Just to clarify - the post shows one command with /dev/nst0 &amp;amp; one with /dev/st0.  That should be /dev/nst0 (however, I have tried the commands with both devices).</description>
      <pubDate>Mon, 21 Oct 2002 14:18:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cpio-extracting-from-dds2/m-p/2830027#M2773</guid>
      <dc:creator>William Carty</dc:creator>
      <dc:date>2002-10-21T14:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: CPIO - Extracting From DDS2</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cpio-extracting-from-dds2/m-p/2830028#M2774</link>
      <description>first thing I notice is that the preview (-t option) listing shows all of the files missing the leading / in the file name...&lt;BR /&gt;&lt;BR /&gt;try and run your import command as you have written, but take off the leading / on the file you are importing... and run this command in a location that you are sure will have enough space for the file.  Without the leading /, the restore will place the file under the directory where you are sitting when the command is run.  It looks like the backups may have been created while ignoring the leading /, or were relative path by design.  See if that works&lt;BR /&gt;&lt;BR /&gt;Ted</description>
      <pubDate>Mon, 21 Oct 2002 15:28:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cpio-extracting-from-dds2/m-p/2830028#M2774</guid>
      <dc:creator>Ted Ellis_2</dc:creator>
      <dc:date>2002-10-21T15:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: CPIO - Extracting From DDS2</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cpio-extracting-from-dds2/m-p/2830029#M2775</link>
      <description>Hi Ted, thanks for your response.&lt;BR /&gt;&lt;BR /&gt;When I leave off the slash, here is what I get:&lt;BR /&gt;&lt;BR /&gt;[root@tape tmp]# cpio -ivBum LR30/LR200000151000101_001.tif &amp;lt; /dev/nst0&lt;BR /&gt;cpio: LR30/LR200000151000101_001.tif: No such file or directory&lt;BR /&gt;&lt;BR /&gt;In fact, I get that for any of the files listed in the preview.&lt;BR /&gt;&lt;BR /&gt;So far, the *only* way I've gotten cpio to run without returning an error of some kind is by using the script I mentioned in my original post.&lt;BR /&gt;&lt;BR /&gt;When I started out, I thought that "cpio -itv &lt;BR /&gt;I wonder if this has anything to do with block size?  I've tried setting various block sizes via "mt -f /dev/st0 setblk", but none of them have made a difference.&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Mon, 21 Oct 2002 15:51:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cpio-extracting-from-dds2/m-p/2830029#M2775</guid>
      <dc:creator>William Carty</dc:creator>
      <dc:date>2002-10-21T15:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: CPIO - Extracting From DDS2</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cpio-extracting-from-dds2/m-p/2830030#M2776</link>
      <description>try and disable the default block size:&lt;BR /&gt;&lt;BR /&gt;mt -f /dev/st0 defblksize -1&lt;BR /&gt;&lt;BR /&gt;you may also try and set the block size on the drive to variable.. I think that is done with:&lt;BR /&gt;&lt;BR /&gt;mt -f /dev/st0 setblk 0&lt;BR /&gt;&lt;BR /&gt;mt -f /dev/st0 status will list the drive status&lt;BR /&gt;&lt;BR /&gt;Ted&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Oct 2002 16:11:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cpio-extracting-from-dds2/m-p/2830030#M2776</guid>
      <dc:creator>Ted Ellis_2</dc:creator>
      <dc:date>2002-10-21T16:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: CPIO - Extracting From DDS2</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cpio-extracting-from-dds2/m-p/2830031#M2777</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I've not used cpio in awhile but this should work:&lt;BR /&gt;cpio -ivdBum LR30/LR200000151000101_001.tif &lt;BR /&gt;That assumes you've rewound your tape to the start of the cpio archive.&lt;BR /&gt;&lt;BR /&gt;The "d" in "-ivdBum" should create direcroty "LR30" sub-ordinate to your current directory.&lt;BR /&gt;&lt;BR /&gt;To specify which files to extract, use a "pattern" after the "-ivdBum" options.  The default pattern is * for all files.  For all .tif files you show above, you could use *.tif as your pattern.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Mon, 21 Oct 2002 18:31:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cpio-extracting-from-dds2/m-p/2830031#M2777</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2002-10-21T18:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: CPIO - Extracting From DDS2</title>
      <link>https://community.hpe.com/t5/operating-system-linux/cpio-extracting-from-dds2/m-p/2830032#M2778</link>
      <description>To Darrell -&lt;BR /&gt;&lt;BR /&gt;Thanks a bunch!  The -ivdBum switch worked like a charm.  I'm rolling in tif's now!! :)&lt;BR /&gt;&lt;BR /&gt;Thanks again!</description>
      <pubDate>Tue, 22 Oct 2002 12:28:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/cpio-extracting-from-dds2/m-p/2830032#M2778</guid>
      <dc:creator>William Carty</dc:creator>
      <dc:date>2002-10-22T12:28:43Z</dc:date>
    </item>
  </channel>
</rss>

