*BSD News Article 78326


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!solace!news.stealth.net!news.ibm.net.il!arclight.uoregon.edu!dispatch.news.demon.net!demon!awfulhak.demon.co.uk!awfulhak.demon.co.uk!awfulhak.demon.co.uk!not-for-mail
From: brian@awfulhak.demon.co.uk (Brian Somers)
Newsgroups: comp.unix.bsd.freebsd.misc,comp.unix.bsd.386bsd.misc,comp.unix.bsd.netbsd.misc,comp.unix.bsd.misc
Subject: Re: increase swap space
Followup-To: comp.unix.bsd.freebsd.misc,comp.unix.bsd.386bsd.misc,comp.unix.bsd.netbsd.misc,comp.unix.bsd.misc
Date: 14 Sep 1996 12:54:23 +0100
Organization: Coverform Ltd.
Lines: 26
Message-ID: <51e6df$i8@anorak.coverform.lan>
References: <519a9q$5ce@brutus.teleteam.net> <519bmf$hhn@newsbr.eunet.fr>
NNTP-Posting-Host: localhost.coverform.lan
X-NNTP-Posting-Host: awfulhak.demon.co.uk
X-Newsreader: TIN [version 1.2 PL2]
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:27306 comp.unix.bsd.386bsd.misc:1127 comp.unix.bsd.netbsd.misc:4603 comp.unix.bsd.misc:1335

Eric Feillant (Eric.Feillant@EUnet.fr) wrote:
: elo'

: In article <519a9q$5ce@brutus.teleteam.net>, griffin@brutus.teleteam.net 
: says...
: >
: >Is there anyway to increase the swap space on an existing disk without having
: >to newfs the whole disk. We are using a 9gig disk that is split into three
: >filesystems. One of the filesystems is 8gig and we would like to use some 
: >for swap space. 
: >
: >
: >thanks
:  swapinfo to see the swap space
:  swapon to install new swap space from a disk.

You can't reduce the filesystem size easily, but you can create a file on
your 8Gb partition w/

    dd if=/dev/zero of=/my8gbdisk/swapfile bs=1048576 count=100

(for a 100Mb file) and then use vnconfig and swapon.

--
Brian <brian@awfulhak.demon.co.uk>
Don't _EVER_ lose your sense of humour....