author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Wed, 17 Mar 2010 15:24:36 +0200 | |
changeset 347 | 8ae88e9dd05d |
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 |