LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-27-2007, 06:42 PM   #1
bagpussnz
Member
 
Registered: Aug 2003
Posts: 54

Rep: Reputation: 15
Recover tape in HPUX fbackup format


Hi,
I have been given some tapes in HPUX fbackup format on a DDS 4mm tape that I need to extract.
The command on HPUX to recover them is frecover - does anyone know of a Linux port for frecover (I don't have a 4mm on my HPUX boxes)??

Many Regards,
Ian Collins
 
Old 09-27-2007, 10:06 PM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
I am guessing that your Linux box has a 4mm tape drive. Does your Linux box also have a tape drive matching one on the HPUX machine or can you bring a tape drive from the HPUX machine to the Linux box?

I wonder if HPUX fbackup and frecover make tar formatted backups. You could find out by trying to list the files on the tapes using the tar command on the Linux machine.

I would probably use the dd command to extract the data from the 4mm tape and put it raw onto the compatible tape. The challenges here are knowing what HPUX fbackup uses for end-of-file and end-of-tape markers and if that will affect the performance of the dd command.

Here is something to chew on. If your 4mm tape drive shows up on Linux as /dev/st0 and your compatible tape drive shows up on Linux as /dev/st1 then I would initially try something like this.
Code:
dd if=/dev/st0 of=/dev/st1 bs=32768 conv=notrunc,noerror
Note that you will have to look on your tape drive user manuals to see what the block size is for each tape drive. The 'bs=32768' would work for many tape formats but maybe not for yours. I don't know.

If the block size for each tape drive is different then you can specify the block size for each separately as follows.
Code:
dd if=/dev/st0 of=/dev/st1 ibs=<whatever> obs=<whatever> conv=notrunc,noerror
Note that the way that I have written the dd commands will read the tape to the end even if the data stops before the end of the tape. This is okay if the tape that receives the data is the same capacity or larger than the 4mm tape.

I hope that I have given you some useful ideas.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
recover UFS after ext3 format Kanon Linux - Hardware 0 05-28-2007 10:57 AM
recover root passwd in hpux gsr_kashyap Other *NIX 6 03-01-2006 11:58 PM
Format Tape Drive How?? gabriellai Linux - Hardware 2 04-22-2005 07:32 AM
format tape DDS4 in linux ashfaq Linux - Software 0 06-18-2004 01:09 PM
Is it possible to recover data from format? nbccbn Linux - General 1 11-30-2003 05:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration