Linux - General This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
06-28-2004, 01:43 PM
|
#1
|
Member
Registered: Mar 2004
Posts: 93
Rep:
|
about tape drive and more
I have a scsi tape driver (SONY sdt-7000) on scsi adpater card. Linux detected the adapter card but i am out of idea to access the tape on the tape driver. And i dont know whether linux has taken tape driver also. i searched /dev file and found more than 10 files w filename starting w word "sdt". Is this the one? but it didnt worked. pls help this dude.
Also, i had hdfs formatted floppy which i realsied contained some very interestring docs. I tried to copy its contents to my hdd. mount failed saying hdfs not supported by kernel. so i did "tar xvf /dev/fd0" and wow..all the contents of floppy came into my local drive. But then i tried to copy it to another fd. but only few part got copied. whssa prob. pls help again,
pls give sols to two probs. thnx
|
|
|
06-28-2004, 03:25 PM
|
#2
|
Moderator
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
|
Copy & paste the output of
lsmod
please ... you will need the physical device driver
for the SCSI Controller, generic SCSI support and
the tape-driver (modprobe st if it's not loaded) to
operate a tape-drive.
Also check your output of
dmesg
for any hints on the device having been picked up
during boot.
Cheers,
Tink
|
|
|
06-28-2004, 03:27 PM
|
#3
|
Senior Member
Registered: Oct 2003
Posts: 3,006
|
The device files for scsi tape drives are /dev/st0(rewind) and /dev/nst0(no rewind). When using st0 the tape will automatically rewind at the conclusion of the operation; when using nst0, the tape won't rewind. To test if the tape is being recognized insert a tape in the drive and in a console run:
$ su
<enter root password>
# mt -f /dev/nst0 rewind
If your system recognizes the tape drive, the tape should do a rewind.
|
|
|
06-28-2004, 03:29 PM
|
#4
|
Moderator
Registered: Aug 2002
Posts: 26,358
|
Don't you mean hpfs? Or was it just a typo? I do not know if hpfs support is included in a default kernel.
You need to load the tape module st. i.e.
modprobe st
Also install the tape utilities called mt. Your tape device will be /dev/st0 (rewinds upon completion of command) and /dev/nst0 ( no rewind ).
The command:
mt -f /dev/nst0 status
Will display the status of the tape drive. You can use the tar (Tape archiver ) command to write to the drive. You can also find backup utilities on the freshmeat website.
tar -cvf /dev/st0 /data (for example, to write to tape)
|
|
|
06-29-2004, 02:49 PM
|
#5
|
Member
Registered: Mar 2004
Posts: 93
Original Poster
Rep:
|
thank u guys for all ur help. it worked just fine. I could now access the tape.
by "tar commnd". its content stored in /home but i couldnt copy it to a floppy. Mounting didnt worked. "tar cmd" stores only random part of it. (I re-tar the fdd content back ..and compared to saved copy in /home).
pls help me.
I'd like to mention that software was made for sco-unix and I was trying to port the system into linux (Against all opposition and this endeavor is somewhat secret until i prove that linux box can also good ). many imp applications still remain inside the sco-box. I
want to copy these to tape sony sdt-700. but probs and confusions. where is tape device file located in sco-unix? pls help me.
|
|
|
All times are GMT -5. The time now is 09:23 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|