Subject: Re: How to add swap file -- Re: Network slowness
To: None <port-pmax@NetBSD.ORG>
From: Toru Nishimura <nisimura@is.aist-nara.ac.jp>
List: port-pmax
Date: 01/14/1998 09:08:19
In article <199801131313.IAA04754@ren.globecomm.net>
afritz@iname.com wrote

>> root@eagle:~# swapctl -s
>> total: 132090k bytes allocated = 4k used, 132086k available
>> 
>> root@eagle:~# disklabel /dev/rz2
>> # /dev/rz2c:
>>
>> [ ...snip...] 
>>
>> 8 partitions:
>> #        size   offset    fstype   [fsize bsize   cpg]
>> a:    65860        0      4.2BSD     1024  8192    16   # (Cyl.  0 - 88)
>> c:  4254819        0      unused        0     0         # (Cyl.  0 - 5749*)
>> # ^^^^ Why doesn't the b partition show up here ^^^^
>> 
>> root@eagle:~# cat /etc/fstab
>> /dev/rz2a / ffs rw 1 1
>> /dev/rz2b none swap sw 0 0
>> /dev/rz2d /usr ffs rw 1 2
>> /kern /kern kernfs rw
>> 
>> [ ...snip...] 
>>
>> I don't understand why the b partition doesn't show up in the disklabel.

Rewrite the disklabel.

	# /sbin/disklabel rz2 > YOUR_LABEL
	[ ... edit it as you really wanted ...]
	# /sbin/disklable -R rz2 YOUR_LABEL

And rerun /sbin/disklabel rz2, and check whether the output matches what
you want.

Tohru Nishimura
Nara Institute of Science and Technology