Installing NAT fills hard-drive

Hi again everyone. In an attempt to solve my BSD-router problems described in this thread:
http://forums.freebsd.org/showthread.php?t=19556

I followed the guide at http://freebsd.rogness.net/redirect.cgi?basic/nat.html and did the following:

Code:
cd /sys/amd64/conf
cp GENERIC LOCAL
nano LOCAL
added line options IPDIVERT
config LOCAL

cd ../compile/LOCAL
make depend && make && make install

which proceeded with filling my hard-drive.
After that I figured that the default partition of the BSD installer was a bit cramped so I stayed up all night reinstalling BSD and trying again which gave me the same problemx(.

Can anyone tell me how to safely delete the superfluous files without taking an important chunk out of the file-system, and how to actually install NAT?
 
When talking about superfluous files I ment the files created by the wonky installation guide I followed (should have chosen my words better, sorry about that). I followed that guide because I found it in a thread here related to the things I had problems with and figured I'd give it a shot ( after all, I've been having problems for a good while and random googling hasn't yielded much).

I have reinstalled BSD again on a much smaller drive now (1.8" 30GB toshiba ZIF-drive) to get the noise level down (and awesomeness) and I'm gonna give the official info a go. Thanks everyone for the links, I'll keep you posted! :)
 
I suspect the problem here is that your root partition is too small for your NAT-enabled kernel to be installed.

The default partition layout created by sysinstall currently only allocates 512MB to /, and with the amd64 GENERIC kernel plus debugging symbols adding up to 261MB, you're not going to have space to install a second similar kernel.

You can free up space in your root partition by removing *.symbols files from existing kernel directories (/boot/kernel, /boot/GENERIC), and you can avoid creating these files when you build new kernels by commenting out the following line in your kernel config file:

Code:
makeoptions    DEBUG=-g
 
Back
Top