byte swap notice when using dds tape
#1
byte swap notice when using dds tape
Hi have been extracting some older data from my dds drive unit (Sony SDT S9000) and using a "tar -xvf" command (as I did many years ago).

I have successfully extracted all but one dds tape, and one was corrupt. So for the remaining dds tape that does show up as corrupt but rather a notice, please if you can help me decipher? It's not an error or a fail, but the results are the same, it's not extracting.

(and the command below makes the assumption that the drive is mounted and again, this has worked for several tapes over the past few weeks, except this one tape)

tar -xvF (enter)

tar: directory check sum error
tar: this appears to be a byte-swapped archive.


Any ideas on what would bring up a "byte-swapped archive" notice? I am pretty sure I always used a tar command for storage, but it was so long ago. It is entirely possible I could have used another method.
(This post was last modified: 06-27-2025, 02:56 AM by tallen.)
tallen
O2

Trade Count: (0)
Posts: 3
Threads: 1
Joined: Apr 2020
Location: California
Find Reply
06-27-2025, 02:53 AM
#2
RE: byte swap notice when using dds tape
IRIX is big endian, most other operating systems are little endian. Is it possible that the tape wasn't made on IRIX?

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,240
Threads: 533
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
06-27-2025, 02:59 AM
#3
RE: byte swap notice when using dds tape
If you read the man page for mtio(7) and tar(1), they discuss how IRIX's default tape device is byte-swapped. This is historical, for compatibility with the IRIS 2000 which had a byte-swapped tape interface.
By specifying the non-swapped device, /dev/tapens (for example, by using the "f" option to tar), you can get the alternative behavior which may be more compatible with other systems like Sun.

The tar(1) page also gives a pipeline using dd(1) with the conv=swab option, as an alternative way to reverse byte-swapping.

Code:
tar tf /dev/tapens

Personaliris O2 Indigo2 R10000/IMPACT Indigo2 R10000/IMPACT Indigo2 Indy   (past: 4D70GT)
robespierre
refector peritus

Trade Count: (0)
Posts: 640
Threads: 3
Joined: Nov 2020
Location: Massholium
Find Reply
06-27-2025, 04:42 AM
#4
RE: byte swap notice when using dds tape
thanks I'll try these options.
tallen
O2

Trade Count: (0)
Posts: 3
Threads: 1
Joined: Apr 2020
Location: California
Find Reply
07-01-2025, 08:16 PM


Forum Jump:


Users browsing this thread: 1 Guest(s)