<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=3419&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Having trouble with tmpfs]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=3419</link>
		<description><![CDATA[The most recent posts in Having trouble with tmpfs.]]></description>
		<lastBuildDate>Thu, 02 Apr 2020 15:39:26 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Having trouble with tmpfs]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=20935#p20935</link>
			<description><![CDATA[<p>Have you looked in <span class="bbc">/etc/default/tmpfs</span>?</p><p>You can set things like :-</p><div class="codebox"><pre><code># mount /tmp as a tmpfs.  Defaults to no; set to yes to enable (/tmp
# will be part of the root filesystem if disabled).  /tmp may also be
# configured to be a separate mount in /etc/fstab.
RAMTMP=yes</code></pre></div><p>Geoff</p>]]></description>
			<author><![CDATA[dummy@example.com (Geoff 42)]]></author>
			<pubDate>Thu, 02 Apr 2020 15:39:26 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=20935#p20935</guid>
		</item>
		<item>
			<title><![CDATA[Re: Having trouble with tmpfs]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=20916#p20916</link>
			<description><![CDATA[<div class="quotebox"><cite>shiztivr wrote:</cite><blockquote><div><p>the discard option that was stopping my tmpfs folders from being mounted</p></div></blockquote></div><p>Yeah, RAM doesn&#039;t support TRIM.</p><p>Don&#039;t apply options that you don&#039;t understand.</p><p>From mount(8):</p><div class="quotebox"><blockquote><div><p><strong>discard</strong><br />If set, causes discard/TRIM commands to be issued to the block device when blocks are freed. This is useful for SSD devices and sparse/thinly-provisioned LUNs.</p></div></blockquote></div><p>So you should only use that option for SSDs that support TRIM (confirm with <span class="bbc">lsblk --discard</span>).</p><p>Also note that /dev/shm and /run are already mounted with tmpfs by default.</p><div class="quotebox"><cite>shiztivr wrote:</cite><blockquote><div><p>I came across a couple of problems.</p></div></blockquote></div><p>You should stick to a single problem per thread.</p><p>FWIW automounting of USB sticks is handled by GVFS &amp; udisks2 via thunar (the file manager), it has nothing to do with the init system.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Thu, 02 Apr 2020 11:16:02 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=20916#p20916</guid>
		</item>
		<item>
			<title><![CDATA[Re: Having trouble with tmpfs]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=20913#p20913</link>
			<description><![CDATA[<p>I just added the user option to every tmpfs line, however whenever I enter <em>mount -a</em> in the terminal, I get this error message.</p><div class="codebox"><pre><code>mount: wrong fs type, bad option, bad superblock on ramdisk[...], 
missing codepage or helper program, or other error

In some cases useful info is found in syslog - try dmesg | tail or so</code></pre></div><p>I tried <em>dmesg | tail</em> and found out that it was the discard option that was stopping my tmpfs folders from being mounted so I removed them, tried <em>mount -a</em> again and then got this message.</p><div class="codebox"><pre><code>mount: /run: filesystem mounted, but mount(8) failed: No such file or directory
mount: mount point /var/lock is a symbolic link to nowhere
mount: /run: filesystem mounted, but mount(8) failed: No such file or directory
mount: /dev/shm: filesystem mounted, but mount(8) failed: No such file or directory
mount: /dev/johndoe/Downloads: filesystem mounted, but mount(8) failed: No such file or directory</code></pre></div><p>However, I tested each and every one of my tmpfs folders by adding an empty file into them and rebooting. They were gone from all of them once I rebooted so it looks like my ramdisk is fully working.</p><p><strong>However, during this ordeal, I came across a couple of problems.</strong></p><p>Whenever I tried to open /etc/fstab with nano (even with sudo) on the terminal, it opens the file but it shows up blank with a message reading <em><strong>Error reading lock file /etc/.fstab.spwp: Not enough data read</strong></em>.</p><p>Also, when inserting USB sticks used to mount them automatically, they are unmounted and clicking them in the file explorer brings up a password prompt to eject them and my user password doesn&#039;t work. It happened. I think, after I fixed the tmpfs.</p><p>My only guess is that it could be caused by OpenRC (the init software I am using), being in the experimental phase.<br />I also installed Devuan without any non-free or contrib software</p>]]></description>
			<author><![CDATA[dummy@example.com (shiztivr)]]></author>
			<pubDate>Thu, 02 Apr 2020 09:57:32 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=20913#p20913</guid>
		</item>
		<item>
			<title><![CDATA[Re: Having trouble with tmpfs]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=20898#p20898</link>
			<description><![CDATA[<p>You want to add a mount option to /home/johndoe/Downloads: &quot;user&quot; or maybe even &quot;users.&quot;<br />From <a href="https://linux.die.net/man/8/mount" rel="nofollow">mount(8)</a></p><div class="quotebox"><blockquote><div><p>user&#160; &#160;Allow an ordinary user to mount the filesystem.&#160; The name of the mounting user is written to the mtab<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; file (or to the private libmount file in /run/mount on systems without a regular mtab) so&#160; that&#160; this<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; same&#160; user&#160; can&#160; unmount&#160; the&#160; filesystem again.&#160; This option implies the options noexec, nosuid, and<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; nodev (unless overridden by subsequent options, as in the option line user,exec,dev,suid).</p><p>&#160; &#160; &#160; &#160;nouser Forbid an ordinary user to mount the filesystem.&#160; This is the default; it does not&#160; imply&#160; any&#160; other<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; options.</p><p>&#160; &#160; &#160; &#160;users&#160; Allow any user to mount and to unmount the filesystem, even when some other ordinary user mounted it.<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; This option implies the options noexec, nosuid, and nodev (unless overridden by&#160; subsequent&#160; options,<br />&#160; &#160; &#160; &#160; &#160; &#160; &#160; as in the option line users,exec,dev,suid).</p></div></blockquote></div>]]></description>
			<author><![CDATA[dummy@example.com (bgstack15)]]></author>
			<pubDate>Wed, 01 Apr 2020 19:11:48 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=20898#p20898</guid>
		</item>
		<item>
			<title><![CDATA[Having trouble with tmpfs]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=20894#p20894</link>
			<description><![CDATA[<p>I&#039;ve been taking a stab at making tmpfs ramdisks on a Devuan virtual machine.</p><p>Here is my setup in /etc/fstab</p><div class="codebox"><pre><code>ramdisktmp /tmp tmpfs rw,discard,noatime,nosuid,noexec,nodev,mode=1777,size=2G 0 0
ramdiskrun /run tmpfs rw,discard,noatime,nosuid,noexec,nodev,mode=1777,size=2G 0 0
ramdiskvarlock /var/lock tmpfs rw,discard,noatime,nosuid,noexec,nodev,mode=1777,size=2G 0 0
ramdiskvarrun /var/run tmpfs rw,discard,noatime,nosuid,noexec,nodev,mode=1777,size=2G 0 0
ramdisktmp /dev/shm tmpfs rw,discard,noatime,nosuid,noexec,nodev,mode=1777,size=2G 0 0
ramdiskhome /home/johndoe/Downloads tmpfs rw,discard,noatime,nosuid,noexec,nodev,mode=1777,size=8G 0 0</code></pre></div><p>I was hoping to move these directories above into tmpfs ramdisks, including my Home&#039;s downloads folder.<br />I tested it out by putting an empty text file in the downloads folder then reboot the VM.<br />But upon booting up, I found the file was still there when it should&#039;ve been wiped out with the RAM.<br />That same Downloads folder, as I defined in the fstab file, was also visible as a mountable disk, like an external drive, on the desktop although I wasn&#039;t able to without root access.</p><p>To elaborate, although I can still access the Downloads folder in the file explorer, I can&#039;t mount it from the desktop. Whenever I do, I get the following error message.</p><p><strong>Mount Failed</strong><br /><em>mount: only root can mount ramdiskhome on /home/johndoe/Downloads</em></p><p>Any help would be much appreciated.<br />Thanks.</p>]]></description>
			<author><![CDATA[dummy@example.com (shiztivr)]]></author>
			<pubDate>Wed, 01 Apr 2020 18:32:17 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=20894#p20894</guid>
		</item>
	</channel>
</rss>
