Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
Hmm. I just hooked up an Adaptec 29160, and a Sony SDX-D500C AIT2 SCSI tape drive to a RH 7.1 box. The card driver seemed to be loaded by kudzu automatically, and the KDE list of devices shows the tape drive. But when I try the obvious:
# tar cvf /dev/st0 linux_22
linux_22/
linux_22/mapleibm.tar
tar: /dev/st0: Wrote only 0 of 10240 bytes
tar: Error is not recoverable: exiting now
The tape drive, however, does seem to spin up. Anything else I could be missing?
Thanks.
Appendix on the card and tape drive install:
In both cases, once I turned the machine on again after installation, the card/device was configured automagically.
All I needed to do was install the SCSI card for the tape drive to work. I have Adaptec 29160N and a travan tape drive.
I did this by adding module aic7xxx to "INITRD_MODULES = " in the rc.config file.
Then run commands
>mk_initrd
>lilo
and reboot
test tape using "mt -f /dev/st0 retension/rewind/erase/etc"
Akeria backup is a good program and has a GUI interface for windows for remote control as well as linux graphical interface.
OK. So, I get no further. What to do? What the
hell, I'll re-issue the commandline:
# mt -f /dev/st0 retension
and it works! I hear the tape drive going, and
the tape running. And mt returns 0.
Anyway, thanks for the lead on Arkeia. I checked
it out, but the free version won't serve my needs:
I have one server and 6 client machines that need
to be backed up. I'm going to give Amanda a shot,
though I don't think it has a GUI.
I have been having the same exact problems that you described. Running RH7.1 Kernel 2.4.2-2 with Adaptec 29160 SCSI and 2 DLT8000 tape drives in a Qualstar TLS. What did you do to fix it?
As far as the /dev/st0 and /dev/nst0, they are rewinding and non-rewinding respectively.
If you are using amanda you will not need the nst0 from what I understand.
I didn't do anything to fix the problems: they just seemed to go away. My postings above describe exactly what happened:
1. I shutdown, plug SCSI card in.
2. Boot. Watch Kudzu detect the card and install the driver correctly (I assume).
3. Shutdown, plug tape drive in. (No tape loaded.)
4. Boot. No special messages about tape drive during startup sequence that I remember. But KDE's "device manager" shows the tape drive on the SCSI bus with correct SCSI ID and model.
5. Load tape. Try "tar cvf /dev/nst0 /random_dir". Saw "busy" light on drive go on. After 2 secs, tar returned with IO error, 0 bytes of nnnn bytes written.
6. Scratch head. Try "mt -f /dev/st0 retension". IO error, again. Wait 20 secs. WTF, I'll try it again. "mt -f /dev/st0 retension". WTF, it works, this time: I hear tape drive winding.
7. Try tarring a directory to /dev/nst0. It works. Try "tar tvf /dev/nst0", and it also works. Try "mt -f /dev/st0 erase": takes an age and a half, but it works.
8. Reboot with tape loaded. This time, there is a message from the SCSI card BIOS that it detected the tape drive. (This message may have been there before (with drive empty), but I just wasn't looking at the screen.)
So, there you go. I don't think I did anything. It just seemed to resolve itself. I know this is a Unix, but maybe a reboot or something may help?
first of all try to issue a command cat /proc/scsi/scsi
if you get the line that says attached scsi ...............
than you know that your scsi tape drive is attached.
next step is install kdeadmin package.
run kdat
go to config preferences on kdat
change device from /dev/tape to /dev/st0
save config
and mount the tape from kdat
write back tell me if it did work
dragon
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.