*BSD News Article 79124


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!nntp.coast.net!news.sgi.com!news-peer.gsl.net!news.gsl.net!news.mathworks.com!uunet!in2.uu.net!news.gtn.com!klemm.gtn.com!usenet
From: andreas@klemm.gtn.com (Andreas Klemm)
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
Date: 25 Sep 1996 07:21:52 GMT
Organization: FreeBSD makes fun
Lines: 35
Message-ID: <52amig$nu@klemm.gtn.com>
References: <519a9q$5ce@brutus.teleteam.net> <519bmf$hhn@newsbr.eunet.fr>
    <51e6df$i8@anorak.coverform.lan>
NNTP-Posting-Host: klemm.gtn.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:27932 comp.unix.bsd.386bsd.misc:1133 comp.unix.bsd.netbsd.misc:4648 comp.unix.bsd.misc:1356

In article <51e6df$i8@anorak.coverform.lan>,
	brian@awfulhak.demon.co.uk (Brian Somers) writes:
> 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.


To use this swap file via vnconfig and swapon he has certainly
to compile and install a new kernel, where the vnode drivers is
enabled.

cd /sys/i386/conf
edit your kernel config file or copy GENERIC to SOMENAME
edit somename and add the line

pseudo-device   vn              #Vnode driver (turns a file into a device)
config SOMENAME
cd ../../compile/SOMENAME
time make depend all

If a new kernel was linked, then you can install it via make install.
The old kernel is saved as /kernel.old and can be booted in case
of trouble ...

That's it.


-- 
andreas@klemm.gtn.com         /\/\___      Wiechers & Partner Datentechnik GmbH
   Andreas Klemm          ___/\/\/         Support Unix -- andreas.klemm@wup.de
pgp p-key  http://www-swiss.ai.mit.edu/~bal/pks-toplev.html  >>> powered by <<<
ftp://sunsite.unc.edu/pub/Linux/system/Printing/aps-491.tgz  >>>    FreeBSD <<<