{"id":186,"date":"2014-05-24T16:27:28","date_gmt":"2014-05-24T13:27:28","guid":{"rendered":"http:\/\/btdesigns.geosolutionskenya.com\/?p=186"},"modified":"2014-05-24T16:32:10","modified_gmt":"2014-05-24T13:32:10","slug":"swap-off-swap-on","status":"publish","type":"post","link":"https:\/\/blogs.reflexconcepts.co.ke\/?p=186","title":{"rendered":"Swap off\/ Swap on"},"content":{"rendered":"<p>Sometime you may feel like you need to temporarily disable your swap memory.<br \/>\nFor some reason, it makes copying files to flash drive slow and in worst case scenario, cause the system to freeze. This is especialy prevelaent in some of the new builds of Ubuntu. (I experienced it in Ubuntu 13.10: Raring Ringtail).<!--more--><\/p>\n<p>But not to worry, there is a simple fix to this.<\/p>\n<p style=\"padding-left: 30px;\"><strong>To switch it off<\/strong><br \/>\nStep 1:<br \/>\nOpen the terminal- Ctrl+Alt+T(or search the dash).<br \/>\nNote: If your terminal session is root, exclude the `<span style=\"color: #ff6600;\">sudo<\/span>`.<\/p>\n<p style=\"padding-left: 30px;\">Step 2:<br \/>\nWrite the following command:<br \/>\nsudo swapoff -a<br \/>\nPress return(Enter)<br \/>\nProvide a password if prompted.<\/p>\n<figure id=\"attachment_187\" aria-describedby=\"caption-attachment-187\" style=\"width: 575px\" class=\"wp-caption alignleft\"><a href=\"http:\/\/btdesigns.geosolutionskenya.com\/wp-content\/uploads\/2014\/05\/swapoff.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-187\" src=\"http:\/\/btdesigns.geosolutionskenya.com\/wp-content\/uploads\/2014\/05\/swapoff.png\" alt=\"Swap turned off\" width=\"575\" height=\"522\" srcset=\"https:\/\/blogs.reflexconcepts.co.ke\/wp-content\/uploads\/2014\/05\/swapoff.png 575w, https:\/\/blogs.reflexconcepts.co.ke\/wp-content\/uploads\/2014\/05\/swapoff-300x272.png 300w\" sizes=\"auto, (max-width: 575px) 100vw, 575px\" \/><\/a><figcaption id=\"caption-attachment-187\" class=\"wp-caption-text\">Swap turned off<\/figcaption><\/figure>\n<p style=\"padding-left: 30px;\">Thats it \ud83d\ude42<\/p>\n<p style=\"padding-left: 30px;\"><strong>To turn it back on<\/strong><br \/>\nStep 1:<br \/>\nRepeat Step 1 above.<\/p>\n<p style=\"padding-left: 30px;\">Step 2:<br \/>\nWrite the following command:<br \/>\nsudo swapon -a<br \/>\nPress return(Enter)<br \/>\nProvide a password if prompted.<\/p>\n<figure id=\"attachment_188\" aria-describedby=\"caption-attachment-188\" style=\"width: 577px\" class=\"wp-caption alignleft\"><a href=\"http:\/\/btdesigns.geosolutionskenya.com\/wp-content\/uploads\/2014\/05\/swapon.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-188\" src=\"http:\/\/btdesigns.geosolutionskenya.com\/wp-content\/uploads\/2014\/05\/swapon.png\" alt=\"Swap turned on\" width=\"577\" height=\"522\" srcset=\"https:\/\/blogs.reflexconcepts.co.ke\/wp-content\/uploads\/2014\/05\/swapon.png 577w, https:\/\/blogs.reflexconcepts.co.ke\/wp-content\/uploads\/2014\/05\/swapon-300x271.png 300w\" sizes=\"auto, (max-width: 577px) 100vw, 577px\" \/><\/a><figcaption id=\"caption-attachment-188\" class=\"wp-caption-text\">Swap turned on<\/figcaption><\/figure>\n<p style=\"padding-left: 30px;\"><span style=\"color: #993300;\">Big Note: <\/span><br \/>\n<span style=\"color: #993300;\"> Incase of the following #Error:<\/span><br \/>\n<span style=\"color: #993300;\"> &#8216;Could not allocate free memory&#8217; or any other, the simplest solution is to restart the computer and try the steps as the first thing<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometime you may feel like you need to temporarily disable your swap memory. For some reason, it makes copying files to flash drive slow and in worst case scenario, cause the system to freeze. This is especialy prevelaent in some of the new builds of Ubuntu. (I experienced it in Ubuntu 13.10: Raring Ringtail).<\/p>\n","protected":false},"author":1,"featured_media":191,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,10],"tags":[],"class_list":["post-186","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-ubuntu"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/blogs.reflexconcepts.co.ke\/index.php?rest_route=\/wp\/v2\/posts\/186","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.reflexconcepts.co.ke\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.reflexconcepts.co.ke\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.reflexconcepts.co.ke\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.reflexconcepts.co.ke\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=186"}],"version-history":[{"count":2,"href":"https:\/\/blogs.reflexconcepts.co.ke\/index.php?rest_route=\/wp\/v2\/posts\/186\/revisions"}],"predecessor-version":[{"id":192,"href":"https:\/\/blogs.reflexconcepts.co.ke\/index.php?rest_route=\/wp\/v2\/posts\/186\/revisions\/192"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.reflexconcepts.co.ke\/index.php?rest_route=\/wp\/v2\/media\/191"}],"wp:attachment":[{"href":"https:\/\/blogs.reflexconcepts.co.ke\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=186"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.reflexconcepts.co.ke\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=186"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.reflexconcepts.co.ke\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=186"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}