Newsgroups: comp.os.minix
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!ira.uka.de!smurf!flatlin!ptavv!ralf
From: ralf@ptavv.ka.sub.org (Ralf Wenk)
Subject: Re: Extra drives/controllers in Minix 1.5.10.3 ST
Message-ID: <1991Apr23.212139.01237@ptavv.ka.sub.org>
Date: Tue, 23 Apr 1991 21:21:39 GMT
References: <1991Apr22.171444.832@doe.utoronto.ca>
Lines: 62

In article <1991Apr22.171444.832@doe.utoronto.ca>
david@doe.utoronto.ca (David Megginson) writes:
> I have two hard drives hooked up to my Mega 2: a Megafile 30 (#0) and
> an ICD FA*ST 80 (#1). I can use either drive with with Minix 1.5.10.3 ST
> when it is the only drive connected to the computer, but I have not
> managed to use both of them together. I have read the introductory
> comments in stwini.c, but I'm afraid I still don't know what minor device
> numbers to pass to mknod. There are two separate drives with ID #'s
> 0 and 1, each with its own controller. Thank you for ANY help.

I use two 20 MB HD's with a SH205 controller and a 240 MB HD with an
ICD Advantage+. So the configuration is mainly the same. One drive at
the SH205 and the IDC drive are dedicated for MINIX. All you have to
do is:

Change in /usr/include/minix/config.h NR_DRIVES to 3 (even if you
have only two HDs.

> /* define the number of hard disk drives on your system */
> /* (assuming 2 drives/controller) */
> #define NR_DRIVES	   3	/* typically 0 or 1 */

Create at least the following special files in /dev:

First drive on controller 0:
                              MAYOR NINOR 
brw-------  1 root     root       3,   0 Sep  2  1990 hd0a
brw-------  1 root     root       3,   1 Sep  2  1990 hd0b
brw-------  1 root     root       3,   2 Sep  2  1990 hd0c
brw-------  1 root     root       3,   3 Sep  2  1990 hd0d
brw-------  1 root     root       3,   4 Sep  2  1990 hd0e
brw-------  1 root     root       3,  13 Sep  2  1990 hd0n
Second drive on controller 0: (your system did not need them)
brw-------  1 root     root       3,  16 Sep  2  1990 hd1a
brw-------  1 root     root       3,  17 Sep  2  1990 hd1b
brw-------  1 root     root       3,  18 Sep  2  1990 hd1c
brw-------  1 root     root       3,  29 Sep  2  1990 hd1n
First drive on controller 1:
brw-------  1 root     root       3,  32 Sep  2  1990 hd2a
brw-------  1 root     root       3,  33 Sep  2  1990 hd2b
brw-------  1 root     root       3,  34 Sep  2  1990 hd2c
brw-------  1 root     root       3,  35 Sep  2  1990 hd2d
brw-------  1 root     root       3,  36 Sep  2  1990 hd2e
brw-------  1 root     root       3,  45 Sep  2  1990 hd2n
Character special files uses the same mayor,minor numbers:
crw-------  1 root     root       3,  16 Sep  2  1990 rhd1a
crw-------  1 root     root       3,  17 Sep  2  1990 rhd1b
crw-------  1 root     root       3,  18 Sep  2  1990 rhd1c
crw-------  1 root     root       3,  29 Sep  2  1990 rhd1n
crw-------  1 root     root       3,  32 Sep  2  1990 rhd2a
crw-------  1 root     root       3,  33 Sep  2  1990 rhd2b
crw-------  1 root     root       3,  34 Sep  2  1990 rhd2c
crw-------  1 root     root       3,  35 Sep  2  1990 rhd2d
crw-------  1 root     root       3,  36 Sep  2  1990 rhd2e
crw-------  1 root     root       3,  45 Sep  2  1990 rhd2n

Recompile and link a new system. Reboot and mount the MINIX
partitions. That's it.

-- 
-- 
Ralf Wenk -- ralf@ptavv.ka.sub.org
