Date: Wed, 4 Feb 2004 22:27:45 +0200 From: Ion-Mihai Tetcu <itetcu@apropo.ro> To: David Banning <david+dated+1076356567.15d177@skytracker.ca> Cc: questions@freebsd.org Subject: [FAQ]Re: using a separate drive for swap Message-ID: <20040204222745.37ee6f3c@it.buh.cameradicommercio.ro> In-Reply-To: <20040204195605.GA61146@skytrackercanada.com> References: <20040204195605.GA61146@skytrackercanada.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 4 Feb 2004 14:56:05 -0500
David Banning <david+dated+1076356567.15d177@skytracker.ca> wrote:
> I have been running out of swap space on my box.
>
> I had an old 6.4 drive around which I thought would be
> useful to add - just for swap - even if it's overkill.
>
> The installation wants a root mount point.
Don't understand.
> Is that
> necessary? I even tried to put a limited / root of
> 61 meg just to make it happy but it still gave errors.
What about checking {Handbook, FAQ, man, Google} before posting ?
www.frrebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#ADD-SWAP-SPACE
> Is there an easy way to do this?
Replace ad3s1 with your disk:
bsdlabel -w -n ad3s1 | sed '/a:/s/16/0/; /a:/s/unused/swap/; /a:/s/a:/b:/;' > /tmp/mylabel
bsdlabel -R ad3s1 /tmp/mylabel
swapon /dev/ad3s1b
echo '/dev/ad3s1b none swap sw 0 0' >> /etc/fstab
--
IOnut
Unregistered ;) FreeBSD user
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040204222745.37ee6f3c>
