Unix/Linux Go Back    

Filesystems, Disks and Memory Discuss NAS, SAN, RAID, Robotic Libraries, backup devices, RAM, DRAM, SCSI, IDE, EIDE topics here.

From HPUX tar to Linux tar

Filesystems, Disks and Memory

Thread Tools Search this Thread Display Modes
Old Unix and Linux 02-11-2002   -   Original Discussion by iarot
iarot's Unix or Linux Image
iarot iarot is offline
Registered User
Join Date: Feb 2002
Last Activity: 14 February 2002, 8:22 AM EST
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Unix or Linux Question From HPUX tar to Linux tar

Dear sirs,

I have some 4mm dat cartridges (4GB) made in a HP-UX 11.00 with a standard tar command (tar -cv files_to_backup) made with a scsi dat drive HP 35470A.

After more than one year I need to restore some data on a linux system (Red Hat 7.2) which has the same dat drive.

Now I tried to list the content of the cartridges but without any result.
In particular I used the following command:

$tar -tvf /dev/st0

After this command the lights on the tape driver blink and the tape run. But after 3-4 seconds everything stop and the prompt $ apper after the above command whithout any other message.
I tried also to use the following command

$tr -tvbf n /dev/st0

replacing n with different numbers (1-10-20-512)
but with the same result.
I tried all the above also as "su" and with other similar cartidges.

After the first blink and run of the tape driver if I repeat the command I get istantly the prompt symbol $ without any activity on the tape. To have a new activity (blink for some seconds) I have to extract and re-insert the tape.

Please, what I can do to list (and extract) my files from the catridges? What else can I try?
Sponsored Links
Old Unix and Linux 02-12-2002   -   Original Discussion by iarot
#1freebsddude's Unix or Linux Image
#1freebsddude #1freebsddude is offline
Registered User
Join Date: Feb 2002
Last Activity: 3 April 2002, 11:10 AM EST
Location: www.freebsdforums.org
Posts: 67
Thanks: 0
Thanked 0 Times in 0 Posts
Something that comes immediately to my mind: find an HP-UX 11 machine just to be sure that you can read them on an HP machine itself. If not, then you possibly have a bad tape.

If they are readable on an HP, then it could be that you may need to refer to the tape drive as a different device.

Best Wishes!
Sponsored Links
Old Unix and Linux 02-13-2002   -   Original Discussion by iarot
Perderabo's Unix or Linux Image
Perderabo Perderabo is offline Forum Advisor  
Unix Daemon (Administrator Emeritus)
Join Date: Aug 2001
Last Activity: 26 February 2016, 12:31 PM EST
Location: Ashburn, Virginia
Posts: 9,930
Thanks: 64
Thanked 471 Times in 271 Posts
This question really needs one person who is an expert in both HP-UX and Linux. I can shed some light. By default, tar on HP-UX 11.0 will create a Posix style archive. Older versions of tar will not understand what a Posix style archive is.

There is a program that I have heard of, but never used, called "pax" that may also be able to read a Posix archive.
Old Unix and Linux 02-13-2002   -   Original Discussion by iarot
AreaMan's Unix or Linux Image
AreaMan AreaMan is offline
Registered User
Join Date: Jan 2002
Last Activity: 3 March 2003, 3:04 PM EST
Location: Houston
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Just something to consider. How large are the files you are trying to retsore? Many versions of Tar have problems when you go over 2GB for a aingle file. IRIX has portability issues with files over a certain size for instance.

Sorry - I'm not much help really.
Sponsored Links
Old Unix and Linux 02-14-2002   -   Original Discussion by iarot
LivinFree's Unix or Linux Image
LivinFree LivinFree is offline Forum Advisor  
Goober Extraordinaire
Join Date: Jul 2001
Last Activity: 16 June 2011, 4:50 PM EDT
Location: Portland, OR, USA
Posts: 1,626
Thanks: 2
Thanked 15 Times in 13 Posts
Linux has some ridiculously large max files size, in the hundreds of petabyte range, although I don't know what kernel / FS version that began with, so his system still may have the multi-gig limit.

It very well may be the issue of Posix tar vs. GNU tar, but I have tar'd files on a Linux machine, then ftp'd tem over to an HP-UX box, where they untarred just fine, and vice versa...

This may not be the *best* solution, but what about trying to dump the tape to a file? If you have some disk space, you could use dd, or even cat to dump it:
dd if=/dev/st0 of=/tmp/my_test.tar

If you can get data off of the tape, then it at least exists; if not, you may have a bad tape / drive. Hope this helps a little.
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
HPUX to Linux awk conversion insania Shell Programming and Scripting 1 07-06-2009 05:00 PM
Porting From Linux To Hpux anak0nda Programming 8 10-31-2007 07:51 PM
Migrate HPUX print qeues to red hat linux dillzz UNIX for Advanced & Expert Users 1 07-10-2007 03:02 PM
Migrate HPUX print qeues to red hat linux dillzz Red Hat 0 05-19-2007 12:42 AM
compiling linux driver to run on HPUX hilbi HP-UX 4 11-07-2002 10:54 PM

All times are GMT -4. The time now is 06:52 PM.