Subject: Linux-Activists - DOC Channel digest. 93-1-17-19:28
From: "Linux Activists" <[email-masked]>
To: "Linux-Activists" <[email-masked]>
Date: Thu, 18 Feb 1993 02:01:35 +0200

Topics:
	 The Linux Device List

----------------------------------------------------------------------

From: [email-masked] (Rick Miller, Linux Device Registrar)
Subject: The Linux Device List
Date: Wed, 17 Feb 1993 21:12:24 +0200

			The Linux Device List
    maintained by [email-masked] (Rick Miller, Linux Device Registrar)
			  February 17, 1993

Many thanks to [email-masked], Jim Winstead Jr., and many others.

	IF YOU WANT ANY CHANGES OR ADDITIONS TO THIS LIST, *TELL ME*!

Majors:
 0.  Unnamed .	(unknown) ....	for proc-fs, NFS clients, etc.
 1.  Memory ..	(character) ..	ram, mem, kmem, null, port, zero
 2.  Floppy ..	(block) ......	fd[0-1]<[dhDH]{360,720,1200,1440}>
 3.  Hard Disk	(block) ......	hd[a-b]<[0-8]>
 4.  Tty .....	(character) ..	{p,t}ty<{S,[p-s][0-f]}><#>
 5.  tty .....	(character) ..	tty, cua[0-63]
 6.  Lp ......	(character) ..	lp[0-2] or par[0-2]
 7.  Tape ....	(block) ......	t[0-?] (reserved for Non-SCSI tape drives)
 8.  Scsi Disk	(block) ......	sd[a-h]<[0-8]>
 9.  Scsi Tape	(block) ......	<n>rmt[0-1]
10.  Mouse ...	(character) ..	bm, psaux (mouse)
11.  CD-ROM ..	(block) ......	scd[0-1]
12.  QIC-tape?  (character) ..  rmt{8,16}, tape<{-d,-reset}>
13.  XT-disk .  (block) ......  xd[a-b]<[0-8]>
14.  Audio ...  (character) ..  audio, dsp, midi, mixer, sequencer

Breakdown of minors by Majors:
------------------------------
 0.  Unnamed .	(unknown) ....	for proc-fs, NFS clients, etc.
	Minors?

 1.  Memory ..	(character) ..	ram, mem, kmem, null, port, zero
	0.  /dev/ram
	1.  (block): RAM-Disk	(character): /dev/mem
	2.  /dev/kmem
	3.  /dev/null
	4.  /dev/port
	5.  /dev/zero

 2.  Floppy ..	(block) ......	fd[0-1]<[dhDH]{360,720,1200,1440}>
	Minors are [drive + [4 * type]] where drive 0-3 == A:-D: (floppy)
	and type is:	0: Autodetect		4: 720k in 3.5"
			1: 360k in 5.25" 1.2M	5: 360k in 5.25" 1.2M
			2: 1.2M in 5.25" 1.2M	6. 720k in 5.25" 1.2M
			3: 360k in 3.5"		7. 1.44M in 3.5" 1.44

	0. /dev/fd0:  Autodetected first floppy.
	1. /dev/fd1:  Autodetected second floppy.
	2. /dev/fd2:  Autodetected third floppy.
	3. /dev/fd3:  Autodetected fourth floppy.
	4. /dev/fd0d360:  360k in 5.25" 1.2M first drive
	5. /dev/fd1d360:  360k in 5.25" 1.2M second drive
		(You can work out the rest of the intermediates...)
	8. /dev/fd0h1200:  1.2M in 5.25" 1.2M first drive
	12. /dev/fd0D360 (/dev/fd0H360):  360k in 3.5" first drive
	16. /dev/fd0D720 (/dev/fd0H720):  720k in 3.5" first drive
	20. /dev/fd0h360:  360k in 5.25" 1.2M first drive
	24. /dev/fd0h720:  720k in 5.25" 1.2M first drive
	28. /dev/fd0H1440:  1.44M in 3.5" 1.44M first drive

	Naming goes like this:
	fd[drive][type][size] where:
		[drive]=0-3:  Just like DOS's "A:"-"D:".
		[type]={d,h,D,H}:  Enlighten me.  All I can tell you
				   for certain is that the capital
				   letters represent 3.5" drives.
		[size]={360,720,1200,1440} kilobytes.

 3.  Hard Disk	(block) ......	hd[a-b]<[0-8]>
	0.  /dev/hda (/dev/hda0):  The whole first HD, including its MBR.
	1-4.  /dev/sda{1-4}:  Primary partitions on the first SCSI drive.
	5-8.  /dev/sda{5-8}:  Extended partitions on the first SCSI drive.
	64.  /dev/hdb (/dev/hdb0):  The whole second HD, including its MBR.
	65-68.  /dev/sdb{1-4}:  Primary partitions on the second drive.
	69-72.  /dev/sdb{5-8}:  Extended partitions on the second drive.

	Notes:	BE *VERY* CAREFUL WITH /dev/hda AND /dev/hdb!!  These two
		devices signify the *entire* *drive*, not just one partition.
		The only things that use /dev/hda or /dev/hdb are things that
		need to read/change the partition table (like fdisk).

		Linux doesn't order anything.  It perceives partitions in the
		order in which they appear in the partition table.  Thus,
		/dev/hd?1 may follow /dev/hd?2 in the cylinder numbering.

		The names of the hard drives are not the same as under Minix.

 4.  Tty .....	(character) ..	{p,t}ty<{S,[p-s][0-f]}><#>
	0.  /dev/tty0:  This is the currently active Virtual Console.
	1-63.  /dev/tty[1-63]:  Specific virtual consoles.
	64-127.  /dev/ttyS[0-63]:  Serial ports (dial-in mode).
	128-191.  /dev/pty[p-s][0-f]:  PTY Masters.
	192-255.  /dev/tty[p-s][0-f]:  PTY Slaves. ([0-f]=0123456789abcdef)

	Notes:  There are several constants set in the kernel sources which
		can be changed to compile a more customized kernel.  They're
		found in [/usr/src]/linux/include/linux/tty.h:

			NR_CONSOLES	The number of virtual consoles.
			NR_SERIALS	The number of serial lines.
			NR_PTYS		The number of pty's.

 5.  tty .....	(character) ..	tty, cua[0-63]
	0.  /dev/tty:  the tty that owns the process calling it.
	64-127.  /dev/cua[0-63]:  Serial ports (dial-out mode).

 6.  Lp ......	(character) ..	lp{0-2} or par{0-2}
     Parallel (printer) ports.  (Increasable in include/linux/lp.h)
	0.  /dev/lp0
	1.  /dev/lp1:  Same as MS-DOS's "LPT1:" on my machine...
	2.  /dev/lp2

	Notes:	The number of line printers is defined by LP_NO which is
		found in [/usr/src]/linux/include/lp.h.

		Even if you only have one printer port, Linux may still call
		it /dev/lp1 (rather than /dev/lp0).  Watch during boot-up to
		see how it recognizes your printer port.

 7.  Tape ....	(block) ......	t[0-?] (reserved for Non-SCSI tape drives)
	This one's getting old.  No minor numbers are yet assigned.
	It's not even in the source code.  Maybe it never will be...

 8.  Scsi Disk	(block) ......	sd[a-h]<[0-8]>
	Minors numbers are ((16 * Drive) + Partition)
	where
	  Drive is the number of the physical drive in order of detection
	and
	  Partition is as follows:
		0   is the whole drive
		1-4 are the DOS "primary" partitions
		5-8 are the DOS "extended" (or "logical") partitions, so...

	0.  /dev/sda (/dev/sda0):  The first (detected) SCSI drive.
	1-4.  /dev/sda[1-4]:  Primary partitions on the first SCSI drive.
	5-8.  /dev/sda[5-8]:  Extended partitions on the first SCSI drive.
	16.  /dev/sdb (/dev/sdb0):  The second (detected) SCSI drive.
	17-20.  /dev/sdb[1-4]:  Primary partitions on the second drive.
	21-24.  /dev/sdb[5-8]:  Extended partitions on the second drive.
	32.  /dev/sdc (/dev/sdc0):  The third (detected) SCSI drive.
	...and so on.

 9.  Scsi Tape	(block) ......	<n>rmt[0-1]
	0.  /dev/rmt0:  First (detected) SCSI tape drive, rewind-on-close.
	1.  /dev/rmt1:  Second (detected) SCSI tape drive, rewind-on-close.
	128.  /dev/nrmt1:  First (detected) SCSI tape, *no* rewind-on-close.
	129.  /dev/nrmt1:  Second (detected) SCSI tape, *no* rewind-on-close.

