<?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=3200&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Refracta Snapshot VM mount points question.]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=3200</link>
		<description><![CDATA[The most recent posts in Refracta Snapshot VM mount points question..]]></description>
		<lastBuildDate>Sat, 07 Dec 2019 15:15:10 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Refracta Snapshot VM mount points question.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=18835#p18835</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>I use optical media, too.<br />... directories under /media that are needed get created automatically. I think udev takes care of that.</p></div></blockquote></div><p>OK</p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>... directories you made under /media, take a look at the rsync excludes ...<br />... comment out one or more of the following lines, as needed.<br />Like this:</p><div class="codebox"><pre><code>#- /cdrom/*
#- /media/*</code></pre></div><p>Do the same with /usr/lib/refractainstaller/installer_exclude.list</p></div></blockquote></div><p>Great ...&#160; =-)</p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>To add a line to fstab in the installer, you just need to add this line:</p><div class="codebox"><pre><code>echo -e &quot;/dev/sr0\t/media/cdrom\tauto\tnoauto,owner,ro,users\t0\t0&quot; &gt;&gt; /target/etc/fstab</code></pre></div><p>... right after the section that adds the swap line to fstab.<br />... starts around line 1430 in /usr/bin/refractainstaller and around line 1570 in /usr/bin/refractainstaller-yad.</p><p>The last two lines in the following code block are what you need to add.</p><div class="codebox"><pre><code># add entry for swap to fstab if needed
if [[ $use_existing_swap = &quot;yes&quot; ]] ; then
        if [[ $use_uuid = yes ]]; then
                swap_part=&quot;$(/sbin/blkid -s UUID $swap_dev | awk &#039;{ print $2 }&#039; | sed &#039;s/\&quot;//g&#039;)&quot;
        else
                swap_part=&quot;$swap_dev&quot;
        fi
        echo -e $&quot;\n Adding swap entry to fstab...\n&quot;
        echo -e &quot;$swap_part\tswap\tswap\tdefaults\t0\t0&quot; &gt;&gt; /target/etc/fstab
else
        echo -e &quot;/swapfile\tswap\tswap\tdefaults\t0\t0&quot; &gt;&gt; /target/etc/fstab
fi

# Make entry for cdrom in fstab
echo -e &quot;/dev/sr0\t/media/cdrom\tauto\tnoauto,owner,ro,users\t0\t0&quot; &gt;&gt; /target/etc/fstab</code></pre></div></div></blockquote></div><p>Thank you so much for taking the time to explain/write all this up.</p><p>I&#039;ll try it and see how it goes.<br />Just in case, <em>this</em> time I&#039;ll have a snapshot of the VM available.</p><p>Fortunately, I have <span class="bbc">backintime</span> installled so I did not have to redo <span class="bbc">all</span> my previous work after I went edit-happy with <span class="bbc">/ect/fstab</span>.</p><p>With respect to seeing the devices in Xfe, I remembered <span class="bbc">gnome-disk-utility</span> and decided to try it out on the VM and things got easier.<br />Not too heavy on the file system but certainly dangerous to use without the proper attention.</p><p>eg: that readily available <span class="bbc">delete selected partition</span> button ...</p><p>Have a good week-end.<br />Cheers,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Sat, 07 Dec 2019 15:15:10 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=18835#p18835</guid>
		</item>
		<item>
			<title><![CDATA[Re: Refracta Snapshot VM mount points question.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=18833#p18833</link>
			<description><![CDATA[<p>I use optical media, too. Any directories under /media that are needed get created automatically. I think udev takes care of that.</p><p>To preserve any directories you made under /media, take a look at the rsync excludes list (/usr/lib/refractasnapshot/snapshot_exclude.list) and comment out one or more of the following lines, as needed.<br />Like this:</p><div class="codebox"><pre><code>#- /cdrom/*
#- /media/*</code></pre></div><p> Do the same with /usr/lib/refractainstaller/installer_exclude.list</p><p>To add a line to fstab in the installer, you just need to add this line:</p><div class="codebox"><pre><code>echo -e &quot;/dev/sr0\t/media/cdrom\tauto\tnoauto,owner,ro,users\t0\t0&quot; &gt;&gt; /target/etc/fstab</code></pre></div><p>You can put it right after the section that adds the swap line to fstab. That section starts around line 1430 in /usr/bin/refractainstaller and around line 1570 in /usr/bin/refractainstaller-yad. The last two lines in the following code block are what you need to add.</p><div class="codebox"><pre><code># add entry for swap to fstab if needed
if [[ $use_existing_swap = &quot;yes&quot; ]] ; then
        if [[ $use_uuid = yes ]]; then
                swap_part=&quot;$(/sbin/blkid -s UUID $swap_dev | awk &#039;{ print $2 }&#039; | sed &#039;s/\&quot;//g&#039;)&quot;
        else
                swap_part=&quot;$swap_dev&quot;
        fi
        echo -e $&quot;\n Adding swap entry to fstab...\n&quot;
        echo -e &quot;$swap_part\tswap\tswap\tdefaults\t0\t0&quot; &gt;&gt; /target/etc/fstab
else
        echo -e &quot;/swapfile\tswap\tswap\tdefaults\t0\t0&quot; &gt;&gt; /target/etc/fstab
fi

# Make entry for cdrom in fstab
echo -e &quot;/dev/sr0\t/media/cdrom\tauto\tnoauto,owner,ro,users\t0\t0&quot; &gt;&gt; /target/etc/fstab</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Sat, 07 Dec 2019 12:46:56 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=18833#p18833</guid>
		</item>
		<item>
			<title><![CDATA[Re: Refracta Snapshot VM mount points question.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=18830#p18830</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>fstab is excluded in the rsync copy ...<br />... gets created when you install with refractainstaller.</p></div></blockquote></div><p>OK.<br />Sort of makes sense.<br />The live *.iso would take a large portion of boot time figuring out why it was not being able to mount what fastab said <em>was</em> there and may not be. </p><p>But what I am referring to is the fact that the mount points I generated in /media ie: <span class="bbc">/media/cdrom</span> and <span class="bbc">/media/usb</span> on the VM are not copied over to the *.iso.<br />ie: there are no files in <span class="bbc">/media</span> on the live *.iso.</p><p>They survive a reboot of the VM and belong to root.<br />And I can mount a cdrom or usb to them as root.</p><p>If they do not get carried over to the live *.iso, I have to generate them everytime I boot the *.iso file.<br />Make sense?</p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>There&#039;s no entry for cdrom.<br />I haven&#039;t needed that in years.</p></div></blockquote></div><p>I still have a score or so of DVDs and CDs with data and need to access them every so often.&#160; </p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>... you&#039;d need to add a line of code to refractasnapshot.</p></div></blockquote></div><p>That&#039;s rather over my head.</p><p>Would it be possible to (eventually) add an option for that to refractasnapshot.conf? </p><p>--- ot ---<br />One of the very good things that TinyCore linux has is an application called mount tool.</p><p>A very simple desktop panel with a button for each of the drives in the system you are booting into.<br />Click on a drive and it gets mounted, click again, it gets unmounted.</p><p>I wonder if it was specially written for TCore or it has its origins in some linux application.<br />--- ot ---</p><p>Thanks in advance,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Fri, 06 Dec 2019 22:55:03 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=18830#p18830</guid>
		</item>
		<item>
			<title><![CDATA[Re: Refracta Snapshot VM mount points question.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=18829#p18829</link>
			<description><![CDATA[<p>fstab is excluded in the rsync copy when you make a snapshot.<br />fstab gets created when you install with refractainstaller. There&#039;s no entry for cdrom. I haven&#039;t needed that in years. If you do need it, I think you&#039;d need to add a line of code to refractasnapshot.</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Fri, 06 Dec 2019 21:52:01 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=18829#p18829</guid>
		</item>
		<item>
			<title><![CDATA[Re: Refracta Snapshot VM mount points question.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=18827#p18827</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>... is that a typo in this post, or a typo in &quot;fstab&quot;?</p></div></blockquote></div><p>It&#039;s a typo in fstab.<br />But the cdrom gets automatically mounted in the VM nevertheless.</p><p>[Changing it now]</p><p>Done.</p><div class="codebox"><pre><code>groucho@devuan:~$ cat /etc/fstab
rootfs    / rootfs                              rw         0   0
/dev/sr0   /media/cdrom    auto    noauto,owner,ro,users   0   0
groucho@devuan:~$ </code></pre></div><p>Thanks for the heads up.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Fri, 06 Dec 2019 21:31:57 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=18827#p18827</guid>
		</item>
		<item>
			<title><![CDATA[Re: Refracta Snapshot VM mount points question.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=18826#p18826</link>
			<description><![CDATA[<p>That missing &quot;/&quot; before &quot;dev/sr0&quot;, is that a typo in this post, or a typo in &quot;fstab&quot;?</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Fri, 06 Dec 2019 20:55:38 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=18826#p18826</guid>
		</item>
		<item>
			<title><![CDATA[Refracta Snapshot VM mount points question.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=18823#p18823</link>
			<description><![CDATA[<p>Hello:</p><p>I have set up two mount points in my Devuan ascii 2.0.0 VM ...</p><p><span class="bbc">/media/cdrom</span> and <span class="bbc">/media/usb</span>, the first one listed in <span class="bbc">/etc/fstab</span>:</p><div class="codebox"><pre><code>groucho@devuan:~$ cat /etc/fstab
rootfs    / rootfs                             rw         0   0
dev/sr0   /media/cdrom    auto    noauto,owner,ro,users   0   0
groucho@devuan:~$ </code></pre></div><p>... but when I boot the *.iso image made with RS, the mount points are not there.</p><p>Is this how it is supposed to be or am I missing something with respect to Refracta Snapshot&#039;s configuration or VMs in general?</p><p>Thanks in advance,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Fri, 06 Dec 2019 16:41:42 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=18823#p18823</guid>
		</item>
	</channel>
</rss>
