Extend swap file on Ubuntu
Sometimes happen that you need to extend the swap space on your system, so it happens to me when i tried to install Oracle10ex on my ubuntu system.
So i found the solution on this ubuntu forum : http://ubuntuforums.org/showthread.php?t=89782
To extend the swap file to 1gb :
First, create a large empty file:
Code:
Replace 1000 with the size of the swap file desired, in MB. You can also put the swap_file in a different location if desired. Next, we’ll secure the swapspace, so ordinary users cannot read the contents (potential security breach): Code:
Then, turn it into swap space: Code:
Next, turn it on: Code:
To make it turn on at every bootup, open up /etc/fstab: Code:
Add this line to the end of the file: Code:
|
||||||||||||
I know that this article is only a copy of a forum but only for more simple search and report.
bye ivan |