From owner-freebsd-questions Mon Jul 17 10:56:40 1995 Return-Path: questions-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id KAB13296 for questions-outgoing; Mon, 17 Jul 1995 10:56:40 -0700 Received: from mail.rwth-aachen.de (mail.RWTH-Aachen.DE [137.226.144.9]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id KAA13290 for ; Mon, 17 Jul 1995 10:56:34 -0700 Received: from gilberto.physik.rwth-aachen.de by mail.rwth-aachen.de (PMDF V4.3-10 #7297) id <01HSZLXZG1Z40040J6@mail.rwth-aachen.de>; Mon, 17 Jul 1995 19:56:34 +0100 Received: (from kuku@localhost) by gilberto.physik.rwth-aachen.de (8.6.8/8.6.9) id UAA18016; Mon, 17 Jul 1995 20:09:04 +0200 Date: Mon, 17 Jul 1995 20:09:04 +0200 (MET DST) From: Christoph Kukulies Subject: Re: Increase swap Q In-reply-to: from "Brian Handy" at Jul 17, 95 11:28:57 am To: handy@condor.physics.montana.edu (Brian Handy) Cc: freebsd-questions@freefall.cdrom.com (user alias) Reply-to: Christoph Kukulies Message-id: <199507171809.UAA18016@gilberto.physik.rwth-aachen.de> X-Mailer: ELM [version 2.4 PL23] Content-type: text Content-transfer-encoding: 7BIT Content-length: 1921 Sender: questions-owner@FreeBSD.org Precedence: bulk > > > 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-