The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 11-06-2001
guest100's Avatar
Banned
 

Join Date: Oct 2001
Location: London, UK
Posts: 146
mt -f

Hi

<pre>

I get this under /dev/rmt/

lrwxrwxrwx 1 root other 42 Aug 10 13:33 0 -> ../../devices/pci@1f,4000/scsi@3,1/st@5,0:
lrwxrwxrwx 1 root other 43 Aug 10 13:33 0b -> ../../devices/pci@1f,4000/scsi@3,1/st@5,0:b
lrwxrwxrwx 1 root other 44 Aug 10 13:33 0bn -> ../../devices/pci@1f,4000/scsi@3,1/st@5,0:bn
lrwxrwxrwx 1 root other 43 Aug 10 13:33 0c -> ../../devices/pci@1f,4000/scsi@3,1/st@5,0:c
lrwxrwxrwx 1 root other 44 Aug 10 13:33 0cb -> ../../devices/pci@1f,4000/scsi@3,1/st@5,0:cb
lrwxrwxrwx 1 root other 45 Aug 10 13:33 0cbn -> ../../devices/pci@1f,4000/scsi@3,1/st@5,0:cbn
lrwxrwxrwx 1 root other 44 Aug 10 13:33 0cn -> ../../devices/pci@1f,4000/scsi@3,1/st@5,0:cn
lrwxrwxrwx 1 root other 43 Aug 10 13:33 0h -> ../../devices/pci@1f,4000/scsi@3,1/st@5,0:h
lrwxrwxrwx 1 root other 44 Aug 10 13:33 0hb -> ../../devices/pci@1f,4000/scsi@3,1/st@5,0:hb
lrwxrwxrwx 1 root other 45 Aug 10 13:33 0hbn -> ../../devices/pci@1f,4000/scsi@3,1/st@5,0:hbn
lrwxrwxrwx 1 root other 44 Aug 10 13:33 0hn -> ../../devices/pci@1f,4000/scsi@3,1/st@5,0:hn



What is the difference between the all these devices? they all look like the same. Have I created too many unused symbolic links? I have only got one dat drive.
</pre>

Also when I use:

<pre>

mt -f /dev/rmt/0 rewind and
mt -f /dev/rmt/0cn rewind
</PRE>

what is the difference??
I went through the 'man mt' but didn't help much.
Can somebody make it clear for me please?

Thanks very much.
Forum Sponsor
  #2  
Old 11-06-2001
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,667
On Suns a "ls -lL /dev/rmt/*" will give you a better idea of whats happening. You don't have too many special files, it's supposed to work that way. Each file specifies various different behaviors to be applied during open, read, write, and close calls on that device.

Your example is just rewinding the tape. This is one case where it doesn't matter. It doesn't matter what tape density you pick since rewind is rewind. It doesn't matter is there is an automatic rewind when you close the device since you did a rewind anyway. It doesn't matter what woulda happened had you tried to read past EOF since you didn't. So yes, in the example of just rewinding the tape, it doesn't matter. But someday maybe you will do something with your tape drive besides rewinding a tape. Then it will matter.

The various options are documented on Suns on the mtio man page. Read that and see if you still have any questions.
  #3  
Old 11-06-2001
Kelam_Magnus's Avatar
Registered User
 

Join Date: Aug 2001
Location: DFW McKinney, TX,
Posts: 1,069
What type of OS do you have? On HPUX, there is a command lssf that gives you info on device files.

$ /sbin/lssf devicefile

Some older OSs may not have this command.


Try it and see. Also, do a man on lssf.

__________________
My brain is your brain
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 03:49 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0