Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Jul 1995 20:09:04 +0200 (MET DST)
From:      Christoph Kukulies <kuku@gilberto.physik.rwth-aachen.de>
To:        handy@condor.physics.montana.edu (Brian Handy)
Cc:        freebsd-questions@freefall.cdrom.com (user alias)
Subject:   Re: Increase swap Q
Message-ID:  <199507171809.UAA18016@gilberto.physik.rwth-aachen.de>
In-Reply-To:  <Pine.BSF.3.91.950717112345.481B-100000@condor.physics.montana.edu> from "Brian Handy" at Jul 17, 95 11:28:57 am

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> 
> Well...I'm still paying for my ignorance when I installed 2.0.5.  My swap 
> space is way WAY too small.  I have 24 MB of ram, and the disk partitions 
> look like this (240 MB hard drive):
> 
> Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
> /dev/wd0a       22823    12488     8509    59%    /
> /dev/wd0s4e    179342   121801    43193    74%    /usr
> procfs              4        4        0   100%    /proc
> 
> Yep...that's a big 4K for swap.

Er, er.
type swapinfo or disklabel -r wd0

> 
> So...after noting that little problem, I then note I'm short on disk space
> by about 40 MB.  It appears I've configured away a large chunk of my disk. 
> The whole disk is (supposed to be) FreeBSD. 
> 
> SO....my question was about to be 'how do I make a larger swapfile', but I
> have a feeling it's deeper than that.  How can I figure out where the rest
> of my disk went, and any suggestions for how to reclaim it short of
> rebuilding the system? 
> 
> Furthermore...I'm a little vague on adding swapfiles.  Specifically, 
> I have an old e-mail that says to generate the swapfile do something like:
> 
>               dd if=/dev/zero of=/tmp/swapfile
                                                   ^^^^^^^^ ^^^^^^^^
                                                   bs=1024k count=32 
for a 32 MB swap file

then

vnconfig /dev/vn0 /tmp/swapfile swap
swapon /dev/vn0


> 
> ...what's /dev/zero?  This is new to me.  Anyway, this starts building a 

/dev/zero - a null source

> file that increases without bound until the disk is full.  How can I 
> generate a swapfile of some specific size?  I haven't found anything in 
> the mail archives that explained this in the Fisher-Price tone of voice I 
> need to hear.
> 
> Thanks!
> 
> Brian Handy
> 
> 

--Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de
FreeBSD blues.physik.rwth-aachen.de 2.0-BUILT-19950701 FreeBSD 2.0-BUILT-



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