Help with A/UX 1.1 on 3rd Party drive

William Roberts liam at cs.qmw.ac.uk
Fri Jun 8 06:47:26 AEST 1990


In <1990Jun7.030853.22479 at portia.Stanford.EDU> name at portiaStanford.EDU (tony cooper) writes:

>It seems doubtful that swap space is overflowing ...

I repeat, it is DEFINITELY NOT SWAP that is overwriting other
parts of the disk unless the partitions defined in the
partition map actually overlap.

The pname'ing of a disk partition (which happens automatically
for swap) is effectively initialising a translation function
from sectors requested of that particular A/UX device (in this
case 24,1) and physical sector requests over the SCSI bus.
There is range checking, and silly values are ignored: for
example

        dd if=/dev/dsk/c0d0s1 of=/dev/null

will stop after the number of blocks defined to be in the swap
partition according to the partition map, as will the (probably
lethal)

        dd if=/dev/dsk/c0d0s0 of=/dev/dsk/c0d0s1

[[ Remember children - don't try this at home* ]]

The value of SWAPCNT that is kconfig'd into the kernel does not
matter: if it is too small then not all of swap will be used,
if it is too big then when you exceed the size that the
partition map allows you will get "process killed due to i/o
error in swap" messages from the kernel.


-------------
* Or if you do, remember to do it single-user and wear a condom.
-- 

William Roberts                 ARPA: liam at cs.qmw.ac.uk
Queen Mary & Westfield College  UUCP: liam at qmw-cs.UUCP
Mile End Road                   AppleLink: UK0087
LONDON, E1 4NS, UK              Tel:  071-975 5250 (Fax: 081-980 6533)



More information about the Comp.unix.aux mailing list