Michael C. Toren on Wed, 21 Nov 2001 13:14:39 -0500


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] two questions...


> 	1) Is there a way for me to increase my swap partitions without having to 
> delete existing partitions? (i.e. "grow" and "shrink" partitions)

You can use a swapfile rather than a swap partition; there's a slight
performance hit, but it can be useful if repartitioning is inconvenient.
To create a 64M swapfile under /var, try something along the lines of:

    dd if=/dev/zero of=/var/local/SWAP1 bs=1k count=$((64*1024))
    chown root.root /var/local/SWAP1
    chmod 0600 /var/local/SWAP1
    mkswap /var/local/SWAP1
    swapon /var/local/SWAP1

You'll probably also want to mention /var/local/SWAP1 in your /etc/fstab
so that it's activated each time you boot.

Good luck,

-mct