Jump to content
 English      
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
     Forums advanced search
HP.com Home
IT Resource Center Forums > MPE/iX > transition from e3000

Read FCOPY tape with DD in HPUX

» 

IT Resource Center

» Login
» Register
» My profile
» Search knowledge base
» Forums
» Patch database
» Download drivers, software and firmware
» Warranty check
» Support Case Manager
» Software Update Manager
» Training and Education
» More maintenance and support options
» Online help
» Site map

Member icons
 
 HP moderator  HP moderator
 Expert in this area  Expert in this area
Member status
ITRC Pro ITRC Pro
250 points
ITRC Graduate ITRC Graduate
500 points
ITRC Wizard ITRC Wizard
1000 points
ITRC Royalty ITRC Royalty
2500 points
ITRC Pharaoh ITRC Pharaoh
7500 points
Olympian Olympian
20000 points
1-Star Olympian 1-Star Olympian
40000 points
2-Star Olympian 2-Star Olympian
80000 points
»  How to earn points
»  Support forums FAQs
Question status
Magical answer Magical answer
Message with a response that solved the author's question
Favorites status
Add to my favorites Add to my favorites
Delete from my favorites Delete from my favorites
This thread has been closed Thread closed
 

Content starts here
   Create a new message    Receive e-mail notification if a new reply is posted  Reply to this message
Author Subject: Read FCOPY tape with DD in HPUX      Add to my favorites
Ron Angel
Jun 28, 2005 10:42:55 GMT   

I have some database files written to tape with FCOPY using a fixed record length. I'm only able to get every tenth record from the tape to a file using dd.
Note: If you are the author of this question and wish to assign points to any of the answers, please login first.For more information on assigning points ,click here


Sort Answers By: Date or Points
Lars Appel This member has accumulated 250 or more points
Jul 3, 2005 01:43:18 GMT    Unassigned

Ron,

depending on the blocking factor that the tape has been written with, you might need to use the dd options cbs=n and conv=unblock to get the lines split on the unix side...

For example, if you create a tape with rec size 80 bytes and block factor of 10, the physical tape records contain 800 bytes each. So you would split them with dd like this...

:file t ;dev=tape ;rec=-80,10,f,ascii
:fcopy from=myfile ;to=*t

$dd if=/dev/tape of=myfile ibs=800 obs=80 cbs=80 conv=unblock

The above is from memory, I don't have a unix system at hand to try. However, it might get you into the right direction ;-)

Lars.
 
Create a new message    Receive e-mail notification if a new reply is posted   Reply to this message
 
 
Printable version
Privacy statement Using this site means you accept its terms
© 2009 Hewlett-Packard Development Company, L.P.