From owner-freebsd-questions Sat Aug 9 10:03:43 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id KAA02242 for questions-outgoing; Sat, 9 Aug 1997 10:03:43 -0700 (PDT) Received: from sand.sentex.ca (sand.sentex.ca [206.222.77.6]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id KAA02234 for ; Sat, 9 Aug 1997 10:03:36 -0700 (PDT) Received: from gravel (gravel.sentex.ca [205.211.165.210]) by sand.sentex.ca (8.8.6/8.8.3) with SMTP id NAA05011 for ; Sat, 9 Aug 1997 13:09:53 -0400 (EDT) Message-Id: <3.0.2.32.19970809130127.00b09d80@sentex.net> X-Sender: mdtancsa@sentex.net X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.2 (32) Date: Sat, 09 Aug 1997 13:01:27 -0400 To: questions@freebsd.org From: Mike Tancsa Subject: changing a partition to swap, is this OK ? Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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) *