Announcement

Collapse
No announcement yet.

Create Linux Swap File

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Create Linux Swap File

    Code:
    dd if=/dev/zero of=/swapfile1 bs=1024 count=4194304 (choose the proper size, this may need to go up or down ask Rob)
    chown root:root /swapfile1
    chmod 0600 /swapfile1
    mkswap /swapfile1
    swapon /swapfile1
    Code:
    nano -w /etc/fstab
    add to file:

    Code:
    /swapfile1 none swap sw 0 0
Working...
X