<?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=6054&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] Strange filemanager behaviour]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=6054</link>
		<description><![CDATA[The most recent posts in [SOLVED] Strange filemanager behaviour.]]></description>
		<lastBuildDate>Sat, 07 Oct 2023 14:53:08 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] Strange filemanager behaviour]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=44780#p44780</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>GlennW wrote:</cite><blockquote><div><p>... data on separate partitions, even on another ssd.<br />... mounted through fstab in /home/$USER/local/ ...</p></div></blockquote></div><p>I&#039;ve thought about something similar.</p><p>But decided it was a better option to make back-ups via <span class="bbc">backintime</span> and then back those up via <span class="bbc">rsync</span> to a recovered WD-MBLive running on OpenWRT.</p><p>Worked quite well till it didn&#039;t and stopped using it.<br />Fortunately, files were not lost but I now have to see how to avoid it happening again.</p><div class="quotebox"><cite>GlennW wrote:</cite><blockquote><div><p>... a bit chatty today...</p></div></blockquote></div><p>Not at all, thanks for your input.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Sat, 07 Oct 2023 14:53:08 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=44780#p44780</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Strange filemanager behaviour]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=44766#p44766</link>
			<description><![CDATA[<p>I have al my data on separate partitions, even on another ssd.</p><p>All are mounted through fstab in /home/$USER/local/ ...</p><p>I find it easier for me to put them there rather than in the system, /media or /mnt.</p><p>Also the permissions are different to yours because they are all (except other OS&#039;s) mounted at boot.</p><p>I use a few symlinks for my home folder from those data partitions like, documents, bin, build, music, pictures...videos...</p><p>A collection of backups there too that I need to be careful not to change the perms on those.</p><p>Anyway, I&#039;m a bit chatty today... :-) I hope this helps someone.</p>]]></description>
			<author><![CDATA[dummy@example.com (GlennW)]]></author>
			<pubDate>Fri, 06 Oct 2023 23:56:51 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=44766#p44766</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Strange filemanager behaviour]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=44750#p44750</link>
			<description><![CDATA[<div class="quotebox"><cite>chris2be8 wrote:</cite><blockquote><div><p>... updatedb ran when the filesystem was not mounted ...</p></div></blockquote></div><p>Right.<br />Which is why the files ended up <em>hiding</em> when <span class="bbc">updatedb</span> ran with the <em>usually</em> unmounted FS and showed up again if/when when I happened to run <span class="bbc">updatedb</span> whith the FS mounted. </p><p>Hmm ...<br />I have come to think that Murphy works in mysterious ways ...&#160; 8^°&#039;</p><p>Thanks for your input. </p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Fri, 06 Oct 2023 17:01:33 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=44750#p44750</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Strange filemanager behaviour]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=44747#p44747</link>
			<description><![CDATA[<div class="quotebox"><cite>Altoid wrote:</cite><blockquote><div><p>But the <span class="bbc">locate</span> result came up repeatedly, seems that it could find the hidden files.</p></div></blockquote></div><p>From <span class="bbc">man locate</span><br />locate reads one or more databases prepared by updatedb(8) and writes file names matching at least one of the PATTERNs to standard output, one per line.</p><p>So if updatedb ran when the filesystem was not mounted it would find the &quot;hidden&quot; files and put them into the database. So running locate repeatedly would always show them, until the next updatedb run.</p>]]></description>
			<author><![CDATA[dummy@example.com (chris2be8)]]></author>
			<pubDate>Fri, 06 Oct 2023 16:07:33 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=44747#p44747</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Strange filemanager behaviour]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=44737#p44737</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>One way ...<br />... would be to rsync /DATA to /media/storage/ when nothing is mounted at /media/storage.<br />... when you do mount something there, it will hide /media/storage/DATA.</p></div></blockquote></div><p>I see.<br />That could have easily happened.</p><div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>... &#039;locate&#039; shows you what it found the last time updatedb ...</p></div></blockquote></div><p>Yes.<br />But the <span class="bbc">locate</span> result came up repeatedly, seems that it could find the hidden files.<br />Which is the reason I set out to see where they were.</p><p>Thanks for your input.<br />Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Fri, 06 Oct 2023 09:39:37 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=44737#p44737</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Strange filemanager behaviour]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=44713#p44713</link>
			<description><![CDATA[<p>One way to get into this situation would be to rsync /DATA to /media/storage/ when nothing is mounted at /media/storage. Then when you do mount something there, it will hide /media/storage/DATA.</p><p>To fix it, you could get fancy with overlay mounts so that DATA did not get covered, but moving it out as already suggested is a much better idea.</p><p>&#039;locate&#039; shows you what it found the last time updatedb ran, which might be different from what files exist now. updatedb usually runs once a day.</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Thu, 05 Oct 2023 19:03:04 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=44713#p44713</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Strange filemanager behaviour]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=44710#p44710</link>
			<description><![CDATA[<p>Hello:</p><p>Thank you for the prompt reply.<br />Much appreciated.</p><div class="quotebox"><cite>chris2be8 wrote:</cite><blockquote><div><p>... what fstab says may be a red herring.</p></div></blockquote></div><p>I see.</p><div class="quotebox"><cite>chris2be8 wrote:</cite><blockquote><div><p>... the mount point is a directory in your root filesystem, and some files and directories have been moved into there when the /media/storage filesystem is not mounted.</p></div></blockquote></div><p>Hmm ...</p><p>So <span class="bbc">fstab</span> was not working properly?</p><div class="quotebox"><cite>chris2be8 wrote:</cite><blockquote><div><p>... I suggest:</p></div></blockquote></div><p>Done.</p><p>I then copied everything back to where it <em>should</em> have been ie: /media/storage/DATA and after checking everything was in place, deleted <span class="bbc">/media/storage2</span>.</p><p>I was in a very ugly mood for the longest while when I &quot;lost&quot; all those files, so many thanks for this.</p><div class="quotebox"><cite>chris2be8 wrote:</cite><blockquote><div><p>I&#039;ve had to get at data buried under a mount point ...</p></div></blockquote></div><p>But why did this happen?<br />It was (undoubtedly) of my own doing but I cannot imagine what I did.</p><p>I would like to avoid going through this again.</p><p>Thanks in advance.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Thu, 05 Oct 2023 17:07:09 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=44710#p44710</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Strange filemanager behaviour]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=44709#p44709</link>
			<description><![CDATA[<p>I think what fstab says may be a red herring. What seems to have happened is that the mount point is a directory in your root filesystem, and some files and directories have been moved into there when the /media/storage filesystem is not mounted.</p><p>To recover I suggest:<br /><span class="bbc">df -k /media/storage</span><br />If the filesystem is mounted there unmount it, and re-check with <span class="bbc">df -k /media/storage</span> to make sure it&#039;s not mounted now.<br />As root:<br /><span class="bbc">cd /media</span><br /><span class="bbc">ls -al</span><br />Make sure there is not a storage2 dir already!<br /><span class="bbc">mv storage storage2</span><br /><span class="bbc">mkdir storage</span><br />Then storage2 will contain all the recovered data and the process of mounting the filesystem when needed should still work.</p><p>I&#039;ve had to get at data buried under a mount point *without* unmounting the filesystem. But I would not recommend doing that unless you fully understand the process (NFS doesn&#039;t cross mountpoints, so mounting the root filesystem via NFS lets you get there. But it&#039;s a tricky process.)</p>]]></description>
			<author><![CDATA[dummy@example.com (chris2be8)]]></author>
			<pubDate>Thu, 05 Oct 2023 16:30:17 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=44709#p44709</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] Strange filemanager behaviour]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=44707#p44707</link>
			<description><![CDATA[<p>Hello:</p><p>I have come across something I am at odds with and don&#039;t understand.</p><p>I have a drive where I store data and has this <span class="bbc">fstab</span> entry:</p><p># -------------------------------------------------------------------------------------<br />#<br /># not automatically mounted - root only<br /># storage repository in 300Gb SAS s/n JHX71JDC<br /># was LABEL=storage&#160; /media&#160; ext4&#160; defaults,auto&#160; 0&#160; 2<br />UUID=74649bbb-7fb9-46bc-990a-d3d96dd92dd9 /media/storage ext4 nouser,noauto&#160; 0&#160; 2<br />#<br /># -------------------------------------------------------------------------------------</p><p>Early on, I went from <span class="bbc">defaults,auto&#160; 0&#160; 2</span> to <span class="bbc">nouser,noauto&#160; 0&#160; 2</span> so that is would not be mounted at all times, only when I needed to access it.</p><p>The thing is that if I want to mount it, I get the usual &quot;Authenticate&quot; pop-up asking for my password and once entered, I see what I think is the content.<br />ie:<br />/media/storage -&gt; 9 folders + 9 files<br />Total count: 8817 files<br />Size on disk: 14.2Gib</p><p>Some time ago, I lost a great deal of files to a misconfigured <span class="bbc">rsync</span> ...&#160; &#160;... or so I thought.</p><p>Today I accidentally stumbled (via locate) on one of those files, stored in <span class="bbc">/media/storage/DATA</span>, one of the folders I thought was long gone along with its content.</p><p>So I fired up <span class="bbc">PCMan</span>, had a look but it was nowhere to be seen.<br />ie: it was <em>not</em> one of the 9 folders under <span class="bbc">/media/storage</span>.</p><p>I entered <span class="bbc">/media/storage/DATA</span> in the <span class="bbc">PCMan</span> address bar only to get a pop-up which informed me that it was not a valid directory.</p><p>On a hunch, I unmounted the <span class="bbc">/media/storage</span> volume in <span class="bbc">PCMan</span>, entered <span class="bbc">/media/storage/DATA</span> in the address bar and there it was.</p><p>Not only that: all the files I thought I had lost were there.</p><p>I think there is some sort of permission problem at hand, no idea how this happened.</p><p>When I select all the files ie: <span class="bbc">/media/storage -&gt; 9 folders + 9 files</span> and select properties, the <span class="bbc">Owner</span> and <span class="bbc">Group</span> fields are blank.<br />In Access Control, view content is blank and Change content reads Only owner.</p><p>In <span class="bbc">/media/storage/DATA</span> the <span class="bbc">Owner</span> and <span class="bbc">Group</span> fields read root (grayed out).<br />In Access Control, view content is reads Anyone Change content reads Only owner.<br />&#160; <br />I don&#039;t understand what is going on.<br />I always thought that if <span class="bbc">fstab</span> read <span class="bbc">nouser,noauto</span> that was it.</p><p>ie: access did not depend on the ownership of the files it contained, just on being admin/root.</p><p>What am I missing?<br />Most importantly, how can I fix this?</p><p>Thanks in advance.</p><p>Best,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Thu, 05 Oct 2023 15:30:28 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=44707#p44707</guid>
		</item>
	</channel>
</rss>
