Skip to content

Instantly share code, notes, and snippets.

@NatpakalJAM
Created April 5, 2019 08:30
Show Gist options
  • Select an option

  • Save NatpakalJAM/c2b4f3adc38c984061ef3decfbb4ba94 to your computer and use it in GitHub Desktop.

Select an option

Save NatpakalJAM/c2b4f3adc38c984061ef3decfbb4ba94 to your computer and use it in GitHub Desktop.

Revisions

  1. NatpakalJAM revised this gist Apr 5, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions Extend_your_RAM_by_adding_a_swap.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    Extend your RAM by adding a swap file: [](http://www.cyberciti.biz/faq/linux-add-a-swap-file-howto/)
    Extend your RAM by adding a swap file: [linux-add-a-swap-file-howto](http://www.cyberciti.biz/faq/linux-add-a-swap-file-howto/)

    a swap file is a file stored on the computer hard drive that is used as a temporary location to store information that is not currently being used by the computer RAM. By using a swap file a computer has the ability to use more memory than what is physically installed in the computer http://www.computerhope.com/jargon/s/swapfile.htm
    a swap file is a file stored on the computer hard drive that is used as a temporary location to store information that is not currently being used by the computer RAM. By using a swap file a computer has the ability to use more memory than what is physically installed in the computer [swapfile](http://www.computerhope.com/jargon/s/swapfile.htm)

    In Short:

  2. NatpakalJAM created this gist Apr 5, 2019.
    25 changes: 25 additions & 0 deletions Extend_your_RAM_by_adding_a_swap.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    Extend your RAM by adding a swap file: [](http://www.cyberciti.biz/faq/linux-add-a-swap-file-howto/)

    a swap file is a file stored on the computer hard drive that is used as a temporary location to store information that is not currently being used by the computer RAM. By using a swap file a computer has the ability to use more memory than what is physically installed in the computer http://www.computerhope.com/jargon/s/swapfile.htm

    In Short:

    Login as root: su - or execute the commands with sudo in front

    1. dd if=/dev/zero of=/swapfile1 bs=1024 count=524288

    2. mkswap /swapfile1

    3. chown root:root /swapfile1

    4. chmod 0600 /swapfile1

    5. swapon /swapfile1

    Now the swap file will be activated temporarily, but will be gone after reboot. You should have enough RAM for your installing process

    To Remove the File:

    1. swapoff -v /swapfile1

    2. rm /swapfile1