Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 09 Aug 1997 13:01:27 -0400
From:      Mike Tancsa <mike@sentex.net>
To:        questions@freebsd.org
Subject:   changing a partition to swap, is this OK ?
Message-ID:  <3.0.2.32.19970809130127.00b09d80@sentex.net>

next in thread | raw e-mail | index | archive | help

Since upgrading to our news server to 2.2-STABLE, I have run out of swap
space a couple of times.  Its a Pentium 133 with 128meg of RAM and 128meg
of swap space, and previously the 2.1.5 system running with the same RAM
and swap never ran out of swap space.   On one of my newsspool drives, I
have been using it for the misc.* hierarchy.  I dont have any more room in
the box to add another drive just yet, so as a temp measure, I was thinking
of reclaiming a partition. Disklabel shows the following


# /dev/rsd2c:
type: SCSI
disk: sd2s1
label:
flags:
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 2062
sectors/unit: 4224992
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0

8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  c:  4224992        0    unused        0     0         # (Cyl.    0 - 2062*)
  e:  1228800        0    4.2BSD        0     0     0   # (Cyl.    0 - 599)
  f:  1331200  1228800    4.2BSD        0     0     0   # (Cyl.  600 - 1249)
  g:  1664992  2560000    4.2BSD        0     0     0   # (Cyl. 1250 - 2062*)


Can I just change it via disklabel -e sd2 to 

8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  b:  1228800        0    swap          0     0     0   # (Cyl.    0 - 599)
  c:  4224992        0    unused        0     0         # (Cyl.    0 - 2062*)
  f:  1331200  1228800    4.2BSD        0     0     0   # (Cyl.  600 - 1249)
  g:  1664992  2560000    4.2BSD        0     0     0   # (Cyl. 1250 - 2062*)



Also, I am pretty sure the drive is 5400RPM
Aug  8 10:21:08 flint /kernel: (ahc0:6:0): "IBM DORS-32160 WA0A" type 0
fixed SCSI 2
Aug  8 10:21:08 flint /kernel: sd2(ahc0:6:0): Direct-Access 2063MB (4226725
512 byte sectors)

Does changing the value to 5400 from 3600 have any effect, or is it just
info ?


	---Mike
**********************************************************************
Mike Tancsa  (mike@sentex.net)           * To do is to be  -- Nietzsche
Sentex Communications Corp,              * To be is to do  -- Sartre 
Cambridge, Ontario                       * Do be do be do  -- Sinatra
(http://www.sentex.net/~mdtancsa)        *



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.2.32.19970809130127.00b09d80>