Skip to main content
5 events
when toggle format what by license comment
Jun 27, 2019 at 17:44 comment added Sõber Upvoted this answer because it is the shortest and does the job. However, swapfile chmod 600 command should be added.
Feb 5, 2016 at 20:38 comment added Mike Purcell Can confirm this works on a t2.micro instance. I did mine @ /mnt/swap though as I like a clean root.
Feb 4, 2016 at 15:10 comment added David Levesque @Hussain It will create the swap in the root filesystem since the path is /swapfile. But you could also mount another filesystem and create the swap file there, e.g. /mnt/blah/swapfile.
Feb 4, 2016 at 6:19 comment added Hussain But from which of my filesystem it will take the space to create Swap?
Jun 18, 2013 at 16:56 history answered David Levesque CC BY-SA 3.0