home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / linux / 23556 < prev    next >
Encoding:
Text File  |  1993-01-11  |  5.4 KB  |  117 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!gatech!usenet.ins.cwru.edu!agate!boulder!ophelia!drew
  3. From: drew@ophelia.cs.colorado.edu (Drew Eckhardt)
  4. Subject: foo
  5. In-Reply-To: <C0JqMH.J3D@ra.nrl.navy.mil>
  6. Message-ID: <1993Jan11.075144.21912@colorado.edu>
  7. Sender: news@colorado.edu (The Daily Planet)
  8. Nntp-Posting-Host: ophelia.cs.colorado.edu
  9. Organization: University of Colorado at Boulder
  10. References: <C0JnHJ.1Hvz@austin.ibm.com>
  11. Date: Mon, 11 Jan 1993 07:51:44 GMT
  12. Lines: 103
  13.  
  14. In article <C0JqMH.J3D@ra.nrl.navy.mil> you write:
  15. >In article <C0JnHJ.1Hvz@austin.ibm.com> mwpoag@thurston.austin.ibm.com (Michae
  16. l Wayne Poag) writes:
  17. >> 1) send the spin-up code to a drive on an st01
  18. >> 2) activate a drive added after boot-up
  19. >>
  20. >>I am running v.98p1 of HJ Lu's distribution 
  21. >>The st01 is recognized, and the drive too, but this drive has
  22. >>no jumper for spin-up on power-up...
  23. >>
  24. >>Is there any new scsi code in the newer kernels that would help.
  25. >
  26. >    I am not aware of any special scsi command to spin up a drive, so I
  27. >guess the answer is that the newer kernel is unlikely to help you much.  I
  28. >grepped the scsi specifications for variations on "Spin up", and came up empty
  29. .
  30. >All I can suggest is that you contact the manufacturer and find out what is
  31. >needed - it is possible that there is some kind of drive specific command that
  32. >must be sent before the drive spins up.
  33.  
  34. There is a standard SCSI command for this.  Some drives are configured so 
  35. that they don't spin up on power up, and instead wait for the START STOP UNIT
  36. command (Most notably, DEC does this with their discs on their 
  37. Decstations).  In some cases it is jumper selectable (some HP disks), 
  38. or software configurable on one of the mode pages (some DEC disks).
  39.  
  40. The command you want is opcode 1BH, START STOP UNIT.  
  41.  
  42. Note that the semmantics are slightly different for SCSI-I/SCSI-II - 
  43. SCSI-1 specifies the LoEj bit as reserved (so it should be set to zero).
  44.  
  45. 8.2.17. START STOP UNIT Command
  46.  
  47.  
  48.                      Table 8-33: START STOP UNIT Command
  49.  
  50. ==============================================================================
  51.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  52. Byte |        |        |        |        |        |        |        |        |
  53. ==============================================================================
  54.  0   |                           Operation Code (1Bh)                        |
  55. -----|-----------------------------------------------------------------------|
  56.  1   | Logical Unit Number      |                  Reserved         | Immed  |
  57. -----|-----------------------------------------------------------------------|
  58.  2   |                           Reserved                                    |
  59. -----|-----------------------------------------------------------------------|
  60.  3   |                           Reserved                                    |
  61. -----|-----------------------------------------------------------------------|
  62.  4   |                           Reserved                  |  LoEj  |  Start |
  63. -----|-----------------------------------------------------------------------|
  64.  5   |                           Control                                     |
  65. ==============================================================================
  66.  
  67.   The START STOP UNIT command (Table 8-33) requests that the target enable or
  68. disable the logical unit for media access operations.
  69.  
  70.   An immediate (Immed) bit of one indicates that status shall be returned as
  71. soon as the command descriptor block has been validated.  An Immed bit of zero
  72. indicates that status shall be returned after the operation is completed.
  73.  
  74.   A load eject (LoEj) bit of zero requests that no action be taken regarding
  75. loading or ejecting the medium.  A LoEj bit of one requests that the medium
  76. shall be be unloaded if the start bit is zero.  A LoEj bit of one requests
  77. that the medium is to be loaded if the start bit is one.
  78.  
  79.   A start bit of one requests the logical unit be made ready for use.  A start
  80. b.it of zero requests that the logical unit be stopped (media cannot be
  81. accessed by the initiator).
  82.  
  83.   Targets that contain cache memory shall implicitly perform a SYNCHRONIZE
  84. CACHE command for the entire medium prior to executing the STOP UNIT command.
  85.  
  86.  
  87. >    Since you have not indicated anything that would suggest otherwise, it
  88. >is also possible that your drive is dead.  Older Seagates in particular have
  89. >problems spinning up because (as I recall) the heads get stuck to the platters
  90. .
  91. >There is some kind of lubricant that is used internally, but as the drive gets
  92. >old the lubricant gets sticky.  
  93.  
  94. The 296N, 277R/N, and 251 are all built around the same HDA and can 
  95. suffer from the same 251 stiction problem.
  96.  
  97. >If this is the case, then drive replacement is
  98. >strongly recommended. When I ran across this, I was able to get the drive to
  99. >spin up by lightly hitting the drive with a screwdriver handle, but this shoul
  100. d
  101. >probably only be done when you are in a position to run a backup of some kind.
  102. >You should also make sure that there is not a spin-up command that needs to be
  103. >sent before you try any of this :-).
  104.  
  105. On some disks, spin-up is controlled by a jumper.
  106.  
  107. Eric : 
  108.  
  109. The disk driver should probably do a TEST UNIT READY (op code 0), and if that 
  110. fails do a START STOP UNIT command with a ~60 second timeout and try again
  111. before failure.
  112.  
  113. -- 
  114. Boycott AT&T for their absurd anti-BSDI lawsuit. | Drew Eckhardt
  115. Condemn Colorado for Amendment Two.         | drew@cs.colorado.edu
  116. Use Linux, the fast, flexible, and free 386 unix |  
  117.