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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I work in an environment where we receive data in different formats, extract it and then manipulate it. Often the data comes on hard drives - but yesterday we recieved a chunk of information on an LTO-4 tape and I'm having a difficult time getting it off.
We have a CENTOS machine connected to a LTO-4 tape drive. I put the tape in and used
mt -f /dev/nst0 rewind (the drive activity light lit up and the tape rewound, so I know the connection is good and NST0 is the correct drive designation)
To get data off I tried
tar -xvf /dev/nst0 which results in:
tar: /dev/nst0: Cannot read: Cannot allocate memory
tar: At beginning of tape, quitting now
tar: Error is not recoverable: exiting now
I tried manipulating the block size - tried
mt -f /dev/nst0 setblk 0
mt -f /dev/nst0 setblk 512
but I get the same error either way.
Would really appreciate any help in figuring out how to get this data off the tape!
So I entered
tar -t --blocking-factor=128 xvf /dev/st0 and hit 'enter'
How long should that command take to process? I see the small blinking black square flashing underneath that command - but nothing else. I also don't hear the tape spinning. It's been doing this for about 20 mins now. Is this typical for this command?
Unfortunately no, its off a system that is proprietary. We've gotten other tapes in the past DDS, AIT3 tapes that I've gotten data off of using this CENTOS deck, but this is my first crack at a LTO4 tape.
For various reasons it would be difficult to query the site to get more information on how the data was recorded.
Depending on what type of media we get in, I have to mess around with the block size until I find the right match - but that doesn't seem to be working here. Is there a way to determine what block size I need to set on the media?
I am able to read/write to LTO tapes using the drive - its practically brand new. I think its a block-size issue...........is there anyway that you know of to run some type of check to see what the block size might be? I thought there was a way to skip a block forward and then check to see how much data you skipped to see the block size?