Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!udel!mmdf From: Martin Sckopke Newsgroups: comp.os.minix Subject: Re: Extra drives/controllers in Minix 1.5.10.3 ST Message-ID: <51717@nigel.ee.udel.edu> Date: 24 Apr 91 07:00:13 GMT Sender: mmdf@ee.udel.edu Lines: 64 On Mon, 22 Apr 91 17:14:44 GMT David Megginson said: >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. > Perhaps you read that I encountered similar problems while trying to bring up a SQ555 under Minix. Here is what I have done: Minor device no.: 0-15 for HD 0 Controller 0 16-32 for HD 1 Controller 0 33-47 for HD 0 Controller 1 ... So I used 34 and 35 for the first and second partition on the second drive, and it worked - at least for normal (cp, mv, open, close write) access. But there still were some problems with fsck, readall and such. But there is a patch from Frans Meulenbroeks relative to 1.5.10.3. Since some more people seem to have difficulties, I post it here once again, just to increase bandwidth. ! This space intentionally Martin Sckopke (X913@DMAFHT1) ! ! left blank. #!/bin/sh # This is a shell archive (shar 3.41) # made 10/18/1990 07:35 UTC by meulenbr@cstw68 # Source directory /vol/minix/frans # # existing files will NOT be overwritten unless -c is specified # # This shar contains: # length mode name # ------ ---------- ------------------------------------------ # 316 -rw-r--r-- device.cdiff # # ============= device.cdiff ============== if test -f 'device.cdiff' -a X"$1" != X"-c"; then echo 'x - skipping device.cdiff (File already exists)' else echo 'x - extracting device.cdiff (Text)' sed 's/^X//' << 'SHAR_EOF' > device.cdiff && *** prev/fs/device.c Sat Oct 6 22:37:48 1990 --- new/fs/device.c Wed Oct 17 23:27:00 1990 *************** *** 54,59 **** --- 54,60 ---- X /* This procedure can be used when a special file needs to be closed. */ X X find_dev(dev); + dev_mess.DEVICE = dev; X (*dmap[major].dmap_close)(task, &dev_mess); X } X SHAR_EOF chmod 0644 device.cdiff || echo 'restore of device.cdiff failed' Wc_c="`wc -c < device.cdiff`" test 316 -eq "$Wc_c" || echo 'device.cdiff: original size 316, current size' "$Wc_c" fi exit 0 --