home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / next / sysadmin / 4793 < prev    next >
Encoding:
Text File  |  1992-08-21  |  1.6 KB  |  51 lines

  1. Newsgroups: comp.sys.next.sysadmin
  2. Path: sparky!uunet!decwrl!access.usask.ca!kakwa.ucs.ualberta.ca!news
  3. From: sherwood@fenris.space.ualberta.ca (Sherwood Botsford)
  4. Subject: Re: ioctl for DAT compression
  5. Message-ID: <1992Aug21.183100.16649@kakwa.ucs.ualberta.ca>
  6. Sender: news@kakwa.ucs.ualberta.ca
  7. Nntp-Posting-Host: fenris.space.ualberta.ca
  8. Organization: University Of Alberta, Edmonton Canada
  9. References: <15080@umd5.umd.edu>
  10. Date: Fri, 21 Aug 1992 18:31:00 GMT
  11. Lines: 38
  12.  
  13. Mike Matthews writes
  14. > Also, is there a way to determine if a tape is in the  
  15. drive and ready to go?
  16. > I tried mt -f /dev/nrst0 status but it never gave  
  17. consistent errors (returned
  18. > 06, then 02, then 00 without me doing anything  -- and  
  19. this was after the
  20. > ready light came back on too).
  21.  
  22. 6 means that the device has been reset or there has been a  
  23. change of cartridge.
  24.  
  25. 2 means that the device is not ready.
  26.  
  27. 0 means everything is ok.
  28.  
  29. 80 means that there is a tape loaded, and its at a  
  30. filemark.
  31.  
  32. 40 means that there is a tape loaded and its at Logical  
  33. Beginning of tape.
  34.  
  35. Status remains set until the drive receives a command.   
  36. Thus you could have changed the tape 10 minutes ago, and mt  
  37. status will return 6.
  38.  
  39. Get TarChive.tar.Z if you want to see some samples of how  
  40. to check status and decide what to do from there. (On  
  41. sonata.)
  42.  
  43. I think you could modify the mtsense command in that same  
  44. file to set compression on.
  45.  
  46. CAVEAT:  Using compression on a Tape drive is not a good  
  47. plan.  If you have a glitch, the remainder of the  
  48. compressed archive is usually undecipherable.  Don't do  
  49. this unless you can't fit what you want on a single tape.
  50.