<?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/"
	xmlns:series="https://publishpress.com/"
	
	>
<channel>
	<title>
	Comments on: Auto mounting a USB drive in a Raspberry Pi	</title>
	<atom:link href="https://krystof.io/auto-mounting-a-usb-drive-in-a-raspberry-pi/feed/" rel="self" type="application/rss+xml" />
	<link>https://krystof.io/auto-mounting-a-usb-drive-in-a-raspberry-pi/</link>
	<description>Numerous hobbies, various ramblings.</description>
	<lastBuildDate>Mon, 29 Apr 2024 12:17:58 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.2.9</generator>
	<item>
		<title>
		By: Eric R. Krystof		</title>
		<link>https://krystof.io/auto-mounting-a-usb-drive-in-a-raspberry-pi/#comment-423</link>

		<dc:creator><![CDATA[Eric R. Krystof]]></dc:creator>
		<pubDate>Mon, 29 Apr 2024 12:17:58 +0000</pubDate>
		<guid isPermaLink="false">https://krystof.io/?p=1026#comment-423</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://krystof.io/auto-mounting-a-usb-drive-in-a-raspberry-pi/#comment-422&quot;&gt;Nicholas Collier&lt;/a&gt;.

I&#039;m sorry, Nicholas - I don&#039;t have a V5 to try this out on and see!  This is an older post though, so perhaps there are more updated methods to do this.  If I run across any or can bench test this on a 5 I&#039;ll update the post.  Good luck!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://krystof.io/auto-mounting-a-usb-drive-in-a-raspberry-pi/#comment-422">Nicholas Collier</a>.</p>
<p>I&#8217;m sorry, Nicholas &#8211; I don&#8217;t have a V5 to try this out on and see!  This is an older post though, so perhaps there are more updated methods to do this.  If I run across any or can bench test this on a 5 I&#8217;ll update the post.  Good luck!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Nicholas Collier		</title>
		<link>https://krystof.io/auto-mounting-a-usb-drive-in-a-raspberry-pi/#comment-422</link>

		<dc:creator><![CDATA[Nicholas Collier]]></dc:creator>
		<pubDate>Sun, 28 Apr 2024 16:33:34 +0000</pubDate>
		<guid isPermaLink="false">https://krystof.io/?p=1026#comment-422</guid>

					<description><![CDATA[I got this working on a Raspberry Pi 4, but I tries it on a Raspberry Pi 5 and it failed. Any idea why?]]></description>
			<content:encoded><![CDATA[<p>I got this working on a Raspberry Pi 4, but I tries it on a Raspberry Pi 5 and it failed. Any idea why?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Eric R. Krystof		</title>
		<link>https://krystof.io/auto-mounting-a-usb-drive-in-a-raspberry-pi/#comment-189</link>

		<dc:creator><![CDATA[Eric R. Krystof]]></dc:creator>
		<pubDate>Thu, 04 Aug 2022 17:50:26 +0000</pubDate>
		<guid isPermaLink="false">https://krystof.io/?p=1026#comment-189</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://krystof.io/auto-mounting-a-usb-drive-in-a-raspberry-pi/#comment-187&quot;&gt;Neil&lt;/a&gt;.

I&#039;ve not tried this on the latest Bullseye.  Things always have to change. :(  I was assuming sda1 or the like myself, since the parameter is fed in from the service.  If I get a chance to try this on the latest version of Raspbian soon I&#039;ll see if I can tweak it.  This article in particular was a bit of me scrounging around per the references.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://krystof.io/auto-mounting-a-usb-drive-in-a-raspberry-pi/#comment-187">Neil</a>.</p>
<p>I&#8217;ve not tried this on the latest Bullseye.  Things always have to change. 🙁  I was assuming sda1 or the like myself, since the parameter is fed in from the service.  If I get a chance to try this on the latest version of Raspbian soon I&#8217;ll see if I can tweak it.  This article in particular was a bit of me scrounging around per the references.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Neil		</title>
		<link>https://krystof.io/auto-mounting-a-usb-drive-in-a-raspberry-pi/#comment-188</link>

		<dc:creator><![CDATA[Neil]]></dc:creator>
		<pubDate>Tue, 02 Aug 2022 10:43:49 +0000</pubDate>
		<guid isPermaLink="false">https://krystof.io/?p=1026#comment-188</guid>

					<description><![CDATA[Sorry formatting messed up. The &quot;up ticks&quot; are there]]></description>
			<content:encoded><![CDATA[<p>Sorry formatting messed up. The &#8220;up ticks&#8221; are there</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Neil		</title>
		<link>https://krystof.io/auto-mounting-a-usb-drive-in-a-raspberry-pi/#comment-187</link>

		<dc:creator><![CDATA[Neil]]></dc:creator>
		<pubDate>Tue, 02 Aug 2022 10:42:44 +0000</pubDate>
		<guid isPermaLink="false">https://krystof.io/?p=1026#comment-187</guid>

					<description><![CDATA[Since it doesn&#039;t work for me I extracted this into a separate script:

&lt;pre class=&quot;ql-syntax&quot; spellcheck=&quot;false&quot;&gt;#!/bin/bash

PART=$1
FS_LABEL=&lt;code&gt;lsblk -o name,label &#124; grep ${PART} &#124; awk &#039;{print $2}&#039;&lt;/code&gt;
echo $PART
echo $LABEL






&lt;/pre&gt;and did run in on RPI 4 BullsEye command line.

Result is

Usage: grep [OPTION]... PATTERNS [FILE]...
Try &#039;grep --help&#039; for more information.

What exactly do you want to achieve? Do you know what $1 is in practice? Can only guess &quot;sda1&quot; in my case...]]></description>
			<content:encoded><![CDATA[<p>Since it doesn&#8217;t work for me I extracted this into a separate script:</p>
<pre class="ql-syntax" spellcheck="false">#!/bin/bash

PART=$1
FS_LABEL=<code>lsblk -o name,label | grep ${PART} | awk '{print $2}'</code>
echo $PART
echo $LABEL






</pre>
<p>and did run in on RPI 4 BullsEye command line.</p>
<p>Result is</p>
<p>Usage: grep [OPTION]&#8230; PATTERNS [FILE]&#8230;<br />
Try &#8216;grep &#8211;help&#8217; for more information.</p>
<p>What exactly do you want to achieve? Do you know what $1 is in practice? Can only guess &#8220;sda1&#8221; in my case&#8230;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Eric R. Krystof		</title>
		<link>https://krystof.io/auto-mounting-a-usb-drive-in-a-raspberry-pi/#comment-143</link>

		<dc:creator><![CDATA[Eric R. Krystof]]></dc:creator>
		<pubDate>Mon, 29 Nov 2021 14:30:53 +0000</pubDate>
		<guid isPermaLink="false">https://krystof.io/?p=1026#comment-143</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://krystof.io/auto-mounting-a-usb-drive-in-a-raspberry-pi/#comment-142&quot;&gt;James&lt;/a&gt;.

Thank you, James!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://krystof.io/auto-mounting-a-usb-drive-in-a-raspberry-pi/#comment-142">James</a>.</p>
<p>Thank you, James!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: James		</title>
		<link>https://krystof.io/auto-mounting-a-usb-drive-in-a-raspberry-pi/#comment-142</link>

		<dc:creator><![CDATA[James]]></dc:creator>
		<pubDate>Sun, 28 Nov 2021 16:41:54 +0000</pubDate>
		<guid isPermaLink="false">https://krystof.io/?p=1026#comment-142</guid>

					<description><![CDATA[Thanks for this. I&#039;m planning to use it on a headless Pi running MPD to add music when it finds a specific folder on a USB stick when the USB stick is plugged in. One thing to note, according to Arch Linux documentation[&lt;a href=&quot;https://wiki.archlinux.org/title/Systemd#Writing_unit_files&quot; target=&quot;_blank&quot; rel=&quot;noopener nofollow ugc&quot;&gt;1&lt;/a&gt;]:

&lt;ul&gt;&lt;li&gt;&lt;code&gt;/usr/lib/systemd/system/&lt;/code&gt;: units provided by installed packages&lt;/li&gt;&lt;li&gt;&lt;code&gt;/etc/systemd/system/&lt;/code&gt;: units installed by the system administrator&lt;/li&gt;&lt;/ul&gt;
And rather than reboot, UDEV should automatically detect new rules[&lt;a href=&quot;https://wiki.archlinux.org/title/Udev#Loading_new_rules&quot; target=&quot;_blank&quot; rel=&quot;noopener nofollow ugc&quot;&gt;2&lt;/a&gt;], but if it fails to:
&lt;pre class=&quot;ql-syntax&quot; spellcheck=&quot;false&quot;&gt;udevadm control --reload
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>Thanks for this. I&#8217;m planning to use it on a headless Pi running MPD to add music when it finds a specific folder on a USB stick when the USB stick is plugged in. One thing to note, according to Arch Linux documentation[<a href="https://wiki.archlinux.org/title/Systemd#Writing_unit_files" target="_blank" rel="noopener nofollow ugc">1</a>]:</p>
<ul>
<li><code>/usr/lib/systemd/system/</code>: units provided by installed packages</li>
<li><code>/etc/systemd/system/</code>: units installed by the system administrator</li>
</ul>
<p>And rather than reboot, UDEV should automatically detect new rules[<a href="https://wiki.archlinux.org/title/Udev#Loading_new_rules" target="_blank" rel="noopener nofollow ugc">2</a>], but if it fails to:</p>
<pre class="ql-syntax" spellcheck="false">udevadm control --reload
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Eric R. Krystof		</title>
		<link>https://krystof.io/auto-mounting-a-usb-drive-in-a-raspberry-pi/#comment-118</link>

		<dc:creator><![CDATA[Eric R. Krystof]]></dc:creator>
		<pubDate>Sun, 07 Mar 2021 15:58:25 +0000</pubDate>
		<guid isPermaLink="false">https://krystof.io/?p=1026#comment-118</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://krystof.io/auto-mounting-a-usb-drive-in-a-raspberry-pi/#comment-117&quot;&gt;shameerariff&lt;/a&gt;.

Thank you!]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://krystof.io/auto-mounting-a-usb-drive-in-a-raspberry-pi/#comment-117">shameerariff</a>.</p>
<p>Thank you!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: shameerariff		</title>
		<link>https://krystof.io/auto-mounting-a-usb-drive-in-a-raspberry-pi/#comment-117</link>

		<dc:creator><![CDATA[shameerariff]]></dc:creator>
		<pubDate>Sun, 07 Mar 2021 15:48:21 +0000</pubDate>
		<guid isPermaLink="false">https://krystof.io/?p=1026#comment-117</guid>

					<description><![CDATA[Awesome MAN....]]></description>
			<content:encoded><![CDATA[<p>Awesome MAN&#8230;.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
