home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / linux / 16974 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  5.6 KB

  1. Path: sparky!uunet!caen!uwm.edu!uwm.edu!usenet
  2. From: rick@ee.uwm.edu (Rick Miller, Linux Device Registrar)
  3. Newsgroups: comp.os.linux
  4. Subject: First Release of the Linux Device List
  5. Date: 17 Nov 1992 16:00:20 GMT
  6. Organization: Just me.
  7. Lines: 131
  8. Message-ID: <1eb4ukINN53j@uwm.edu>
  9. NNTP-Posting-Host: 129.89.2.33
  10. Summary: LOOK IT OVER!  COMMENTS PLEASE!
  11. Keywords: TAPE, CD-ROM, HELP!
  12.  
  13. The following is what I have so far in the way of a complete listing of
  14. devices for Linux.  There are some gaps that need filling...
  15.  
  16. For example, I don't have any minor numbers for TAPE drives yet, SCSI or
  17. otherwise.  Same goes for CD-ROMs.  Will those who have such things running
  18. let me know what major and minor numbers they've been using?  Thanks.
  19.  
  20. ---------------------------------------------------------------------------
  21.  
  22.             The Linux Device List
  23.     maintained by rick@ee.uwm.edu (Rick Miller, Linux Device Registrar)
  24.  
  25.     Many thanks to richard@stat.tamu.edu and Jim Winstead Jr.
  26.  
  27. Majors:
  28.  0.  Unnamed .    (unknown) ....    for proc-fs, NFS clients, etc.
  29.  1.  Memory ..    (character) ..    ram, mem, kmem, null, port, zero
  30.  2.  Floppy ..    (block) ......    fd[01][dhDH]{360,720,1200,1440} or fd[01]
  31.  3.  Hard Disk    (block) ......    hd[ab] or hd[ab][1-?] (Extended>4)
  32.  4.  Tty .....    (character) ..    tty{0,1-8,63,64-127,128-?} or ttys{0-3,1-4}
  33.  5.  tty .....    (character) ..    special tty: owner of its calling process.
  34.  6.  Lp ......    (character) ..    lp[0-2] or par[0-2]
  35.  7.  Tape ....    (block) ......    t[0-?] (reserved for Non-SCSI tape drives)
  36.  8.  Scsi Disk    (block) ......    sd[0-?] or sd[0-?][0-?]
  37.  9.  Scsi Tape    (block) ......    st[0-?]
  38. 10.  Bus Mouse    (character) ..    bm, psaux (mouse)
  39. 11.  CD-ROM ..    (block) ......    scd
  40.  
  41. Breakdown of minors by Majors:
  42. ------------------------------
  43.  0.  Unnamed .    (unknown) ....    for proc-fs, NFS clients, etc.
  44.     Minors?
  45.  
  46.  1.  Memory ..    (character) ..    ram, mem, kmem, null, port, zero
  47.     0.  /dev/ram
  48.     1.  (block): RAM-Disk    (character): /dev/mem
  49.     2.  /dev/kmem
  50.     3.  /dev/null
  51.     4.  /dev/port
  52.     5.  /dev/zero
  53.  
  54.  2.  Floppy ..    (block) ......    fd[01][dhDH]{360,720,1200,1440} or fd[01]
  55.     Minors are [drive + [4 * type]] where drive 0-3 == A:-D: (floppy)
  56.     and type is:    0: Autodetect        4: 720k in 3.5"
  57.             1: 360k in 5.25" 1.2M    5: 360k in 5.25" 1.2M
  58.             2: 1.2M in 5.25" 1.2M    6. 720k in 5.25" 1.2M
  59.             3: 360k in 3.5"        7. 1.44M in 3.5" 1.44
  60.  
  61.  3.  Hard Disk    (block) ......    hd[ab] or hd[ab][1-?] (Extended>4)
  62.     0.  First HD (/dev/hda), whole drive including Master Boot Record.
  63.     1-4.  Partitions on the first HD.
  64.     5-8.  Logical partitions within an extended partition on first HD.
  65.     64.  Second HD (/dev/hdb), whole drive including Master Boot Record.
  66.     65-68.  Partitions on the second HD.
  67.     69-72.  Logical partitions within an extended partition on second HD.
  68.  
  69.     Notes:    BE *VERY* CAREFUL WITH /dev/hda AND /dev/hdb!!  These two
  70.         devices signify the *entire* *drive*, not just one partition.
  71.         The only things that use /dev/hda or /dev/hdb are things that
  72.         need to read/change the partition table (like fdisk).
  73.  
  74.         Linux doesn't order anything.  It perceives partitions in the
  75.         order in which they appear in the partition table.  Thus,
  76.         /dev/hd?1 may follow /dev/hd?2 in the cylinder numbering.
  77.  
  78.         The names of the hard drives are not the same as under Minix.
  79.  
  80.  4.  Tty .....    (character) ..    tty{0,1-8,63,64-127,128-?} or ttys{0-3,1-4}
  81.     0.  /dev/tty0:  This is the currently active Virtual Console.
  82.     1-63.  /dev/tty#:  Specific virtual consoles.
  83.     64-127.  /dev/ttys*:  Serial ports.
  84.     128-191.  /dev/pty[??]:  PTY Masters.
  85.     192-255.  /dev/pty[??]:  PTY Slaves.
  86.  
  87.     Notes:  There are several constants set in the kernel sources which
  88.         can be changed to compile a more customized kernel.  They're
  89.         found in [/usr/src]/linux/include/linux/tty.h:
  90.  
  91.             NR_CONSOLES    The number of virtual consoles.
  92.             NR_SERIALS    The number of serial lines.
  93.             NR_PTYS        The number of pty's.
  94.  
  95.  5.  tty .....    (character) ..    special tty: owner of its calling process.
  96.     0.  /dev/tty:  the tty that owns the process calling it.
  97.  
  98.  6.  Lp ......    (character) ..    lp[0-2] or par[0-2]
  99.     1-3.  Parallel (printer) ports.  (Increasable in include/linux/lp.h)
  100.  
  101.     Notes:    The number of line printers is defined by LP_NO which is
  102.         found in [/usr/src]/linux/include/lp.h.
  103.  
  104.         Even if you only have one printer port, Linux may still call
  105.         it /dev/lp1 (rather than /dev/lp0).  Watch during boot-up to
  106.         see how it recognizes your printer port.
  107.  
  108.  7.  Tape ....    (block) ......    t[0-?] (reserved for Non-SCSI tape drives)
  109.     This one's just getting started.  No minor numbers are yet assigned.
  110.     It's not even in the source code.
  111.  
  112.  8.  Scsi Disk    (block) ......    sd[0-?] or sd[0-?][0-?]
  113.     Minors numbers are [[16 * HostID] + partition]
  114.  
  115.     Notes:    The maximum number of SCSI drives is defined by MAX_SD
  116.         found in [/usr/src]/linux/kernel/blk_drv/scsi/sd.h.
  117.  
  118.  9.  Scsi Tape    (block) ......    st[0-?]
  119.     Quoting from the source-code:
  120.                         void do_st_request(void)
  121.                         {
  122.                                 panic("There is no st driver.\n\r");
  123.                         }
  124.  
  125.     Notes:    For future reference, the maximum number of SCSI tapes
  126.         is defined by MAX_ST which is found in
  127.         [/usr/src]/linux/kernel/blk_drv/scsi/st.h.
  128.  
  129. 10.  Bus Mouse    (character) ..    bm, psaux (mouse)
  130.         (If I recall, X Windows requires that
  131.          /dev/mouse be linked to one of these...)
  132.     0.  /dev/bm:  (Logitec?) bus mouse
  133.     1.  /dev/psaux:  PS/2 mouse port
  134.     2.  /dev/bm:  MicroSoft bus mouse
  135.     3.  /dev/bm:  ATI XL bus mouse
  136.  
  137. 11.  CD-ROM ..    (block) ......    scd
  138.     Minors?
  139.  
  140. ---------------------------------------------------------------------------
  141.  
  142. Rick Miller   <rick@ee.uwm.edu> | <rick@discus.mil.wi.us>   Ricxjo Muelisto
  143. Occupation:  Husband, Father, WEPCo. WAN Mgr., Discus Sys0p, and  Linux fan
  144.