<?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; file system</title>
	<atom:link href="https://lakm.us/logit/tag/file-system/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>Mobile WiFi NAS on Raspberry Pi with TrueCrypt</title>
		<link>https://lakm.us/logit/2014/06/mobile-wifi-nas-raspberry-pi-truecrypt/</link>
		<comments>https://lakm.us/logit/2014/06/mobile-wifi-nas-raspberry-pi-truecrypt/#comments</comments>
		<pubDate>Sun, 01 Jun 2014 04:23:18 +0000</pubDate>
		<dc:creator>Arif</dc:creator>
				<category><![CDATA[ARM Linux]]></category>
		<category><![CDATA[General Linux]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[ARMv6]]></category>
		<category><![CDATA[file system]]></category>
		<category><![CDATA[fuse]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://lakm.us/logit/?p=778</guid>
		<description><![CDATA[Mobile NAS sounds like an idea worth waiting for to run on my mini Raspberry Pi Model A. Unfortunately, it only took me a while, before abandoning it. I&#8217;ve waited since writing about Raspberry Pi USB problem, that is to finally cut the backfeeding power line from the el cheapo powered USB hub. There comes [...]]]></description>
				<content:encoded><![CDATA[<p>Mobile <a href="http://en.wikipedia.org/wiki/Network-attached_storage" target="_blank">NAS</a> sounds like an idea worth waiting for to run on my mini <a href="http://www.raspberrypi.org/tag/model-a/" target="_blank">Raspberry Pi Model A</a>. Unfortunately, it only took me a while, before abandoning it. I&#8217;ve waited since <a href="../../../2013/03/raspberry-pi-common-usb-problems/" title="Raspberry Pi Common USB Problems" target="_blank">writing about Raspberry Pi USB problem</a>, that is to <a href="https://flic.kr/p/kqopvk" title="Cutting backfeed from el cheapo USB hub to make friend with dual rating power bank &#038; Raspberry Pi" target="_blank">finally cut the backfeeding power line from the <em>el cheapo</em> powered USB hub</a>. There comes new problem afterward, my &#8220;big storage&#8221; ―a <a href="http://www.seagate.com/external-hard-drives/portable-hard-drives/standard/backup-plus/" title="Backup Plus Slim Portable Drive" target="_blank">Seagate® Backup Plus Slim Portable Drive</a>, shipped with no bulky power supply line― can&#8217;t be mounted. Silence soon follows rotating motor sound a while after plugging-in. I&#8217;ve tried both <a href="http://en.wikipedia.org/wiki/Ext3" target="_blank">ext3</a> and <a href="http://en.wikipedia.org/wiki/NTFS-3G" target="_blank">NTFS (using ntfs-3g)</a> without luck. Later, as benchmark whether it is USB power in question, I try to connect the same set of <em>el cheapo</em> USB hub plus external power to laptop, and it works, leaving me stranded with other issue (is it USB 3.0? 256MB of the Model A? Anything?). I must say that it isn&#8217;t completely not-working as the USB hub set can mount with <a href="http://www.ebay.co.uk/itm/Ritmo-R-Driver-III-USB-2-0-to-sata-Ide-cable-/221221820375" title="R-Driver III USB 2.0 to sata / Ide cable" target="_blank">USB to IDE converter</a> and my old internal hard disk (noting that there shouldn&#8217;t be similar power issue this way). If only it weren&#8217;t for the AC power adapter and large size, this is Mobile NAS; beats me.</p>
<div class="wp-caption aligncenter" style="width: 460px"><img alt="Mobile NAS [Raspberry Pi hack] by aqila_rifti, on Flickr" src="https://farm6.staticflickr.com/5193/14317107955_73226c6432_n.jpg" title="Mobile NAS [Raspberry Pi hack] by aqila_rifti, on Flickr" width="320" height="320" /><p class="wp-caption-text">Battery power bank, WiFi USB stick, and thumb drive</p></div>
<p>I then turn away to motor-less small storage, a <a href="http://www.sandisk.com/products/usb/drives/cruzer-switch/" title="Sandisk Cruzer CZ52 " target="_blank">32 Gigs USB thumb drive</a> so I can move on to other concern: on-the-fly encryption. Hence, I follow <a href="http://kenfallon.com/truecrypt-on-a-respberry-pi-no-gui/" target="_blank">instructions to install True Crypt on Raspberry Pi</a>. After unpacking of <code>wxWidgets-2.8.12.tar.gz</code> and <code>TrueCrypt 7.1a Source.tar.gz</code> in place, putting header files from <code>pkcs-11-cryptoki2.20</code>, and then install <code>libfuse-dev</code>, the following <code>make</code> will require long time:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PKCS11_INC</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>truecrypt<span style="color: #000000; font-weight: bold;">/</span>pkcs<span style="color: #000000; font-weight: bold;">/</span>
&nbsp;
$ <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #007800;">NOGUI</span>=<span style="color: #000000;">1</span> <span style="color: #007800;">WX_ROOT</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>wxWidgets wxbuild
Configuring wxWidgets library...
Building wxWidgets library...
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>wxWidgets<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>common<span style="color: #000000; font-weight: bold;">/</span>string.cpp:<span style="color: #000000;">84</span>:<span style="color: #000000;">39</span>: warning: ‘wxEmptyString’ initialized and declared ‘extern’ <span style="color: #7a0874; font-weight: bold;">&#91;</span>enabled by default<span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div>

<p><span id="more-778"></span></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #007800;">NOGUI</span>=<span style="color: #000000;">1</span> <span style="color: #007800;">WX_ROOT</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>src<span style="color: #000000; font-weight: bold;">/</span>wxWidgets wxbuild
Compiling Buffer.cpp
Compiling Exception.cpp
Compiling Event.cpp
...
..<span style="color: #000000; font-weight: bold;">/</span>Crypto<span style="color: #000000; font-weight: bold;">/</span>Aeskey.c:<span style="color: #000000;">527</span>:<span style="color: #000000;">25</span>: warning: operation on ‘ss<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">7</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>’ may be undefined <span style="color: #7a0874; font-weight: bold;">&#91;</span>-Wsequence-point<span style="color: #7a0874; font-weight: bold;">&#93;</span>
..<span style="color: #000000; font-weight: bold;">/</span>Crypto<span style="color: #000000; font-weight: bold;">/</span>Aeskey.c:<span style="color: #000000;">527</span>:<span style="color: #000000;">25</span>: warning: operation on ‘ss<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">7</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>’ may be undefined <span style="color: #7a0874; font-weight: bold;">&#91;</span>-Wsequence-point<span style="color: #7a0874; font-weight: bold;">&#93;</span>
..<span style="color: #000000; font-weight: bold;">/</span>Crypto<span style="color: #000000; font-weight: bold;">/</span>Aeskey.c:<span style="color: #000000;">527</span>:<span style="color: #000000;">25</span>: warning: operation on ‘ss<span style="color: #7a0874; font-weight: bold;">&#91;</span><span style="color: #000000;">7</span><span style="color: #7a0874; font-weight: bold;">&#93;</span>’ may be undefined <span style="color: #7a0874; font-weight: bold;">&#91;</span>-Wsequence-point<span style="color: #7a0874; font-weight: bold;">&#93;</span>
...
Converting Language.xml
Compiling Resources.cpp
Linking truecrypt</pre></div></div>

<p>I created the TrueCrypt volume separately via its desktop GUI with <code>ext3</code> file system to then mount it in Pi to a configured <a href="http://en.wikipedia.org/wiki/Samba_(software)" target="_blank">Samba share</a>. As pointed out in <a href="http://raspberrywebserver.com/serveradmin/share-your-raspberry-pis-files-and-folders-across-a-network.html" target="_blank">a post</a>, the following changes are added to <code>smb.conf</code></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">...
wins support = <span style="color: #c20cb9; font-weight: bold;">yes</span>
...
<span style="color: #7a0874; font-weight: bold;">&#91;</span>pitruecrypt<span style="color: #7a0874; font-weight: bold;">&#93;</span>
   <span style="color: #007800;">comment</span>= Pi Truecrypt Volume
   <span style="color: #007800;">path</span>=<span style="color: #000000; font-weight: bold;">&lt;</span>the <span style="color: #c20cb9; font-weight: bold;">mount</span> path of the USB thumb drive TrueCrypt volume<span style="color: #000000; font-weight: bold;">&gt;</span>
   <span style="color: #007800;">browseable</span>=Yes
   <span style="color: #007800;">writeable</span>=Yes
   only <span style="color: #007800;">guest</span>=no
   create <span style="color: #007800;">mask</span>=0777
   directory <span style="color: #007800;">mask</span>=0777
   <span style="color: #007800;">public</span>=no</pre></div></div>

<p>and then user-password are entered via interactive command.</p>
<p>For mobility, I already had the Pi as WiFi access point using <code><a href="hostap.epitest.fi/hostapd/" target="_blank">hostapd</a></code> (check <a href="http://sirlagz.net/2012/08/09/how-to-use-the-raspberry-pi-as-a-wireless-access-pointrouter-part-1/" target="_blank">these steps</a>) and <a href="http://www.amazon.com/HAME-10400mAh-Double-Indicators-Capacity/dp/B00B5OFC5I" target="_blank">power bank</a>, so it&#8217;s now matter of performance. In the case of <code><a href="http://www.samba.org/rsync/" target="_blank">rsync</a></code>, initial sync of some 1,500 items totaling in 1 Gig size elapses in approximately the same 12 minutes of time compared to one bulk file of the same size. Of course, over the next incremental sync, it only takes less than a minute for the thousand items to just update slight differences.</p>
<h3>Security</h3>
<p>Back to security, there surely risk by opening Samba share to mounted TrueCrypt volume. But, for me it would be practically manageable (cross my finger). There is more concern to the fate of <a href="http://truecrypt.sourceforge.net/" target="_blank">TrueCrypt</a> after it is being closed in such a weird way, given that <a href="https://opencryptoaudit.org/reports/iSec_Final_Open_Crypto_Audit_Project_TrueCrypt_Security_Assessment.pdf" target="_blank">last audit</a> finds nothing severe. Anyway, I found brute force tool, but no critical attack exists currently, unless e.g. it stays powered on and mounted, the person gain physical access. Beats me again.</p>
]]></content:encoded>
			<wfw:commentRss>https://lakm.us/logit/2014/06/mobile-wifi-nas-raspberry-pi-truecrypt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tagsistant On Production (2)</title>
		<link>https://lakm.us/logit/2010/03/tagsistant-on-production-2/</link>
		<comments>https://lakm.us/logit/2010/03/tagsistant-on-production-2/#comments</comments>
		<pubDate>Sat, 27 Mar 2010 13:08:40 +0000</pubDate>
		<dc:creator>Arif</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[file system]]></category>
		<category><![CDATA[fuse]]></category>
		<category><![CDATA[tagging]]></category>

		<guid isPermaLink="false">http://lakm.us/logit/?p=182</guid>
		<description><![CDATA[I&#8217;ve been waiting for someone to release a special-GUI-file manager to support Tagsistant. I decided not to wait and try out existing straightforward implementation (see previous post). I create a directory named tags inside my home and add an item on desktop session startup in System &#62; Preferences &#62; Startup Apllications containing this command tagsistant [...]]]></description>
				<content:encoded><![CDATA[<p>I&#8217;ve been waiting for someone to release a special-GUI-file manager to support Tagsistant. I decided not to wait and try out existing straightforward implementation (see <a href="./?p=82" target="_blank">previous post</a>). I create a directory named <code>tags</code> inside my home and add an item on desktop session startup in System &gt; Preferences &gt; Startup Apllications containing this command</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">tagsistant <span style="color: #660033;">-o</span> allow_other <span style="color: #660033;">-o</span> <span style="color: #007800;"><span style="color: #7a0874; font-weight: bold;">umask</span></span>=0022 <span style="color: #660033;">-o</span> <span style="color: #007800;">uid</span>=<span style="color: #000000;">1000</span> <span style="color: #660033;">--repository</span>=~<span style="color: #000000; font-weight: bold;">/</span>.tagsistant ~<span style="color: #000000; font-weight: bold;">/</span>tags</pre></div></div>

<p>Prior to that, I change owner  from root to me on</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-l</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>fuse.conf
&nbsp;
<span style="color: #660033;">-rw-r-----</span> <span style="color: #000000;">1</span> arif arif <span style="color: #000000;">215</span> <span style="color: #000000;">2010</span>-02-09 <span style="color: #000000;">11</span>:<span style="color: #000000;">20</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>fuse.conf</pre></div></div>

<p>and uncomment the <code>user_allow_other</code> of that config.</p>
<p>Running Tagsistant will add this mount</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">mount</span>
...
gvfs-fuse-daemon on <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>arif<span style="color: #000000; font-weight: bold;">/</span>.gvfs <span style="color: #7a0874; font-weight: bold;">type</span> fuse.gvfs-fuse-daemon <span style="color: #7a0874; font-weight: bold;">&#40;</span>rw,nosuid,nodev,<span style="color: #007800;">user</span>=arif<span style="color: #7a0874; font-weight: bold;">&#41;</span>
tagsistant on <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>arif<span style="color: #000000; font-weight: bold;">/</span>tags <span style="color: #7a0874; font-weight: bold;">type</span> fuse <span style="color: #7a0874; font-weight: bold;">&#40;</span>rw,nosuid,nodev,allow_other,<span style="color: #007800;">user</span>=arif<span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
$ <span style="color: #c20cb9; font-weight: bold;">df</span> <span style="color: #660033;">-k</span>
Filesystem           1K-blocks      Used Available Use<span style="color: #000000; font-weight: bold;">%</span> Mounted on...
tagsistant           <span style="color: #000000;">123593820</span>  <span style="color: #000000;">91720380</span>  <span style="color: #000000;">25595240</span>  <span style="color: #000000;">79</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>arif<span style="color: #000000; font-weight: bold;">/</span>tags</pre></div></div>

<p>Original file storage in this config is in <code>~/.tagsistant/archive/</code> and tagging structure in SQLite format is kept in <code>~/.tagsistant/tags.sql</code>.</p>
<h4>Serious Performance Drawback</h4>
<p>I can use Nautilus or Krusader (basically any file browser) to access the tagged files but performance really drops when tags.sql reaches some 160MB. I don&#8217;t have time to look further and skip the chance to use it any longer in &#8220;production&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>https://lakm.us/logit/2010/03/tagsistant-on-production-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tagsistant (1)</title>
		<link>https://lakm.us/logit/2009/09/tagsistant-1/</link>
		<comments>https://lakm.us/logit/2009/09/tagsistant-1/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 06:09:59 +0000</pubDate>
		<dc:creator>Arif</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[application]]></category>
		<category><![CDATA[daemon]]></category>
		<category><![CDATA[file system]]></category>
		<category><![CDATA[fuse]]></category>
		<category><![CDATA[install-deinstall]]></category>
		<category><![CDATA[make-install]]></category>
		<category><![CDATA[tagging]]></category>

		<guid isPermaLink="false">http://localhost/it/?p=82</guid>
		<description><![CDATA[Installation of tagsistant requires SQLite and FUSE, in Ubuntu they are satisfied as libsqlite3-dev and libfuse-dev (which will also requires libselinux1-dev and libsepol1-dev). A series of configure, make, and make-install will fail during the make-install. /usr/local/share/pixmaps must be created first before running $ sudo make install After that I test tagsistant to organize /data/tags/ $ [...]]]></description>
				<content:encoded><![CDATA[<p>Installation of <strong>tagsistant</strong> requires SQLite and FUSE, in Ubuntu they are satisfied as libsqlite3-dev and libfuse-dev (which will also requires libselinux1-dev and libsepol1-dev). A series of configure, make, and make-install will fail during the make-install. <code>/usr/local/share/pixmaps</code> must be created first before running</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>After that I test tagsistant to organize <code>/data/tags/</code></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ tagsistant <span style="color: #000000; font-weight: bold;">/</span>data<span style="color: #000000; font-weight: bold;">/</span>tags</pre></div></div>

<p>The tagging works as expected but not too handy since no browser GUI is embedded. It is just like browsing through multiple OR and AND folders.</p>
<p>The installation process will also install <strong>tagman</strong> (a tag manager GUI) if <code>libgtk2.0-dev</code> and <code>libglib2.0-dev</code> are installed.</p>
]]></content:encoded>
			<wfw:commentRss>https://lakm.us/logit/2009/09/tagsistant-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>
