[comp.unix.aux] Help with A/UX 1.1 on 3rd Party drive

lenoirjw@INGR.COM (Billy Lenoir) (06/05/90)

I am having a little problem with my installation of A/UX.  I have it installed
on a 3rd party hard drive with the X11R4 installed.  Anytime I run Xwindows
my MacOS partition is wiped out.  I suspect that A/UX is using it for swap
space!?!  The swap partition is set up as:

DPM Index: 5
Name: "Swap", Type: "Apple_UNIX_SVR2"
Physical: 34068 @ 604941, Logical: 34068 @ 0
Status:
	valid	alloc	in_use	not boot
	read	write
Swap File System (3) (critical)
Cluster:   0	Type: SFS	Inode: 1
Made: [0] Wed Dec 31 18:00:00 1969
Mount: [0] Wed Dec 31 18:00:00 1969
Umount: [0] Wed Dec 31 18:00:00 1969
No AltBlk map

The only information that I can find on which partition is actually being
used is from "swap -l":

path            dev  swaplo blocks   free
/dev/dsk/c4d0s128,1       0  28672  28672

This doesn't appear to be the correct size for the Swap partition or the MacOS
partition, and I don't know what the device name is for.  Is there anything
that I'm missing?  I'm sure I don't need to tell you what a pain it is to 
lose the HD every time I run X11R4 (which is never, now)


-- 
*******************************************************************************
  Signature Almost                  uucp : ...!uunet!ingr!b10!lenoir!lenoirjw
     Complete                   Internet :  lenoirjw@INGR.COM

kr@asacsg.mh.nl (Koos Remigius) (06/06/90)

In article <167@cis9.INGR.COM>, lenoirjw@INGR.COM (Billy Lenoir) writes:
> I am having a little problem with my installation of A/UX.  I have it installed

> 
> DPM Index: 5
> Name: "Swap", Type: "Apple_UNIX_SVR2"
> Physical: 34068 @ 604941, Logical: 34068 @ 0
> Status:
> 	valid	alloc	in_use	not boot
> 	read	write
> Swap File System (3) (critical)
>
> The only information that I can find on which partition is actually being
> used is from "swap -l":
> 
> path            dev  swaplo blocks   free
> /dev/dsk/c4d0s128,1       0  28672  28672
> 
It seems your kernel parameter SWAPCNT is less than your swappartition
on your drive.
To set the parameter do as follows:

Go to Single User.
Enter the following lines:

	kconfig -n /unix
	SWAPCNT=34068
	<Control-D>

	sync
	sync
	sync
	reboot

This will reboot the kernel with the correct SWAPCNT size.

Hope this will solve your problem.

regards,
Koos Remigius



-- 
Koos Remigius				      kr@mh.nl via internet backbones
Asac Nederland B.V		              uucp: ..!{uunet,hp4nl}!mh.nl!kr
Coencoop 7, 2741 PG Waddinxveen,  The Netherlands
-------------------- "Still crazy after all this years" ---------------------

liam@cs.qmw.ac.uk (William Roberts) (06/06/90)

In <167@cis9.INGR.COM> lenoirjw@INGR.COM (Billy Lenoir) writes:

>I am having a little problem with my installation of A/UX.  I have it installed
>on a 3rd party hard drive with the X11R4 installed.  Anytime I run Xwindows
>my MacOS partition is wiped out.  I suspect that A/UX is using it for swap
>space!?!  The swap partition is set up as:

>DPM Index: 5
>Name: "Swap", Type: "Apple_UNIX_SVR2"
>Physical: 34068 @ 604941, Logical: 34068 @ 0
>Status:
>       valid   alloc   in_use  not boot
>       read    write
>Swap File System (3) (critical)
>Cluster:   0   Type: SFS       Inode: 1
>Made: [0] Wed Dec 31 18:00:00 1969
>Mount: [0] Wed Dec 31 18:00:00 1969
>Umount: [0] Wed Dec 31 18:00:00 1969
>No AltBlk map

>The only information that I can find on which partition is actually being
>used is from "swap -l":

>path            dev  swaplo blocks   free
>/dev/dsk/c4d0s128,1       0  28672  28672

>This doesn't appear to be the correct size for the Swap partition or the MacOS
>partition, and I don't know what the device name is for.  Is there anything
>that I'm missing?  I'm sure I don't need to tell you what a pain it is to
>lose the HD every time I run X11R4 (which is never, now)

The number 28672 is the size wired into the Kernel to tell it
how big the swap partition is - since 34068 > 28672 you aren't
running off the end (the SCSI driver prevents you from doing
that anyway, so swap isn't the reason why you are trashing your
Mac partition).

The size of swap is set using kconfig on /unix (and /newunix if
you want it to persist across autoconfiguration) - check the
manual page for details. This little irritation is fixed in
A/UX 2.0 where the kernel manages to read the partition map to
find out the size of swap...

It would be helpful to see the complete output of dp, and the
output of kconfig -va /unix; I'll read the entrails if you care
to mail them to me (summary of answers to the net of course).
-- 

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

name@portiaStanford.EDU (tony cooper) (06/07/90)

In article <2337@sequent.cs.qmw.ac.uk>, liam@cs.qmw.ac.uk (William
Roberts) writes:
> In <167@cis9.INGR.COM> lenoirjw@INGR.COM (Billy Lenoir) writes:
> 
> >I am having a little problem with my installation of A/UX.  I have it
installed
> >on a 3rd party hard drive with the X11R4 installed.  Anytime I run Xwindows
> >my MacOS partition is wiped out.  I suspect that A/UX is using it for swap
> >space!?!  The swap partition is set up as:
> 
> It would be helpful to see the complete output of dp, and the
> output of kconfig -va /unix; I'll read the entrails if you care

Yes, we need more information on this one. What do you mean by "wiped out"?
Is the partition still there but the data in it is trash? Or do you have
to repartition the drive again? It seems doubtful that swap space is
overflowing since X Windows has to be really pushed hard to use more than
15 thousand blocks (I have seven windows and 5 X applications plus 3 xterms
right now and using 8000 blocks). It seems doubtful that A/UX is deliberately
doing anything to the MacOS partitions since it ignores them completely
(under A/UX 1.1 that is). And does the wiping out happen everytime or just
sometimes?

Cheers,
Tony Cooper
tony@popserver.stanford.edu

liam@cs.qmw.ac.uk (William Roberts) (06/08/90)

In <1990Jun7.030853.22479@portia.Stanford.EDU> name@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@cs.qmw.ac.uk
Queen Mary & Westfield College  UUCP: liam@qmw-cs.UUCP
Mile End Road                   AppleLink: UK0087
LONDON, E1 4NS, UK              Tel:  071-975 5250 (Fax: 081-980 6533)