- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- tape (reel to reel) dump
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-17-2001 10:14 AM
10-17-2001 10:14 AM
dd if=/dev/rmt/0m of=/restore/proc cbs=86 ibs=860 (and other variations of dd)
output is diagonally when I more proc
What am I missing?
HP-UX 10.20
Thanks
Carol
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2001 10:30 AM
10-17-2001 10:30 AM
Re: tape (reel to reel) dump
Unless you are doing an ASCII/EBCDIC conversion, you don't need or want cbs.
I suspect that all you really need
is:
dd if=/dev/rmt/0m of=/restore/proc bs=860
If you are doing other conversion, please let us know. I not sure what you mean by 'more diagonally' but I think you are saying that you need LF's in the output rather than CR's.
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2001 10:45 AM
10-17-2001 10:45 AM
Re: tape (reel to reel) dump
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2001 11:18 AM
10-17-2001 11:18 AM
Re: tape (reel to reel) dump
Based on what you have said so far I try this dd line:
dd if=/dev/rmt/0m of=/restore/proc cbs=86 conv=block
Lou Zirko
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 02:13 AM
10-18-2001 02:13 AM
Re: tape (reel to reel) dump
dd if=/dev/rmt/0m of=/u6/carol/restore/proc1 bs=860
no other conversion, file is. I am getting record size from documentation that came with tape. The easiest thing to pick out is * is in column 14.
Carol
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 02:13 AM
10-18-2001 02:13 AM
Re: tape (reel to reel) dump
What do you mean by "output is diagonally when I more proc"? What does "diagonally" mean? I.e. post a small example of the (wrong) output.
Having said this, I advise to first check the *real* record size:
dd if=/dev/rmt/0m of=/tmp/record bs=64k count=1 ; ll /tmp/record
If the size of /tmp/record is 860 bytes, then the record size is indeed 860 bytes and you should use ibs=860.
Next do:
dd if=/dev/rmt/0m ibs=... count=1
and post the result.
You also may want to experiment with the conv=... options. In any case, start with count=1 and only go beyond that when you can successfully read and display the first record. When that works, use count=2 to see if you have any inter-record issues.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 03:21 AM
10-18-2001 03:21 AM
Re: tape (reel to reel) dump
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 03:56 AM
10-18-2001 03:56 AM
Re: tape (reel to reel) dump
When you post again, please do not use a proportional font. Now we can not see whether the second line has two undesired leading spaces or more/less. If it *has* two undesired leading spaces, then maybe, just maybe, the unblocked (or real?) record size is 88 (not 86).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 04:10 AM
10-18-2001 04:10 AM
Re: tape (reel to reel) dump
Thanks
Carol
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 05:16 AM
10-18-2001 05:16 AM
Re: tape (reel to reel) dump
dd if=.. of=.. ibs=860 cbs=860 conv=ascii,block
See man dd
See this too:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,11866,0xbdbe6af52b04d5118fef0090279cd0f9,00.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 06:00 AM
10-18-2001 06:00 AM
Re: tape (reel to reel) dump
Carol, I have also seen your third (12:10 PM GMT) example. Apparently there are 6 (12, ...) leading spaces. However I do not know how to get rid of them because the 'line-terminator' (linefeed) seems to be in the records, otherwise more(1) would display just one long line.
Can you do my very first example (dd if=/dev/rmt/0m of=/tmp/record bs=64k count=1 ; ll /tmp/record), which you still have not done, post the output from that command line and *attach* the /tmp/record file? (Make sure that you attach an *exact* *binary* copy of the file. If you have to FTP it before attaching, then make sure the FTP is done in binary mode ("binary" command) and compare the source/target file to have the exact same size.)
Another 'brain-wave': As far as I can tell, the first line (ending with "EXCISION") is 76 (not 86) characters long. There are 6 unwanted
leading spaces on the second line. 76+6 = 82 = 80+2. 80 is a common length for a 'punched-card' record. The remaining 2 characters could be carriage-return and line-feed.
Therefor it is perhaps wise to try:
dd if=/dev/rmt/0m of=/u6/carol/restore/proc1 ibs=... count=3
Where you slowly, byte for byte, decrease "..." from 86 (your old value) to 76, i.e. 86 -> 85 -> 84 -> ... -> 76.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 06:08 AM
10-18-2001 06:08 AM
Re: tape (reel to reel) dump
dd if=/dev/rmt/0m ibs=860 count=1 | od -xc
That way we can see a full block with any imbedded control characters.
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 06:13 AM
10-18-2001 06:13 AM
Re: tape (reel to reel) dump
ran dd if=/dev/rmt/0m of=/tmp/record bs=64k count=1
FTP with Binary as requested.
Tried conv= ?? with different options with no improvement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 06:14 AM
10-18-2001 06:14 AM
Re: tape (reel to reel) dump
Unfortunately your attachments don't help much because it is difficult to really know the amount of whitespace in the data. Also if you data really is blocked at 860 bytes/record, you must specify an ibs (or bs); you are using 512 right now (the default) but as soon as we go into the next record everything will be off. Typically if one needs to reblock, it is often does in a pipeline of two dd's. The first simply gets the data and the next does some processing. But right now, we really need two blocks of raw input data in a readable form. The rest should be very easy from that point.
Do this:
dd if=/dev/rmt/0m bs=860 count=2 | od -v -Ad -tc > myfile.out
myfile.out should then be posted and will contain exactly the needed data plus the offsets.
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 06:16 AM
10-18-2001 06:16 AM
Re: tape (reel to reel) dump
please see attached.
Carol
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 06:17 AM
10-18-2001 06:17 AM
Re: tape (reel to reel) dump
Carol, if the size of the /tmp/record file (see my responses) is different from 860, then please (also) post Harry's example with ibs=...., where ... is the size of the /tmp/record file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 06:21 AM
10-18-2001 06:21 AM
Re: tape (reel to reel) dump
I FTP binary.
Carol
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 06:21 AM
10-18-2001 06:21 AM
Re: tape (reel to reel) dump
I'm sorry, I wanted you not to specify an output file, and pipe the output to "od -xc":
dd if=/dev/rmt/0m ibs=860 count=1 | od -xc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 06:25 AM
10-18-2001 06:25 AM
Re: tape (reel to reel) dump
You used:
dd if=/dev/rmt/0m of=/u6/carol/restore/proc1 ibs=860 count=1 | od -xc
But Harry asked for:
dd if=/dev/rmt/0m ibs=860 count=1 | od -xc
Because you included "of=..." the od(1) command did not get any input and hence gave no (usable) output.
I will try to have a look at your 14:13 PM GMT attachment, but for the moment let's concentrate on getting Harry's example right.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 06:35 AM
10-18-2001 06:35 AM
Re: tape (reel to reel) dump
Not to be dim but how would you like me to get you information from command
dd if=/dev/rmt/0m ibs=860 count=1 | od -xc
if I don't dump it to a file?
A lot of data scrolled by on my screen.
Carol
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 06:37 AM
10-18-2001 06:37 AM
Re: tape (reel to reel) dump
dd if=/dev/rmt/0m ibs=860 count=1 | od -xc > /tmp/stuff
then attach /tmp/stuff
thanks :-))
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 06:43 AM
10-18-2001 06:43 AM
Re: tape (reel to reel) dump
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 06:52 AM
10-18-2001 06:52 AM
Re: tape (reel to reel) dump
When you copy form attached file it take two tabs that are not in original file.
dd if=file of=fileo ibs=860 bs=86 cbs=100 conv=block must run.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 06:55 AM
10-18-2001 06:55 AM
Re: tape (reel to reel) dump
Your dd to od output was perfect. You do indeed have 86 byte records with a blocking factor of 10 for 860 bytes per input block
It appears that you want a LF terminated record. We could do that by converting your data to ebcdic and then back to ASCII but that could introduce translation errors. Fortunately, I already had a very small utility in C which will compile with the bundled C compiler and can add the LF or CR/LF if you like. I'll attach that code, called fpad.c.
Compile it like this:
cc fpad.c -o fpad
If you like, you can execute fpad without arguments and it will display a usage message.
Here's the command to get your LF delimited output:
dd if=/dev/rmt/0m ibs=860 obs=86 | fpad -o 86 -i 86 -t 1 > myfile.dat
The -o 86 tells fpad to create 86 byte output records, the -i 86 tells fpad to expect 86 byte fixed-length input records, the -t 1 tells it to append a LF to each output record to actually create an 87 byte output record.
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2001 07:02 AM