*BSD News Article 52411


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!swidir.switch.ch!scsing.switch.ch!news.dfn.de!server2.rz.uni-leipzig.de!news.th-zwickau.de!news.tu-chemnitz.de!irz401!uriah.heep!not-for-mail
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: no mkswap? What kind of silliness is this?
Date: 9 Oct 1995 09:40:52 +0100
Organization: Private FreeBSD site, Dresden.
Lines: 28
Message-ID: <45an6k$1ft@uriah.heep.sax.de>
References: <4569q8$e17@wilbur.hargray.com>
NNTP-Posting-Host: uriah.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

Joe Beiter <jwb@wilbur.hargray.com> wrote:
>
>I want to increase my swap from 20MB to 60MBs. I have plenty of room at 
>the end of the disk. I used fdisk to make it larger...
>
>now.... how do I turn it on?!?
>
>There is no mkswap to change it.. if you do it with disklabel its certainly
>not obvious from the man page.

Remember: BSD stems from an environment without things like fdisk and
its "super-partitioning" scheme we call "slices" (as opposed to the
BSD partitions).

Hence, the disklabel is _the_ partitioning scheme from the inner BSD
view.  Therefore, you have to convince the disklabel to extend your
swap.

Is it in the same slice as previously?  In this case, you only have to
extend the "b" partition (swap) and the "c" partition (entire slice
[or disk for a non-sliced [fdisk not used]] disk).

If it's a different slice, you have to create a new label for it.
-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)