<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>(Phaysis) &#187; UUID</title>
	<atom:link href="http://www.phaysis.com/tag/uuid/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.phaysis.com</link>
	<description>One bulb shy...</description>
	<lastBuildDate>Thu, 09 Feb 2012 04:00:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Swap-o-Rama (¡UUID Es Me Llamo!)</title>
		<link>http://www.phaysis.com/2010/02/01/swap-o-rama-uuid-es-me-llamo/</link>
		<comments>http://www.phaysis.com/2010/02/01/swap-o-rama-uuid-es-me-llamo/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 05:55:59 +0000</pubDate>
		<dc:creator>Shawn</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[filesystem]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[hibernate]]></category>
		<category><![CDATA[nerd]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[UUID]]></category>

		<guid isPermaLink="false">http://www.phaysis.com/?p=467</guid>
		<description><![CDATA[(Just for the sake of remembering my own damn self &#8212; and maybe helping someone else.) Earlier, I attempted to hibernate my desktop. Never done it in the 15 months I&#8217;ve had Ubuntu 8.04 LTS on here, so I figured &#8220;Hell, why not?&#8221; I hit the dropdown, and the system commenced its hibernating shutdown action. [...]]]></description>
			<content:encoded><![CDATA[<p><em>(Just for the sake of remembering my own damn self &#8212; and maybe helping someone else.)</em></p>
<p>Earlier, I attempted to hibernate my desktop. Never done it in the 15 months I&#8217;ve had Ubuntu 8.04 LTS on here, so I figured &#8220;Hell, why not?&#8221; I hit the dropdown, and the system commenced its hibernating shutdown action. But it neither shut off nor came back to life. I ssh&#8217;d into it to discover via the system logfile that the hibernate was halfway through its operations when the power daemon discovered &#8220;Oh Hell! There&#8217;s no resume device on this machine!&#8221; at which point it ceased and attempted to raise the machine from the dead.</p>
<p>After manually power-cycling the system, I did some digging. Turns out the UUID of the swap/resume partition had been <em>changed</em> somewhere along the way, so both <em>/etc/fstab</em> and <em>/etc/initramfs-tools/conf.d/resume</em> were stuck with the old UUID from way back when the system was installed. That UUID no longer exists.</p>
<p>I&#8217;m not sure what caused it to change; such an idea is disturbing, considering this is supposed to be the super-stable, LTS build of Ubuntu. The UUID of the swap partition is usually set with the <em>mkswap -U</em> command, and can be set on an ext2/ext3 partition with the <em>tune2fs</em> command. But anything can go wrong.</p>
<p>So. How to make fix? A quick check with <em>sudo blkid</em> will list the block devices on the system:</p>
<pre>oldman@Deskie:~$ sudo blkid
/dev/sda1: UUID="c97b2e80-a5b2-4371-a60e-126a8d1402a5" TYPE="ext3"
/dev/sda5: TYPE="swap" UUID="f3a3cd16-f0c8-40a1-8a7d-578c57296c6b"
/dev/sda6: UUID="775a56e3-0244-453f-8d8a-fd1eb42a82f6" /
SEC_TYPE="ext2" TYPE="ext3"
</pre>
<p>The swap partition has the UUID <em>f3a3cd16-f0c8-40a1-8a7d-578c57296c6b</em> and is the device <em>/dev/sda5</em>. Copy and paste the UUID into the <em>fstab</em> and <em>resume</em> config files to replace the UUID that was there. Execute <em>sudo swapon -a</em> to mount your swap partition, and you should be golden. Verify with <em>free -m</em> to check for a nonzero swap size.</p>
<pre>oldman@Deskie:~$ free -m
             total       used       free     shared    buffers     cached
Mem:          3962       1784       2178          0        154        660
-/+ buffers/cache:        969       2993
Swap:        11601          0      11601
</pre>
<p>The value <em>11601</em> tells me I&#8217;m gettin&#8217; my swap on. Aw yeah.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.phaysis.com/2010/02/01/swap-o-rama-uuid-es-me-llamo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

