author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Sun, 26 Sep 2010 22:22:02 +0300 | |
changeset 583 | 9f32f2204d33 |
parent 154 | 906b793ee3c3 |
child 735 | 5c437e2d5fe1 |
permissions | -rw-r--r-- |
154 | 1 |
-*- outline -*- |
2 |
||
3 |
* Enable swap in file. |
|
4 |
||
5 |
Create large file and set up a Linux swap area, enable file for paging and swapping: |
|
6 |
||
7 |
$ dd if=/dev/zero of=/swapfile bs=1024 count=524288 |
|
8 |
$ mkswap -v1 /swapfile |
|
9 |
$ sudo swapon /swapfile |
|
10 |
$ sync |
|
11 |
||
12 |
Insure that all fine: |
|
13 |
||
14 |
$ dmesg | tail |
|
15 |
... |
|
16 |
$ cat /proc/swaps |
|
17 |
... |
|
18 |
||
19 |
Add line to /etc/fstab: |
|
20 |
/swapfile swap swap defaults 0 0 |