1
0
Fork 0

Merge pull request #9322 from TechnologyClassroom/patch-1

Setting permissions prevents a warning from swapon
pull/9324/head
Jordi Boggiano 2020-10-22 20:45:19 +02:00 committed by GitHub
commit ed127b6dfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -202,6 +202,7 @@ To enable the swap you can use for example:
```sh ```sh
/bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024 /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
/sbin/mkswap /var/swap.1 /sbin/mkswap /var/swap.1
/bin/chmod 0600 /var/swap.1
/sbin/swapon /var/swap.1 /sbin/swapon /var/swap.1
``` ```
You can make a permanent swap file following this [tutorial](https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04). You can make a permanent swap file following this [tutorial](https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04).