I was trying to add a third SCSI HD to the RISCiX box I've been messing aroung with under Arculator the other day, and found it wasn't quite as straightforward as I'd expected.
I'm not going to get into how to create and format a new disc partition (here), but if you have a second drive attached that contains a valid mountable partition, you can mount it without any hassle with
Code: Select all
mount /dev/sd1a /mnt
If you have a third drive you want to mount, trying to do:
Code: Select all
mount /dev/sd2a /mnt2
Code: Select all
mount: /dev/sd2a on /mnt2: No such file or directory. Mount giving up on /mnt2
The man page entry for mknod is somewhat less than helpful though. It says "The assignment of major device numbers is specific to each system. They have to be dug out of the system source file conf.c."
I found conf.c in the Victoria University RISCiX backup, which helped a little...coupled with some professional guesswork
Given the SCSI ID 0 parition 0 block device is defined by MAKEDEV as major device 12 and minor device 0, and its raw (character) equivalent is major device 21 minor device, I reckoned SCSI ID 1 would be 13/0 and 22/0. So for SCSI ID 2 I tried:
Code: Select all
cd /dev
mknod sd2a b 14 0
chmod 640 sd2a
chgrp operator sd2a
mknod rds2a c 23 0
chmod 640 rsd2a
chgrp operator rsd2a
mount /dev/rsd2a /mnt
I've not tried it yet, but this shoud be repeatable for other partitions, drives etc. sd2b/rsd2b should be 14/1 and 23/1, sd3a/rsd3a would be 15/0 and 24/0 etc.
PS Additionaly SCSI drives don't need to be *configured on the RISC OS side.