- sudo dd if=/dev/zero of=/swap_file bs=1M count=1000
- sudo chown root:root /swap_file
- sudo chmod 600 /swap_file
- sudo mkswap /swap_file
- sudo swapon /swap_file
- sudo gedit /etc/fstab
- /swap_file none swap sw 0 0
Comments:
- create a file named "swap_file" with size 1000MB
- change the ownership to "root"
- change the access so that it can be read and write by owner only
- make it be to "swap" type
- turn on the swap
- edit the sytem file so that the swap is mounted when system is started
0 comments:
Post a Comment