Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| howto:create_swap_at_linux [2014/09/09 16:36] – created yehuda | howto:create_swap_at_linux [2022/01/03 16:03] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 9: | Line 9: | ||
| dd if=/ | dd if=/ | ||
| + | # Make swap | ||
| mkswap $SWAP_FILE | mkswap $SWAP_FILE | ||
| + | |||
| + | # Security | ||
| chown root:root $SWAP_FILE | chown root:root $SWAP_FILE | ||
| chmod 0600 $SWAP_FILE | chmod 0600 $SWAP_FILE | ||
| + | |||
| + | # Swap enable | ||
| swapon $SWAP_FILE | swapon $SWAP_FILE | ||
| + | # Add to fstab to auto start | ||
| echo " | echo " | ||
| + | # Check if you have new | ||
| free -m | free -m | ||
| </ | </ | ||