Hi,
If I issue:
disklabel -r dsk4
I get:
8 partitions:
# size offset fstype fsize bsize cpg # ~Cyl values
a: 281250 0 AdvFS # 0 -
124*
b: 2804687 281250 swap # 124*-
1365*
c: 8380080 0 unused 0 0 # 0 -
3707
d: 2623488 532480 unused 0 0 # 235*-
1396*
e: 2623488 3155968 unused 0 0 # 1396*-
2557*
f: 2600624 5779456 unused 0 0 # 2557*-
3707
g: 2580823 3097655 AdvFS # 1370*-
2512*
h: 2700678 5679402 unused 0 0 # 2513*-
3707
partition b has an fstype of 'swap'.
However, if I issue:
swapon -s
I get:
Swap partition /dev/disk/dsk0b (default swap):
Allocated space: 175292 pages (1.34GB)
In-use space: 1 pages ( 0%)
Free space: 175291 pages ( 99%)
Swap partition /dev/disk/dsk2b:
Allocated space: 125000 pages (976MB)
In-use space: 1 pages ( 0%)
Free space: 124999 pages ( 99%)
Total swap allocation:
Allocated space: 300292 pages (2.29GB)
Reserved space: 59680 pages ( 19%)
In-use space: 2 pages ( 0%)
Available space: 240612 pages ( 80%)
which only shows dsk0b and dsk2b as being used for swap.
I presume it's ok then go reuse dsk4b for something else. i.e., - does the
output of 'swapon' display more accurately what is being used than a
'disklabel -r'?
Thanks alot!
Andy
===================================================
Andy Cohen
Database Systems Administrator
COGNEX Corporation
(508) 650-3079 Fax: (508) 650-3337
andy.cohen_at_cognex.com www.cognex.com
cell: (617) 470-0034
===================================================
Received on Wed Jun 12 2002 - 21:15:28 NZST