[comp.sys.apollo] SR10.1.p only bsd disk device is /dev/wn0a

e07@nikhefh.nikhef.nl (Eric Wassenaar) (12/18/89)

If I want to partition my disk into several logical volumes,
I need to have device entries like /dev/wn0b, /dev/wn0c, etc.
If I have more than one disk and more than one disk controller,
I need to have device entries like /dev/wn1a, /dev/wn1b, etc.

I want to say '/etc/mount -avt 4.3' to mount all devices
mentioned in /etc/fstab, instead of using /com/mtvol.

None of this seems to be possible in the bsd environment.
I cannot find information how to 'mknod' such disk devices.

Showing my mounted disks after /com/mtvol yields the strange
	/dev/wn0a on / type 4.3 (rw)
	/dev/dsk/W0d1s1 on /shiva2 type AEG (rw)
and the df listing has its own non-bsd naming conventions
	Filesystem    kbytes    used   avail capacity  Mounted on
	  1d858.1    1367480  311552 1055928    23%    /
	  1d858.2    1367480 1118560  248920    82%    /shiva2

Eric Wassenaar
-- 
Organization: NIKHEF-H, National Institute for Nuclear and High-Energy Physics
Address: Kruislaan 409, P.O. Box 41882, 1009 DB Amsterdam, the Netherlands
Phone: +31 20 592 0412, Home: +31 20 909449, Telefax: +31 20 592 5155
Internet: e07@nikhef.nl

pcc@apollo.HP.COM (Peter Craine) (12/21/89)

In article <601@nikhefh.nikhef.nl>, e07@nikhefh.nikhef.nl (Eric
Wassenaar) writes:
> If I want to partition my disk into several logical volumes,
> I need to have device entries like /dev/wn0b, /dev/wn0c, etc.
> If I have more than one disk and more than one disk controller,
> I need to have device entries like /dev/wn1a, /dev/wn1b, etc.
> 
> I want to say '/etc/mount -avt 4.3' to mount all devices
> mentioned in /etc/fstab, instead of using /com/mtvol.
> 
> None of this seems to be possible in the bsd environment.
> I cannot find information how to 'mknod' such disk devices.

Do a "man 4 intro" (in BSD).  That will give you the device number
layout.  In short, the minor number =

	(controller # * 128) + (drive # * 16 ) + (Log Vol #)
		UNLESS YOU'RE ON A DN2500

If you're on a dn2500, then the world changes.  There are only two bits
for controller number, and "nobody really has more than 4 drives on a
controller", so, keep the low two bits of the controller number,
put the high bit of the controller # in the high bit of drive #, and 
plug it into the formula above (drive # = 3 bits).  [Oh, what fun!]

I've written a program to do all these calculations and to give you
the appropriate commands.  I'll be posting it soon.


/etc/rc* don't automatically mount 2nd and 3rd disks.  You will
need to write a small script to "salvol -n" your disks, and then
you can do a mount -a.

> 
> Showing my mounted disks after /com/mtvol yields the strange
> 	/dev/wn0a on / type 4.3 (rw)
> 	/dev/dsk/W0d1s1 on /shiva2 type AEG (rw)
> and the df listing has its own non-bsd naming conventions
> 	Filesystem    kbytes    used   avail capacity  Mounted on
> 	  1d858.1    1367480  311552 1055928    23%    /
> 	  1d858.2    1367480 1118560  248920    82%    /shiva2
> 
If you don't use BSD mount, then df (and mount) make up their own
device names.

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Peter Craine                +  You Klingon son, you killed my bastard
    Hewlett-Packard             +
    Chelmsford Response Center  +  *I* don't want my opinions.  Why would HP?