<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Label vs UUID vs Device</title>
	<atom:link href="http://etbe.coker.com.au/2008/07/08/label-vs-uuid-vs-device/feed/" rel="self" type="application/rss+xml" />
	<link>http://etbe.coker.com.au/2008/07/08/label-vs-uuid-vs-device/</link>
	<description>Linux, politics, and other interesting things</description>
	<lastBuildDate>Wed, 10 Mar 2010 11:35:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: etbe</title>
		<link>http://etbe.coker.com.au/2008/07/08/label-vs-uuid-vs-device/comment-page-1/#comment-18133</link>
		<dc:creator>etbe</dc:creator>
		<pubDate>Sat, 14 Feb 2009 09:25:55 +0000</pubDate>
		<guid isPermaLink="false">http://etbe.coker.com.au/?p=634#comment-18133</guid>
		<description>Bjorn: Thanks for the patch (which is in bug report http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=515019 ).

I&#039;ve reproduced that bug and tested the fix and it looks good.  Hopefully a Lenny update will include it.</description>
		<content:encoded><![CDATA[<p>Bjorn: Thanks for the patch (which is in bug report <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=515019" rel="nofollow">http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=515019</a> ).</p>
<p>I&#8217;ve reproduced that bug and tested the fix and it looks good.  Hopefully a Lenny update will include it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bjørn Mork</title>
		<link>http://etbe.coker.com.au/2008/07/08/label-vs-uuid-vs-device/comment-page-1/#comment-18083</link>
		<dc:creator>Bjørn Mork</dc:creator>
		<pubDate>Thu, 12 Feb 2009 20:05:38 +0000</pubDate>
		<guid isPermaLink="false">http://etbe.coker.com.au/?p=634#comment-18083</guid>
		<description>The susgested magic patches are buggy.  Leading zeroes will be stripped, causing bogus UUIDs.  I found out the hard way by trusting the output of file....

Compare these:

nemi:/etc# file -s /dev/sda1
/dev/sda1: Linux rev 1.0 ext2 filesystem data (mounted or unclean), UUID=b7e7b52-e5cd-49b8-a304-2bc5f9b7f2b5
nemi:/etc# tune2fs -l /dev/sda1&#124;grep UUID
Filesystem UUID:          0b7e7b52-e5cd-49b8-a304-2bc5f9b7f2b5

The missing 0 isn&#039;t easy to spot, but does make a difference if you cut and paste into /etc/fstab.  Suggested patch against Debian lenny magic:


--- a/magic	2008-09-08 14:38:38.000000000 +0200
+++ b/magic	2009-02-12 21:01:24.519745827 +0100
@@ -6003,12 +6003,12 @@
 &gt;&gt;&gt;0x464 lelong         &gt;0x0000007      ext4 filesystem data
 #  else large INCOMPAT?
 &gt;&gt;0x460	lelong          &gt;0x000003f      ext4 filesystem data
-&gt;0x468	belong		x		\b, UUID=%x
-&gt;0x46c	beshort		x		\b-%x
-&gt;0x46e	beshort		x		\b-%x
-&gt;0x470	beshort		x		\b-%x
-&gt;0x472	belong		x		\b-%x
-&gt;0x476	beshort		x		\b%x
+&gt;0x468	belong		x		\b, UUID=%08x
+&gt;0x46c	beshort		x		\b-%04x
+&gt;0x46e	beshort		x		\b-%04x
+&gt;0x470	beshort		x		\b-%04x
+&gt;0x472	belong		x		\b-%08x
+&gt;0x476	beshort		x		\b%04x
 &gt;0x478	string		&gt;0		\b, volume name &quot;%s&quot;
 # General flags for any ext* fs
 &gt;0x460	lelong          &amp;0x0000004      (needs journal recovery)
@@ -8771,12 +8771,12 @@
 &gt;0x404	long		x		size %d pages,
 &gt;1052	string				no label,
 &gt;1052	string		&gt;		LABEL=%s,
-&gt;0x40c	belong		x		UUID=%x
-&gt;0x410	beshort		x		\b-%x
-&gt;0x412	beshort		x		\b-%x
-&gt;0x414	beshort		x		\b-%x
-&gt;0x416	belong		x		\b-%x
-&gt;0x41a	beshort		x		\b%x
+&gt;0x40c	belong		x		UUID=%08x
+&gt;0x410	beshort		x		\b-%04x
+&gt;0x412	beshort		x		\b-%04x
+&gt;0x414	beshort		x		\b-%04x
+&gt;0x416	belong		x		\b-%08x
+&gt;0x41a	beshort		x		\b%04x
 # ECOFF magic for OSF/1 and Linux (only tested under Linux though)
 #
 #	from Erik Troan (ewt@redhat.com) examining od dumps, so this</description>
		<content:encoded><![CDATA[<p>The susgested magic patches are buggy.  Leading zeroes will be stripped, causing bogus UUIDs.  I found out the hard way by trusting the output of file&#8230;.</p>
<p>Compare these:</p>
<p>nemi:/etc# file -s /dev/sda1<br />
/dev/sda1: Linux rev 1.0 ext2 filesystem data (mounted or unclean), UUID=b7e7b52-e5cd-49b8-a304-2bc5f9b7f2b5<br />
nemi:/etc# tune2fs -l /dev/sda1|grep UUID<br />
Filesystem UUID:          0b7e7b52-e5cd-49b8-a304-2bc5f9b7f2b5</p>
<p>The missing 0 isn&#8217;t easy to spot, but does make a difference if you cut and paste into /etc/fstab.  Suggested patch against Debian lenny magic:</p>
<p>&#8212; a/magic	2008-09-08 14:38:38.000000000 +0200<br />
+++ b/magic	2009-02-12 21:01:24.519745827 +0100<br />
@@ -6003,12 +6003,12 @@<br />
 &gt;&gt;&gt;0&#215;464 lelong         &gt;0&#215;0000007      ext4 filesystem data<br />
 #  else large INCOMPAT?<br />
 &gt;&gt;0&#215;460	lelong          &gt;0&#215;000003f      ext4 filesystem data<br />
-&gt;0&#215;468	belong		x		\b, UUID=%x<br />
-&gt;0&#215;46c	beshort		x		\b-%x<br />
-&gt;0&#215;46e	beshort		x		\b-%x<br />
-&gt;0&#215;470	beshort		x		\b-%x<br />
-&gt;0&#215;472	belong		x		\b-%x<br />
-&gt;0&#215;476	beshort		x		\b%x<br />
+&gt;0&#215;468	belong		x		\b, UUID=%08x<br />
+&gt;0&#215;46c	beshort		x		\b-%04x<br />
+&gt;0&#215;46e	beshort		x		\b-%04x<br />
+&gt;0&#215;470	beshort		x		\b-%04x<br />
+&gt;0&#215;472	belong		x		\b-%08x<br />
+&gt;0&#215;476	beshort		x		\b%04x<br />
 &gt;0&#215;478	string		&gt;0		\b, volume name &#8220;%s&#8221;<br />
 # General flags for any ext* fs<br />
 &gt;0&#215;460	lelong          &amp;0&#215;0000004      (needs journal recovery)<br />
@@ -8771,12 +8771,12 @@<br />
 &gt;0&#215;404	long		x		size %d pages,<br />
 &gt;1052	string				no label,<br />
 &gt;1052	string		&gt;		LABEL=%s,<br />
-&gt;0&#215;40c	belong		x		UUID=%x<br />
-&gt;0&#215;410	beshort		x		\b-%x<br />
-&gt;0&#215;412	beshort		x		\b-%x<br />
-&gt;0&#215;414	beshort		x		\b-%x<br />
-&gt;0&#215;416	belong		x		\b-%x<br />
-&gt;0&#215;41a	beshort		x		\b%x<br />
+&gt;0&#215;40c	belong		x		UUID=%08x<br />
+&gt;0&#215;410	beshort		x		\b-%04x<br />
+&gt;0&#215;412	beshort		x		\b-%04x<br />
+&gt;0&#215;414	beshort		x		\b-%04x<br />
+&gt;0&#215;416	belong		x		\b-%08x<br />
+&gt;0&#215;41a	beshort		x		\b%04x<br />
 # ECOFF magic for OSF/1 and Linux (only tested under Linux though)<br />
 #<br />
 #	from Erik Troan (ewt@redhat.com) examining od dumps, so this</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: etbe</title>
		<link>http://etbe.coker.com.au/2008/07/08/label-vs-uuid-vs-device/comment-page-1/#comment-14882</link>
		<dc:creator>etbe</dc:creator>
		<pubDate>Wed, 16 Jul 2008 00:05:32 +0000</pubDate>
		<guid isPermaLink="false">http://etbe.coker.com.au/?p=634#comment-14882</guid>
		<description>The Debian bug has been fixed in Unstable.

Thanks for the suggestions about /dev/disk, blkid, and vol_id.  It&#039;s good to have other ways of doing it.</description>
		<content:encoded><![CDATA[<p>The Debian bug has been fixed in Unstable.</p>
<p>Thanks for the suggestions about /dev/disk, blkid, and vol_id.  It&#8217;s good to have other ways of doing it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Glennie</title>
		<link>http://etbe.coker.com.au/2008/07/08/label-vs-uuid-vs-device/comment-page-1/#comment-14760</link>
		<dc:creator>Glennie</dc:creator>
		<pubDate>Tue, 08 Jul 2008 19:48:39 +0000</pubDate>
		<guid isPermaLink="false">http://etbe.coker.com.au/?p=634#comment-14760</guid>
		<description>Hi,
You can also use /lib/udev/vol_id (it&#039;s in the udev package) to find the swap partions&#039; UUID!</description>
		<content:encoded><![CDATA[<p>Hi,<br />
You can also use /lib/udev/vol_id (it&#8217;s in the udev package) to find the swap partions&#8217; UUID!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kl</title>
		<link>http://etbe.coker.com.au/2008/07/08/label-vs-uuid-vs-device/comment-page-1/#comment-14755</link>
		<dc:creator>kl</dc:creator>
		<pubDate>Tue, 08 Jul 2008 12:19:06 +0000</pubDate>
		<guid isPermaLink="false">http://etbe.coker.com.au/?p=634#comment-14755</guid>
		<description>&quot;For a swap space I don’t know of any tool that can extract the UUID and name.&quot;

blkid(8) from e2fsprogs does exactly that.</description>
		<content:encoded><![CDATA[<p>&#8220;For a swap space I don’t know of any tool that can extract the UUID and name.&#8221;</p>
<p>blkid(8) from e2fsprogs does exactly that.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Theodotos Andreou</title>
		<link>http://etbe.coker.com.au/2008/07/08/label-vs-uuid-vs-device/comment-page-1/#comment-14754</link>
		<dc:creator>Theodotos Andreou</dc:creator>
		<pubDate>Tue, 08 Jul 2008 12:16:54 +0000</pubDate>
		<guid isPermaLink="false">http://etbe.coker.com.au/?p=634#comment-14754</guid>
		<description>&quot;ls -la /dev/disk/by-uuid/&quot; will link to the actual /dev/sdX partition so you can indirectly figure out the UUID of a swap partition</description>
		<content:encoded><![CDATA[<p>&#8220;ls -la /dev/disk/by-uuid/&#8221; will link to the actual /dev/sdX partition so you can indirectly figure out the UUID of a swap partition</p>
]]></content:encoded>
	</item>
</channel>
</rss>
