Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Running CENTOS 6.3, I have a DDS tape drive connected to the workstation.
I know the tape drive is connected and talking to the computer, I can put a blank DDS tape into the unit and write to that tape, extract from that tape, rewind, eject....ect....ect....
I received a tape at work that needs data extracted from it. I'm pretty confident that the data is actually on the tape, but I can't seem to do anything with it.
Block size should be 10240, which I set it to.
mt -f /dev/nst1 status
SCSI 2 Tape Drive:
File Number=0 block number=0 partition=0
Tape block size 10240 bytes. Density code 0x24 (DDS-2)
Soft error count since last started=0
General status bits on (41010000):
BOT ONLINE IM_REP_EN
tar -xvf /dev/nst1
tar: /dev/nst1: Cannot read: Input/output Error
tar: at beginning of tape, quitting now
tar: error is not recoverable, exiting now
After I get this error I can't do anything with the tape, even check status or rewind.
When I first put the tape in, I can rewind it, set block, check status....ect...
The DDS standard has gone through several versions. The newer versions of DDS are not necessarily compatible with older versions. Check to see if the tape drive that created the tape in question uses the same version of the DDS standard as the tape drive that you are using to try to read the tape.
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,675
Rep:
What sort of DDS tape drive have you? There are drives which write at higher density than the original DDS format, i.e. DDS2, DDS3, DDS4 and are labled as such.. You will be unable to read a higher formatted tape on a lower spec's drive ( if you see what I mean)
Tape cartridges are also labled DDS2, DDS3, etc.
You could also have head misalignment between your drive and your work's drive. DDS drives work like the old VHS video tape recorders using a scanning head which occasionally gave tracking errors and you got a snowy picture.
Can you read the tapes written on your drive at your work?
What sort of DDS tape drive have you? There are drives which write at higher density than the original DDS format, i.e. DDS2, DDS3, DDS4 and are labled as such.. You will be unable to read a higher formatted tape on a lower spec's drive ( if you see what I mean)
Tape cartridges are also labled DDS2, DDS3, etc.
You could also have head misalignment between your drive and your work's drive. DDS drives work like the old VHS video tape recorders using a scanning head which occasionally gave tracking errors and you got a snowy picture.
Can you read the tapes written on your drive at your work?
Play Bonny!
Thank you for the response!
I'm not sure on a model number/type for my DDS drive. Its a Sony. The tape being used is a DDS-2 tape. I can and have used DDS-2 tapes in this drive. So I don't think a mismatch in density is the issue.
I only have one DDS drive, the data is recorded onto the tape off-site at a location that is pretty remote - I can't get to their hardware in other words.
I can write to the drive locally and pull the data back off.
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,675
Rep:
Quote:
I can write to the drive locally and pull the data back off.
In that case I'd reckon that you're not going to find any software problem. It looks like there's possibly a head alignment mismatch between your and the "work" DDS2 drive.
The only easy thing I can think of is getting someone at your work to run a cleaning tape through the drive. Use a new "Still in the cellophane" cleaning tape if possible. DDS cleaning tapes use a different section of tape on each clean, the tape eventually all ends up on the take up spool of the cassette (RHS as you'd load it I think) Something like 20 uses then you throw it away.
If the drive needed cleaning it would generally show an amber "Clean me" led, can you have this checked on the work drive?
If it is an alignment problem, you won't cure it unless you find out which of the two drives is misaligned, then replace it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.