{"id":23,"date":"2007-05-30T15:54:37","date_gmt":"2007-05-30T14:54:37","guid":{"rendered":"http:\/\/www.miscdebris.net\/blog\/?p=23"},"modified":"2007-05-30T15:56:00","modified_gmt":"2007-05-30T14:56:00","slug":"suddenly-my-swap-drive-was-missing","status":"publish","type":"post","link":"http:\/\/www.miscdebris.net\/blog\/2007\/05\/30\/suddenly-my-swap-drive-was-missing\/","title":{"rendered":"Suddenly my swap drive was missing"},"content":{"rendered":"<p>When checking &#8216;top&#8217; after I was told that I have no memory anymore I found out that I had no swap drive anymore. Must have gone lost when I switched to Ubuntu Feisty. Anyway, I found a <a href=\"http:\/\/ubuntuforums.org\/showthread.php?p=1683612\" target=\"_blank\">description<\/a> to re-initiate the swap drive:<\/p>\n<ul>\n<li>First find out which partition your swap drive is, e.g. with &#8216;sudo fdisk -l \/dev\/sda&#8217; (the important line is &#8216;\/dev\/sda6            8391        8645     2048256   82  Linux swap \/ Solaris&#8217;)<\/li>\n<li>sudo mkswap \/dev\/sda6 &#8211; a new UUID will be created and printed on the screen (e.g. &#8216;no label, UUID=16ef6e6c-dd7e-4efd-bacd-8718ebeac568&#8217;)<\/li>\n<li>create a link in \/dev\/disks\/by-uuid: &#8216;cd \/dev\/disks\/by-uuid&#8217; and &#8216;sudo ln -s ..\/..\/mapper\/sda6 \/dev\/disk\/by-uuid\/Your-UUID&#8217;<\/li>\n<li>sudo swapon -va<\/li>\n<li>sudo gedit \/etc\/fstab and set the correct UUID in the line &#8216;UUID=Your-UUID none swap sw 0 0&#8217;<\/li>\n<\/ul>\n<p>To keep swap intact after hibernation additionally you need<\/p>\n<ul>\n<li>sudo gedit \/etc\/initramfs-tools\/conf.d\/resume and add the line &#8216;RESUME=UUID=Your-UUID&#8217;<\/li>\n<li>sudo update-initramfs -u<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>When checking &#8216;top&#8217; after I was told that I have no memory anymore I found out that I had no swap drive anymore. Must have gone lost when I switched to Ubuntu Feisty. Anyway, I found a description to re-initiate the swap drive: First find out which partition your swap drive is, e.g. with &#8216;sudo &hellip; <a href=\"http:\/\/www.miscdebris.net\/blog\/2007\/05\/30\/suddenly-my-swap-drive-was-missing\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Suddenly my swap drive was missing<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[9],"tags":[],"class_list":["post-23","post","type-post","status-publish","format-standard","hentry","category-linux"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6pnj-n","_links":{"self":[{"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/posts\/23"}],"collection":[{"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/comments?post=23"}],"version-history":[{"count":0,"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/posts\/23\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/media?parent=23"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/categories?post=23"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.miscdebris.net\/blog\/wp-json\/wp\/v2\/tags?post=23"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}