Visit Our UNIX and Linux User Community


Get files from sdlt tapes


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Get files from sdlt tapes
# 1  
Old 01-31-2009
Get files from sdlt tapes

Hi everybody,

I'm new using unix/linux and I have a sdlt tape wich has 2 segy files. I realise the tape isn't tar so when I use dd if=/dev/rmt/*bn of=filename bs=100000 to get the files after 10 Gb for file 1 an error message appear I/O error and I'm sure that I didn't get completly the first file also I'm using mt ../* rew and mt ../*n fsf no rewind to navigate through the tape. Is there any command to get the files without error message? I need your help, please.

Ps: I have a list of tape content with ebcdic header, binary header,.. like this:

FileNum: 0 RecordNum:1 Long:3200
C01
C02
C03
.
.
.
.
Lecture ok FileNum:0 RecordNum:2 Long:400
.
.
.
FileNum:0 RecordNum:3 Long:8240
.
.
.
EOF recontre FileNum 0 RecordNum 3
saut arriere de 2 blocs
Lecture ok FileNum:0 RecordNum:999999999 Long:8240
FileNum: 0 RecordNum:999999999 Long:8240
.
.
.
FileNum: 0 RecordNum:1000000000
.
.
.
EOF recontre FileNum: 0 RecordNum:1000000000

then start the same sequence for second segy file

I'll appreciate some tips
# 2  
Old 02-01-2009
The only other way I know of to get files to tape is to (1) use tar (2) use cpio (3) write blocks using dd. Utilities like dump build some kind of internal archive and write in blocks like dd does. So it maybe that one of these tools was used to write to the tape.

By the way, that's a strange blocksize. (bs=100000) that you have. Do you know it's correct? It could be the I/O error occurs because the blocksize is incorrect. Usually blocksizes are in multiples of megabytes or gigabytes. (SDLT drives can have up to 1 gb block sizes). There may also be variable block sizes, bu t I'm not sure how to deal with that, other than each file takes up one block (up to 1GB).

How do you know tar doesn't work? Did you try setting different blocksizes with tar?
# 3  
Old 02-02-2009
Thanks for your help.

Yes I've used different blocksizes with tar, like testing with tar tvf .... and to extract tar xvf.....256 (in case SDLT) and the error message is:

tar: tape block size error

Ps: I've tested many tar option it doesn't work
# 4  
Old 02-02-2009
Did you try blocksize of 0? This (I think) tells it to use variable blocksizing, which might be what your data is stored in.
# 5  
Old 02-04-2009
Hi again,

this is what I've found using tcopy command to scan the tape:

mt -t /dev/rmt/6 rew
tcopy /dev/rmt/6n

file 1: record 1: size 3200
file 1: record 2: size 400
file 1: record 3 to 53964: size 8240
file 1: eof after 53964 records: 444650480 bytes
eot
total length: 444650480 bytes

tcopy ...../6n once more

file 1: record 1: size 3200
file 1: record 2: size 400
file 1: record 3 to 500424: size 8240
file1: eof after 500424 records: 4123480880 bytes
eot
total length: 4123480880 bytes

tcopy..../6n once more
file1 : eof after 0 records: 0 bytes
eot
total length: 0 bytes

Thanks in advance for your help
# 6  
Old 02-04-2009
Well, look, it's clear you have variable block sizes, or a very small block size. Use the data from tcopy to use dd to save the contents of the records onto disk, like this:
Code:
dd if=/dev/rmt/6n ibs=3200 count=1 of=/tmp/record1
dd if=/dev/rmt/6n ibs=400 count=1 of=/tmp/record2
dd if=/dev/rmt/6n ibs=8240 count=53961 of=/tmp/record4

Then run "file record*" to see file can determine what type of file each record is in. You might try:
Code:
cat record* >record-tmp
file record-tmp

to see if maybe the whole file together is a different thing.

At least now you have a template for getting all the records off the tape. Whether you can do anything with them or not is a different problem.

Previous Thread | Next Thread
Test Your Knowledge in Computers #575
Difficulty: Medium
If a program has poor memory management and fails to deallocate memory when it is no longer needed, the memory will not leak.
True or False?

9 More Discussions You Might Find Interesting

1. AIX

Moving tapes

Hello, anybody out there that is using itdt to manage tape changes in a tape library. The help of itdt show a move subcommand but I can't get it to work. Env: AIX5.3 Dell PowerVault TL2000 tape library -> rmt1 Available 01-08-02 IBM 3580 Ultrium Tape Drive (FCP) # itdt says it finds the... (3 Replies)
Discussion started by: petervg
3 Replies

2. Solaris

vxdump with more tapes

Hi Community, I've a V440 Sun Server with 2 device tape of 72GB. I have to backup a folder of 80 GB, so I have to use 2 tapes of 72GB (144 GB); If I use vxdump command which are the options that I have to use? When the first tape finishes does the system stop the backup? Please help me... (1 Reply)
Discussion started by: Sunb3
1 Replies

3. HP-UX

Help With Reading Partitioned Tapes

I have a bunch of 4 mm DDS tapes that have two partitions. I read them on my HP-UX 10.20 box by referencing the device files /dev/rmt/0m (partition 0) and /dev/rmt/0mp (partition 1). Unfortunately, my HP-UX box was lightning struck last week so now I'm trying to read these tapes using Unix Services... (2 Replies)
Discussion started by: dhaverstick
2 Replies

4. HP-UX

SDLT Drivers

Greetings I looking for the drivers for an sdlt tape drive for hp-ux 11.0. I think the drivers i need are stape and tape2 does anyone know where i can get them Thanks Alan (2 Replies)
Discussion started by: Flipper_Al
2 Replies

5. Solaris

regd tanberg sdlt and sunfire v 880

Hii alll Thanks for the support, iam facing a problem regarding tanberg sdlt . iam trying to connect tanberg sdlt 160 to sun fire 880 r .As SUN FIRE DOSENT HAVE SCSI CONTROLLER IAM CONNECTING A ULTRA 2 SCSI CONTROLLER IN PCI SLOT AND FROM THERE IAM CONNECTING THE TANBERG SDLT 160. MY FIRST... (1 Reply)
Discussion started by: solaris8in
1 Replies

6. UNIX for Advanced & Expert Users

Problems with DLT7000 and SDLT

Hi, I think this issue should be posted in a backup box, but there wasn't . We have an issue that we made a backup on a DLT7000 tape using tar. Ones we check using : tar tvf /dev/rmt/0 It all works great on the same server. Now ejecting the tape and putting it into server 2 with an SDLT... (0 Replies)
Discussion started by: davidg
0 Replies

7. UNIX for Dummies Questions & Answers

Tapes

:confused: Hello!! I am a new UNIX user, and I need to back up some files, I have some old ones and I have been trying to delete the old information with 'mt erase' but I don't be sure if it works, and 'mt resert' but the it gave a message suggesting me to use 'scsiha -r' (but the last one... (1 Reply)
Discussion started by: scs
1 Replies

8. UNIX for Dummies Questions & Answers

tapes

is there a command to check unoccupied space on a tape ? AIX 3.2 (1 Reply)
Discussion started by: cubicle^dweller
1 Replies

9. HP-UX

ignite tapes

can any1 tell me how to make ignite tapes for the HP-ux. this company said it was: "make_tape_recovery_A", but that don't work. (4 Replies)
Discussion started by: JBX
4 Replies

Featured Tech Videos