home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / linux / 16980 < prev    next >
Encoding:
Text File  |  1992-11-17  |  2.4 KB  |  61 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!ukma!darwin.sura.net!ra!tantalus.nrl.navy.mil!eric
  3. From: eric@tantalus.nrl.navy.mil (Eric Youngdale)
  4. Subject: Re: First Release of the Linux Device List
  5. Message-ID: <BxvCAt.8BD@ra.nrl.navy.mil>
  6. Keywords: TAPE, CD-ROM, HELP!
  7. Sender: usenet@ra.nrl.navy.mil
  8. Organization: Naval Research Laboratory
  9. References: <1eb4ukINN53j@uwm.edu>
  10. Date: Tue, 17 Nov 1992 16:25:40 GMT
  11. Lines: 48
  12.  
  13. In article <1eb4ukINN53j@uwm.edu> rick@ee.uwm.edu (Rick Miller, Linux Device Registrar) writes:
  14. >The following is what I have so far in the way of a complete listing of
  15. >devices for Linux.  There are some gaps that need filling...
  16. >
  17. >For example, I don't have any minor numbers for TAPE drives yet, SCSI or
  18. >otherwise.  Same goes for CD-ROMs.  Will those who have such things running
  19. >let me know what major and minor numbers they've been using?  Thanks.
  20.  
  21.     OK, here goes.  For the cdrom, the minors are just the devices
  22. themselves.  If you have one cdrom drive, the minor is 0.  If you have two,
  23. then the minors are 0 and 1.  Not much more to it than that.
  24.  
  25.     For a SCSI tape, each physical device has two minor numbers that are
  26. associated with it.  If you have two tape drives, then minors 0 and 1 will
  27. refer to the first and second drives and the tape will be rewound when the
  28. device is closed.  Minor numbers 128 and 129 (i.e. 128+n) also refer to the
  29. first and second physical drives, but the tape will not be rewound after
  30. closing the device.  If you have one tape, you could create the devices with
  31. the following commands:
  32.  
  33. mknod /dev/rmt0 c 9 0
  34. mknod /dev/nrmt0 c 9 128
  35.  
  36. > 8.  Scsi Disk    (block) ......    sd[0-?] or sd[0-?][0-?]
  37. >    Minors numbers are [[16 * HostID] + partition]
  38. >
  39. >    Notes:    The maximum number of SCSI drives is defined by MAX_SD
  40. >        found in [/usr/src]/linux/kernel/blk_drv/scsi/sd.h.
  41.  
  42.     Additional note: In the new scsi drivers there is no set maximum number
  43. of scsi disks, hence no need to fiddle with sd.h  Everything autoconfigures as
  44. the system boots.
  45.  
  46. >
  47. > 9.  Scsi Tape    (block) ......    st[0-?]
  48. >
  49. >    Notes:    For future reference, the maximum number of SCSI tapes
  50. >        is defined by MAX_ST which is found in
  51. >        [/usr/src]/linux/kernel/blk_drv/scsi/st.h.
  52.  
  53.  
  54.     The same is true here.  There is no longer any need to set MAX_ST,
  55. and it would be a bad thing to actually try.  Even though there is a MAX_SR
  56. in the cdrom code in the 0.98.5 kernel, the new scsi code effectively
  57. eliminates this as well.
  58.  
  59. -- 
  60. Eric Youngdale
  61.