10.  Mouse	(character) ..	bm, psaux (mouse)
     (MGR may require that /dev/mouse be linked to one of these...)
		NOTE THE CHANGES TO DIFFERENTIATE MOUSE TYPES!
		(Please implement these in the distributions.)
	0.  /dev/logibm:  (Logitec?) bus mouse
	1.  /dev/psaux:  PS/2 mouse port
	2.  /dev/inportbm:  MicroSoft "InPort" bus mouse
	3.  /dev/atibm:  ATI XL bus mouse

     If you don't feel like re-configuring your applications, you can
     just leave the old "/dev/bm" lying around.

11.  CD-ROM ..	(block) ......	scd[0-1]
	0.  /dev/scd0:  The first (detected) SCSI CD-ROM.
	1.  /dev/scd1:  The second (detected) SCSI CD-ROM.
	("There's not much more to it than that" says Eric Youngdale.)

12.  QIC-tape?  (character) ..  rmt{8,16}, tape<{-d,-reset}>
     (I really don't have much info on this one... )
	6.  /dev/rmt8:  QIC-120
	8.  /dev/rmt16 (/dev/tape):  QIC-150
	136.  /dev/tape-d:  (It has something to do with being 128+8... ?)
	255.  /dev/tape-reset:  For resetting only.

13.  XT-disk .  (block) ......  xd[a-b]<[0-8]>
     XT (8-bit) hard disk controller devices.
	Minor numbers are assigned in the same manner as for the
	normal Hard Drive devices ("/dev/hd*").

14.  Audio ...  (character) ..  audio, dsp, midi, mixer, sequencer
	0.  /dev/mixer:  Mixer and Control Device
	1.  /dev/sequencer:  FM-synthesizer and Midi
	2.  /dev/midi:  (for future use)
	3.  /dev/dsp:  Digitized voice (DAC/ADC)
	4.  /dev/audio:  (Reserved for compatibility with Sun)

Rick Miller   <[email-masked]> | <[email-masked]>   Ricxjo Muelisto
Occupation:  Husband, Father, WEPCo. WAN Mgr., Discus Sys0p, and  Linux fan

------------------------------

End of DOC Digest
*****************
-------