Trashed Disk Labels Under Sun OS 3.5

Chris Torek chris at mimsy.UUCP
Thu Aug 10 11:18:31 AEST 1989


In article <5253 at wiley.UUCP> trwarcadia!simpson at usc.edu (Scott Simpson) writes:
>How come when I mount all of the disk as swap or anything in an 'a'
>partition on a local Micropolis 1355 disk connected to one of our
>clients the disk label gets trashed?

SunOS starts swap space at sector 0 of the swapon partition.  The label
is in disk sector 0.  Thus, SunOS will swap on top of the label if the
partition begins at disk sector 0.

4.3BSD-tahoe starts swap space at sector CLSIZE of the swapon
partition, so it never overwrites the first sector (since CLSIZE is at
least 1).  See /sys/sys/vm_swap.c, routine swfree() (when dvbase==0).
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain:	chris at mimsy.umd.edu	Path:	uunet!mimsy!chris



More information about the Comp.unix.wizards mailing list