{"id":4386,"date":"2014-07-28T12:16:14","date_gmt":"2014-07-28T12:16:14","guid":{"rendered":"https:\/\/bodhost.com\/kb\/?p=4386"},"modified":"2026-02-26T14:04:31","modified_gmt":"2026-02-26T14:04:31","slug":"increase-swap-file-partition-on-server","status":"publish","type":"post","link":"https:\/\/www.bodhost.com\/kb\/increase-swap-file-partition-on-server\/","title":{"rendered":"Increase swap File Partition on eNlight (or plane Linux Server)"},"content":{"rendered":"<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"225\" height=\"274\" class=\"wp-image-4387\" src=\"https:\/\/bodhost.com\/kb\/wp-content\/uploads\/2014\/07\/enlight-cloud-hosting.png\" alt=\"enlight-cloud-hosting\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n<p>While increasing Swap File on the Server, first you need to check there should be enough free space (larger than new swap size) available on the partition.<\/p>\r\n\r\n\r\n\r\n<p><b>Follow the below steps:<\/b><\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">Step 1:- #dd if=\/dev\/zero of=\/swapfile bs=1024 count=1572864\r\n\r\nThis command is for creating the free space for file \/swapfile to 1.5 GB\r\n\r\nPlease note that count is the block size calculated as (1024 * 1.5)\r\n\r\nStep 2:- #mkswap \/swapfile\r\n\r\nStep 3:- #chown root:root \/swapfile\r\n\r\nStep 4:- #chmod 0600 \/swapfile1\r\n\r\nStep 5:- #swapon \/swapfile1\r\n\r\nStep 6:- #vi \/etc\/fstab\r\n\r\nEnter this at the end of file \"\/swapfile1 swap swap defaults 0 0\"\r\n\r\nStep 7:- # mount -a or\r\n\r\nStep 8:- free -m (check swap file size for your confirmation)\r\n\r\nStep 9:- This has been done Cheers !!!\r\n<\/pre>\r\n\r\n\r\n\r\n<p><strong>Incoming searches related to how to increase swap file size in linux<\/strong><\/p>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>change swap file size linux<\/li>\r\n\r\n\r\n\r\n<li>linux swap file size ubuntu<\/li>\r\n\r\n\r\n\r\n<li>swap partition size linux<\/li>\r\n<\/ul>\r\n","protected":false},"excerpt":{"rendered":"<p>While increasing Swap File on the Server, first you need to check there should be enough free space (larger than new swap size) available on the partition. Follow the below&hellip;<\/p>\n<p><a href=\"https:\/\/www.bodhost.com\/kb\/increase-swap-file-partition-on-server\/\" class=\"more-link\">Read More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[297],"tags":[589,588],"class_list":["post-4386","post","type-post","status-publish","format-standard","hentry","category-faq","tag-change-swap-file-size-linux","tag-swap-partition-size-linux"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Increase swap file partition on eNlight<\/title>\n<meta name=\"description\" content=\"While increasing Swap File on the Server, first you need to check there should be enough free space (larger than new swap size) available on the partition.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.bodhost.com\/kb\/increase-swap-file-partition-on-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Increase swap file partition on eNlight\" \/>\n<meta property=\"og:description\" content=\"While increasing Swap File on the Server, first you need to check there should be enough free space (larger than new swap size) available on the partition.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bodhost.com\/kb\/increase-swap-file-partition-on-server\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowledge Base - bodHOST\" \/>\n<meta property=\"article:published_time\" content=\"2014-07-28T12:16:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-26T14:04:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2014\/07\/enlight-cloud-hosting.png\" \/>\n\t<meta property=\"og:image:width\" content=\"225\" \/>\n\t<meta property=\"og:image:height\" content=\"274\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/increase-swap-file-partition-on-server\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/increase-swap-file-partition-on-server\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/c48414ad1536cea20e85282b0737a9f9\"},\"headline\":\"Increase swap File Partition on eNlight (or plane Linux Server)\",\"datePublished\":\"2014-07-28T12:16:14+00:00\",\"dateModified\":\"2026-02-26T14:04:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/increase-swap-file-partition-on-server\\\/\"},\"wordCount\":67,\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/increase-swap-file-partition-on-server\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2014\\\/07\\\/enlight-cloud-hosting.png\",\"keywords\":[\"change swap file size linux\",\"swap partition size linux\"],\"articleSection\":[\"FAQs\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/increase-swap-file-partition-on-server\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/increase-swap-file-partition-on-server\\\/\",\"name\":\"Increase swap file partition on eNlight\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/increase-swap-file-partition-on-server\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/increase-swap-file-partition-on-server\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2014\\\/07\\\/enlight-cloud-hosting.png\",\"datePublished\":\"2014-07-28T12:16:14+00:00\",\"dateModified\":\"2026-02-26T14:04:31+00:00\",\"description\":\"While increasing Swap File on the Server, first you need to check there should be enough free space (larger than new swap size) available on the partition.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/increase-swap-file-partition-on-server\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/increase-swap-file-partition-on-server\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/increase-swap-file-partition-on-server\\\/#primaryimage\",\"url\":\"https:\\\/\\\/bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2014\\\/07\\\/enlight-cloud-hosting.png\",\"contentUrl\":\"https:\\\/\\\/bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2014\\\/07\\\/enlight-cloud-hosting.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/increase-swap-file-partition-on-server\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"FAQs\",\"item\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/category\\\/faq\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Increase swap File Partition on eNlight (or plane Linux Server)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"alternateName\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"contentUrl\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"width\":240,\"height\":240,\"caption\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/c48414ad1536cea20e85282b0737a9f9\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/51e53199212db3f59606920448d45a6ead224f904558e3ab9251d071a609b202?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/51e53199212db3f59606920448d45a6ead224f904558e3ab9251d071a609b202?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/51e53199212db3f59606920448d45a6ead224f904558e3ab9251d071a609b202?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Increase swap file partition on eNlight","description":"While increasing Swap File on the Server, first you need to check there should be enough free space (larger than new swap size) available on the partition.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.bodhost.com\/kb\/increase-swap-file-partition-on-server\/","og_locale":"en_US","og_type":"article","og_title":"Increase swap file partition on eNlight","og_description":"While increasing Swap File on the Server, first you need to check there should be enough free space (larger than new swap size) available on the partition.","og_url":"https:\/\/www.bodhost.com\/kb\/increase-swap-file-partition-on-server\/","og_site_name":"Knowledge Base - bodHOST","article_published_time":"2014-07-28T12:16:14+00:00","article_modified_time":"2026-02-26T14:04:31+00:00","og_image":[{"width":225,"height":274,"url":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2014\/07\/enlight-cloud-hosting.png","type":"image\/png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.bodhost.com\/kb\/increase-swap-file-partition-on-server\/#article","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/increase-swap-file-partition-on-server\/"},"author":{"name":"admin","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/c48414ad1536cea20e85282b0737a9f9"},"headline":"Increase swap File Partition on eNlight (or plane Linux Server)","datePublished":"2014-07-28T12:16:14+00:00","dateModified":"2026-02-26T14:04:31+00:00","mainEntityOfPage":{"@id":"https:\/\/www.bodhost.com\/kb\/increase-swap-file-partition-on-server\/"},"wordCount":67,"publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"image":{"@id":"https:\/\/www.bodhost.com\/kb\/increase-swap-file-partition-on-server\/#primaryimage"},"thumbnailUrl":"https:\/\/bodhost.com\/kb\/wp-content\/uploads\/2014\/07\/enlight-cloud-hosting.png","keywords":["change swap file size linux","swap partition size linux"],"articleSection":["FAQs"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.bodhost.com\/kb\/increase-swap-file-partition-on-server\/","url":"https:\/\/www.bodhost.com\/kb\/increase-swap-file-partition-on-server\/","name":"Increase swap file partition on eNlight","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.bodhost.com\/kb\/increase-swap-file-partition-on-server\/#primaryimage"},"image":{"@id":"https:\/\/www.bodhost.com\/kb\/increase-swap-file-partition-on-server\/#primaryimage"},"thumbnailUrl":"https:\/\/bodhost.com\/kb\/wp-content\/uploads\/2014\/07\/enlight-cloud-hosting.png","datePublished":"2014-07-28T12:16:14+00:00","dateModified":"2026-02-26T14:04:31+00:00","description":"While increasing Swap File on the Server, first you need to check there should be enough free space (larger than new swap size) available on the partition.","breadcrumb":{"@id":"https:\/\/www.bodhost.com\/kb\/increase-swap-file-partition-on-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bodhost.com\/kb\/increase-swap-file-partition-on-server\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bodhost.com\/kb\/increase-swap-file-partition-on-server\/#primaryimage","url":"https:\/\/bodhost.com\/kb\/wp-content\/uploads\/2014\/07\/enlight-cloud-hosting.png","contentUrl":"https:\/\/bodhost.com\/kb\/wp-content\/uploads\/2014\/07\/enlight-cloud-hosting.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.bodhost.com\/kb\/increase-swap-file-partition-on-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"FAQs","item":"https:\/\/www.bodhost.com\/kb\/category\/faq\/"},{"@type":"ListItem","position":2,"name":"Increase swap File Partition on eNlight (or plane Linux Server)"}]},{"@type":"WebSite","@id":"https:\/\/www.bodhost.com\/kb\/#website","url":"https:\/\/www.bodhost.com\/kb\/","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","description":"","publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"alternateName":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.bodhost.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.bodhost.com\/kb\/#organization","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","url":"https:\/\/www.bodhost.com\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","contentUrl":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","width":240,"height":240,"caption":"Web Hosting Knowledge Base | bodHOST Hosting FAQ"},"image":{"@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/c48414ad1536cea20e85282b0737a9f9","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/51e53199212db3f59606920448d45a6ead224f904558e3ab9251d071a609b202?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/51e53199212db3f59606920448d45a6ead224f904558e3ab9251d071a609b202?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/51e53199212db3f59606920448d45a6ead224f904558e3ab9251d071a609b202?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/www.bodhost.com\/kb\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/4386","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/comments?post=4386"}],"version-history":[{"count":12,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/4386\/revisions"}],"predecessor-version":[{"id":12196,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/4386\/revisions\/12196"}],"wp:attachment":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/media?parent=4386"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/categories?post=4386"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/tags?post=4386"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}