- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- CPIO - Extracting From DDS2
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2002 07:13 AM
10-21-2002 07:13 AM
I know very little about cpio, have always used tar to create archives.
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.
I've been able to read the tape & generate a list of the directories / files using "cpio -itvB < /dev/nst0 > /tmp/images/index". That command produces output as follows:
-rw------- 1 304 24 20987 Oct 16 08:53 LR30/LR200000151000101_001.tif
-rw------- 1 304 24 37085 Oct 16 08:53 LR30/LR200000151000101_002.tif
-rw------- 1 304 24 69440 Oct 16 08:53 LR30/LR200000151000101_003.tif
-rw------- 1 304 24 73582 Oct 16 08:53 LR30/LR200000151000101_004.tif
-rw------- 1 304 24 68438 Oct 16 08:53 LR30/LR200000151000101_005.tif
-rw------- 1 304 24 76456 Oct 16 08:53 LR30/LR200000151000101_006.tif
-rw------- 1 304 24 57100 Oct 16 08:53 LR30/LR200000151000101_007.tif
-rw------- 1 304 24 28259 Oct 16 08:53 LR30/LR200000151000101_008.tif
My main question is how exactly am I supposed to go about extracting these files??
I did the following:
[root@tape tmp]# cpio -ivBum /LR30/LR200000151000101_001.tif < /dev/st0
85313 blocks
Which, seems to me, completed sucsesfully. However, I can't seem to find the extracted image anywhere!
I've been working on this for three days now & 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...
"locate *.tif" doesn't find the file.
Thanks for any suggestions.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2002 07:18 AM
10-21-2002 07:18 AM
Re: CPIO - Extracting From DDS2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2002 08:28 AM
10-21-2002 08:28 AM
Re: CPIO - Extracting From DDS2
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
Ted
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2002 08:51 AM
10-21-2002 08:51 AM
Re: CPIO - Extracting From DDS2
When I leave off the slash, here is what I get:
[root@tape tmp]# cpio -ivBum LR30/LR200000151000101_001.tif < /dev/nst0
cpio: LR30/LR200000151000101_001.tif: No such file or directory
In fact, I get that for any of the files listed in the preview.
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.
When I started out, I thought that "cpio -itv
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.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2002 09:11 AM
10-21-2002 09:11 AM
Re: CPIO - Extracting From DDS2
mt -f /dev/st0 defblksize -1
you may also try and set the block size on the drive to variable.. I think that is done with:
mt -f /dev/st0 setblk 0
mt -f /dev/st0 status will list the drive status
Ted
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2002 11:31 AM
10-21-2002 11:31 AM
SolutionI've not used cpio in awhile but this should work:
cpio -ivdBum LR30/LR200000151000101_001.tif
That assumes you've rewound your tape to the start of the cpio archive.
The "d" in "-ivdBum" should create direcroty "LR30" sub-ordinate to your current directory.
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.
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2002 05:28 AM
10-22-2002 05:28 AM
Re: CPIO - Extracting From DDS2
Thanks a bunch! The -ivdBum switch worked like a charm. I'm rolling in tif's now!! :)
Thanks again!