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