Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!um-math!hyc From: hyc@math.lsa.umich.edu (Howard Chu) Newsgroups: comp.os.minix Subject: Re: Hard disk hassles + minix.img format problem Message-ID: <496@stag.math.lsa.umich.edu> Date: 27 Nov 88 14:38:11 GMT References: <5515@louie.udel.EDU> <274@lzaz.ATT.COM> Sender: usenet@math.lsa.umich.edu Reply-To: hyc@math.lsa.umich.edu (Howard Chu) Organization: University of Michigan Math Dept., Ann Arbor Lines: 40 UUCP-Path: {mailrus,umix}!um-math!hyc In article <274@lzaz.ATT.COM> hcj@lzaz.ATT.COM (HC Johnson) writes: >3. The stwini.c, as written, cannot handle more than drive 0 on controller 0. >Changing the NDRIVES to n will not do the job. I wish I knew what problems you were running into... I've just built a new kernel with NDRIVES set to 4, and I can access my additional drives fine. (Granted, I only have TOS partitions on the other drive... And by the way, thanks very much for posting that fixed tos.c. It makes using Minix without a serial driver so much more livable...) Of course, I think there's something a bit flaky with the hard disk naming scheme... Here's a little script I wrote to create hard drive entries in /dev, in what I think is a better style... :::::::::::::::::::::::::::::::: #!/bin/sh # Run with arg1 as number of drive to create. -- hyc N=$1 M=`expr $N '*' 8` for I in 0 a b c d e do J=hd${N}$I; echo $J mknod $J b 3 $M; chmod 600 $J mknod r$J c 3 $M; chmod 600 r$J M=`expr $M + 1` done :::::::::::::::::::::::::::::::: As you can see, it loops over "0 a b c d e" for minor numbers 0-5. I omit 6 and 7 since they don't do anything right now... All it does is create special files named, e.g., hd0a instead of hd1. Makes it easier to keep track of multiple drives, I think. (I have two SCSI drives with embedded controllers, so my system has hd0? and hd2? ... Is there any way to add another drive to one of these Miniscribe embedded controllers?) -- / /_ , ,_. Howard Chu / /(_/(__ University of Michigan / Computing Center College of LS&A ' Unix Project Information Systems