[LUAU] swap

Myles Uyema myles at uyema.net
Mon Mar 29 10:53:16 PST 1999


On Mon, 29 Mar 1999, David C. Eason, Jr. wrote:

> Is there any way to make a swap partition after you've been running the
> syste for a while, apparently I forgot to make one last year when I first
> installed slack.

Hopefully you've still got some free partitioning space.
Otherwise, you can make a swap FILE.

dd if=/dev/zero of=/var/swapfile bs=1M count=96
this command creates a 96 meg empty file /var/swapfile

Then you will initialize it as a swapfile with:
mkswap /var/swapfile
swapon /var/swapfile

You may need to add swapon /var/swapfile to your startup scripts.

I haven't tested whether you can add swapfiles to /etc/fstab.

Myles

--
     __   __  __________  __
    / /  / / / / __  / / / /  Home Page: http://luau.hi.net
   / /__/ /_/ / /_/ / /_/ /
  /____/\____/_/ /_/\____/  LUAU - Linux Users AnonymoUs - Hawaii

   To unsubscribe: echo unsubscribe luau | mail majordomo at luau.hi.net
           LUAU meetings are the 3rd Tuesday of each month 6pm



More information about the LUAU mailing list