rami.info



Adding Swap Files Under FreeBSD

Posted in by Rami on the February 20th, 2005

Adding Swap Files [FreeBSD]

  1. Edit your kernel file and add the following line:

    pseudo-device vn

  2. Compile the kernel and reboot.

  3. Create the swap file by typing:

    dd if=/dev/zero of= bs=m count=10

  4. Create /etc/vntab and add the following to it:

    /dev/vn0c swap

  5. To add the swap file type:

    vnconfig -ae

  6. Create /usr/local/etc/rc.d/vnconfig.sh so the swap file would be added automatically at bootup and add the following:

    /usr/sbin/vnconfig -ae

Leave a Reply