author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Wed, 05 Aug 2015 23:55:34 +0300 | |
changeset 1729 | 22ffd80639c0 |
parent 899 | 7b4265c8d324 |
permissions | -rw-r--r-- |
899
7b4265c8d324
Set fill-column as directory local var.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
735
diff
changeset
|
1 |
-*- mode: outline; coding: utf-8; -*- |
154 | 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 |