<?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>logIt &#187; mount</title>
	<atom:link href="https://lakm.us/logit/tag/mount/feed/" rel="self" type="application/rss+xml" />
	<link>https://lakm.us/logit</link>
	<description>Log Around The Clock</description>
	<lastBuildDate>Sat, 06 Jun 2015 14:17:37 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Mount with fstab and UUID</title>
		<link>https://lakm.us/logit/2009/06/mount-with-fstab-and-uuid/</link>
		<comments>https://lakm.us/logit/2009/06/mount-with-fstab-and-uuid/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 08:16:22 +0000</pubDate>
		<dc:creator>Arif</dc:creator>
				<category><![CDATA[General Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[file system]]></category>
		<category><![CDATA[mount]]></category>

		<guid isPermaLink="false">http://localhost/it/?p=70</guid>
		<description><![CDATA[Check UUID: $ blkid &#160; /dev/loop0: TYPE=&#34;squashfs&#34; /dev/sda1: UUID=&#34;46E439E9E439DBBD&#34; LABEL=&#34;SYSTEM&#34; TYPE=&#34;ntfs&#34; /dev/sda5: LABEL=&#34;DATA&#34; UUID=&#34;0686-FAFA&#34; TYPE=&#34;vfat&#34; /dev/sda6: UUID=&#34;4ddd1e8c-e2e2-4397-838b-ea953e0a7795&#34; SEC_TYPE=&#34;ext2&#34; TYPE=&#34;ext3&#34; /dev/sda7: TYPE=&#34;swap&#34; UUID=&#34;9be4f92e-4f22-41f4-9aee-1c93f9cdf6ac&#34; /dev/sda8: UUID=&#34;6a969f33-240b-440c-9a43-e68f8b28fd19&#34; SEC_TYPE=&#34;ext2&#34; TYPE=&#34;ext3&#34; /dev/sda9: UUID=&#34;d7aac664-c177-46aa-be67-40aad4d3f129&#34; TYPE=&#34;ext3&#34; SEC_TYPE=&#34;ext2&#34; /dev/sda10: UUID=&#34;36cdb4cb-351b-4f47-9c24-64a9e80c826b&#34; TYPE=&#34;ext4&#34; or $ sudo vol_id -u /dev/sda7 9be4f92e-4f22-41f4-9aee-1c93f9cdf6ac Put it in /etc/fstab to mount the device at boot. # /etc/fstab: static file system [...]]]></description>
				<content:encoded><![CDATA[<p>Check UUID:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ blkid
&nbsp;
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>loop0: <span style="color: #007800;">TYPE</span>=<span style="color: #ff0000;">&quot;squashfs&quot;</span>
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda1: <span style="color: #007800;">UUID</span>=<span style="color: #ff0000;">&quot;46E439E9E439DBBD&quot;</span> <span style="color: #007800;">LABEL</span>=<span style="color: #ff0000;">&quot;SYSTEM&quot;</span> <span style="color: #007800;">TYPE</span>=<span style="color: #ff0000;">&quot;ntfs&quot;</span>
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda5: <span style="color: #007800;">LABEL</span>=<span style="color: #ff0000;">&quot;DATA&quot;</span> <span style="color: #007800;">UUID</span>=<span style="color: #ff0000;">&quot;0686-FAFA&quot;</span> <span style="color: #007800;">TYPE</span>=<span style="color: #ff0000;">&quot;vfat&quot;</span>
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda6: <span style="color: #007800;">UUID</span>=<span style="color: #ff0000;">&quot;4ddd1e8c-e2e2-4397-838b-ea953e0a7795&quot;</span> <span style="color: #007800;">SEC_TYPE</span>=<span style="color: #ff0000;">&quot;ext2&quot;</span> <span style="color: #007800;">TYPE</span>=<span style="color: #ff0000;">&quot;ext3&quot;</span>
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda7: <span style="color: #007800;">TYPE</span>=<span style="color: #ff0000;">&quot;swap&quot;</span> <span style="color: #007800;">UUID</span>=<span style="color: #ff0000;">&quot;9be4f92e-4f22-41f4-9aee-1c93f9cdf6ac&quot;</span>
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda8: <span style="color: #007800;">UUID</span>=<span style="color: #ff0000;">&quot;6a969f33-240b-440c-9a43-e68f8b28fd19&quot;</span> <span style="color: #007800;">SEC_TYPE</span>=<span style="color: #ff0000;">&quot;ext2&quot;</span> <span style="color: #007800;">TYPE</span>=<span style="color: #ff0000;">&quot;ext3&quot;</span>
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda9: <span style="color: #007800;">UUID</span>=<span style="color: #ff0000;">&quot;d7aac664-c177-46aa-be67-40aad4d3f129&quot;</span> <span style="color: #007800;">TYPE</span>=<span style="color: #ff0000;">&quot;ext3&quot;</span> <span style="color: #007800;">SEC_TYPE</span>=<span style="color: #ff0000;">&quot;ext2&quot;</span>
<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda10: <span style="color: #007800;">UUID</span>=<span style="color: #ff0000;">&quot;36cdb4cb-351b-4f47-9c24-64a9e80c826b&quot;</span> <span style="color: #007800;">TYPE</span>=<span style="color: #ff0000;">&quot;ext4&quot;</span></pre></div></div>

<p>or</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> vol_id <span style="color: #660033;">-u</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda7
9be4f92e-4f22-41f4-9aee-1c93f9cdf6ac</pre></div></div>

<p>Put it in <code>/etc/fstab</code> to mount the device at boot.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># /etc/fstab: static file system information.</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># Use 'vol_id --uuid' to print the universally unique identifier for a</span>
<span style="color: #666666; font-style: italic;"># device; this may be used with UUID= as a more robust way to name devices</span>
<span style="color: #666666; font-style: italic;"># that works even if disks are added and removed. See fstab(5).</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># &lt;file system&gt; &lt;mount point&gt;   &lt;type&gt;  &lt;options&gt;       &lt;dump&gt;  &lt;pass&gt;</span>
proc            <span style="color: #000000; font-weight: bold;">/</span>proc           proc    defaults        <span style="color: #000000;">0</span>       <span style="color: #000000;">0</span>
<span style="color: #666666; font-style: italic;"># / was on /dev/sda10 during installation</span>
<span style="color: #007800;">UUID</span>=36cdb4cb-351b-4f47-9c24-64a9e80c826b <span style="color: #000000; font-weight: bold;">/</span>               ext4    relatime,<span style="color: #007800;">errors</span>=remount-ro <span style="color: #000000;">0</span>       <span style="color: #000000;">1</span>
<span style="color: #666666; font-style: italic;"># /home was on /dev/sda9 during installation</span>
<span style="color: #666666; font-style: italic;">#UUID=d7aac664-c177-46aa-be67-40aad4d3f129 /home           ext3    relatime        0       2</span>
<span style="color: #666666; font-style: italic;"># /home moved to /dev/sda8 using ext4 file system, /apps uses previous /home in /dev/sda9</span>
<span style="color: #007800;">UUID</span>=6a969f33-240b-440c-9a43-e68f8b28fd19 <span style="color: #000000; font-weight: bold;">/</span>home           ext3    relatime        <span style="color: #000000;">0</span>       <span style="color: #000000;">2</span>
<span style="color: #007800;">UUID</span>=d7aac664-c177-46aa-be67-40aad4d3f129 <span style="color: #000000; font-weight: bold;">/</span>apps           ext3    relatime        <span style="color: #000000;">0</span>       <span style="color: #000000;">2</span>
<span style="color: #666666; font-style: italic;"># swap was on /dev/sda7 during installation</span>
<span style="color: #007800;">UUID</span>=9be4f92e-4f22-41f4-9aee-1c93f9cdf6ac none            swap sw              <span style="color: #000000;">0</span>       <span style="color: #000000;">0</span>
<span style="color: #666666; font-style: italic;"># /dev/sda5</span>
<span style="color: #007800;">UUID</span>=0686-FAFA  <span style="color: #000000; font-weight: bold;">/</span>media<span style="color: #000000; font-weight: bold;">/</span>sda5     vfat    defaults,utf8,<span style="color: #007800;"><span style="color: #7a0874; font-weight: bold;">umask</span></span>=007,<span style="color: #007800;">gid</span>=<span style="color: #000000;">46</span> <span style="color: #000000;">0</span>       <span style="color: #000000;">1</span></pre></div></div>

<p>The sixth field <<code>pass</code>>, is used by the <code>fsck</code> program to determine the order in which filesystem checks are done at reboot time.  The root filesystem should be specified with a <<code>pass</code>>  of  1,  and other  filesystems  should  have  a <<code>pass</code>> of 2.</p>
]]></content:encoded>
			<wfw:commentRss>https://lakm.us/logit/2009/06/mount-with-fstab-and-uuid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
