how to inscrease swap partition to 8gig?
Do you have unpartitioned space on a hard disk?
you can do all this without a reboot:
fdisk /dev/sda
- or whatever the device path is for your hard disk
- create a new partition of 8 GB, or however much you want to use
mkswap -L "newswap" /dev/sda1
- or whichever partition you use for swap
swapon LABEL=newswap
vi /etc/fstab
- update fstab to mount the new swap partition by label, so that it will be there on next reboot
If you are using LVM or don't have any unpartitioned space things will be a little different. You can use LVM tools to resize partitons, or as others noted, something like gparted. Hope this helps.