<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=6457&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] Changing permissions on external drive]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=6457</link>
		<description><![CDATA[The most recent posts in [SOLVED] Changing permissions on external drive.]]></description>
		<lastBuildDate>Sat, 23 Mar 2024 16:58:03 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] Changing permissions on external drive]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=49116#p49116</link>
			<description><![CDATA[<p>Fixed.</p><div class="codebox"><pre><code>$ sudo umount /dev/sdb1
/dev/sdb1: recovering journal
/dev/sdb1 contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Invalid inode number for &#039;.&#039; in directory inode 112197682.
Fix&lt;y&gt;? yes
Pass 3: Checking directory connectivity
&#039;..&#039; in /.Trash-1000/files/[file names]), should be /.Trash-1000/files/[file names].
Fix&lt;y&gt;? yes
/lost+found not found.  Create&lt;y&gt;? yes
Pass 4: Checking reference counts</code></pre></div><p>Pressed y to all q&#039;s</p><div class="codebox"><pre><code>/dev/sdb1: ***** FILE SYSTEM WAS MODIFIED *****</code></pre></div><p>Read &amp; Write restored 🙏 <br />The new lost+found folder contains files that i had moved to Trash. <br />There&#039;s a new <span class="bbc">.Trash-1000</span> folder that contains .trashinfo file in the <span class="bbc">info</span> folder. When i delete the file it replicates and adds a .trashinfo extension. I&#039;ll let it be. </p><p>Permissions problem was easier to fix than it looked, thank you for your help!</p>]]></description>
			<author><![CDATA[dummy@example.com (Deze)]]></author>
			<pubDate>Sat, 23 Mar 2024 16:58:03 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=49116#p49116</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Changing permissions on external drive]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=48647#p48647</link>
			<description><![CDATA[<p>Look in /etc/fstab to see if it has an entry.</p><p>Check <span class="bbc">dmesg</span> output and syslog for messages about the device or the mountpoint.</p><p>Try <span class="bbc">e2fsck -n &lt;device&gt;</span> (-n means read only so should work for mounted devices). If that shows errors you need to *umount* the device, then run <span class="bbc">e2fsck &lt;device&gt;</span> (specify the device, not the mountpoint).</p>]]></description>
			<author><![CDATA[dummy@example.com (chris2be8)]]></author>
			<pubDate>Sun, 03 Mar 2024 17:33:02 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=48647#p48647</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Changing permissions on external drive]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=48638#p48638</link>
			<description><![CDATA[<p>@#1<br />In case the partition is mounted read-only (ro): <br />Altering the permissiion of the directory to read-write is not enough. The partition must be re-mounted read-write (rw) as well.</p><p>First check the output of mount to see whether this applies at all. (sticking to /dev/sdb1 as example)</p><div class="codebox"><pre><code>$ mount
$ sudo mount -o remount,rw /dev/sdb1</code></pre></div><p>Open question to answer is still: Why was the partiton mounted read-only at all?<br />Re-mounting the partition rw manually is curing a sympotom - if the real reason allows this at all.</p>]]></description>
			<author><![CDATA[dummy@example.com (delgado)]]></author>
			<pubDate>Sun, 03 Mar 2024 10:37:31 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=48638#p48638</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Changing permissions on external drive]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=48619#p48619</link>
			<description><![CDATA[<p>It&#039;s locked because it&#039;s mounted. Right-click on it to unmount.</p><p>Any time I&#039;ve used fsck, I&#039;ve done it on an unmounted device, like /dev/sdb1 for example. I just tried running it on a mounted filesystem, using the directory, and I got the same error you got about superblock.</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Sat, 02 Mar 2024 18:57:52 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=48619#p48619</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Changing permissions on external drive]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=48601#p48601</link>
			<description><![CDATA[<p>rolfie</p><div class="quotebox"><blockquote><div><p>To clarify: Have you replaced the placeholder &lt;user&gt; with your username? And the placeholder &lt;UUID&gt; with the correct UUID of the device?</p></div></blockquote></div><p>Yes, i replaced &lt;user&gt; and&#160; &lt;UUID&gt; with the correct names, i double-checked with # blkid and # lsblk.</p><p>In Gparted i formatted the new <em>WD Elements</em> drive as ext4. I don&#039;t remember enabling the msftdata flag. Disabling the flag isn&#039;t possible, the key icon in the Partition column probably indicates the drive is locked. I can open files, copying files to the drive and editing isn&#039;t possible.</p><p>I have no clue how this switch could have happened. Just format the thing?</p><p>Thanks.</p>]]></description>
			<author><![CDATA[dummy@example.com (Deze)]]></author>
			<pubDate>Fri, 01 Mar 2024 22:03:50 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=48601#p48601</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Changing permissions on external drive]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=48599#p48599</link>
			<description><![CDATA[<p>To clarify: Have you replaced the placeholder &lt;user&gt; with your username? And the placeholder &lt;UUID&gt; with the correct UUID of the device?</p><p>Maybe you show us with the drive connected:</p><div class="codebox"><pre><code># blkid
# lsblk</code></pre></div><p>Then: the unallocated space is fine. But why does the ext4 file system have a msftdata flag, a Windows descriptor?</p>]]></description>
			<author><![CDATA[dummy@example.com (rolfie)]]></author>
			<pubDate>Fri, 01 Mar 2024 19:25:38 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=48599#p48599</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Changing permissions on external drive]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=48597#p48597</link>
			<description><![CDATA[<p>Thank you.</p><div class="codebox"><pre><code># fsck /media/&lt;user&gt;/&lt;UUID&gt;</code></pre></div><p>Returns error message:<br />fsck.ext2: Is a directory while trying to open /media/&lt;user&gt;/&lt;UUID&gt;</p><p>The superblock could not be read or does not describe a valid ext2/ext3/ext4</p><p>Commands:</p><div class="codebox"><pre><code># e2fsck -b 8193 &lt;device&gt; </code></pre></div><div class="codebox"><pre><code># e2fsck -b 32768 &lt;device&gt;</code></pre></div><p>Error message:<br />e2fsck: Is a directory while trying to open /media/&lt;user&gt;/&lt;UUID&gt;</p><p>Gparted shows 2 partitions:<br />1. File system ext4<br />Flags: msftdata <br />2. File system 1 mb unallocated<br />No flags</p><p>Are these settings ok for a media drive?</p>]]></description>
			<author><![CDATA[dummy@example.com (Deze)]]></author>
			<pubDate>Fri, 01 Mar 2024 18:55:02 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=48597#p48597</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Changing permissions on external drive]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=48587#p48587</link>
			<description><![CDATA[<p>There might be something else going on you probably don&#039;t realize. Do the following:</p><div class="codebox"><pre><code>su #become root, alternatively sudo su
fsck /media/&lt;user&gt;/&lt;UUID&gt; #check the file system for errors and repair if required
chown &lt;user&gt; /media/&lt;user&gt;/&lt;UUID&gt; #make sure the directory is owned by the user
chmod 777 /media/&lt;user&gt;/&lt;UUID&gt; #set permissions for the directory for general access</code></pre></div><p>HTH!</p>]]></description>
			<author><![CDATA[dummy@example.com (Dutch_Master)]]></author>
			<pubDate>Thu, 29 Feb 2024 22:46:26 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=48587#p48587</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] Changing permissions on external drive]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=48585#p48585</link>
			<description><![CDATA[<p>Hi,<br />An external ext4 formatted media drive has switched to read-only. I suspect a cheap usb hub is the culprit. <br />In Nautilus as Administrator, i can&#039;t change permissions, &#039;Error setting permissions: Read-only file system&#039;</p><div class="codebox"><pre><code>$ sudo chmod g+w /media/user/UUID</code></pre></div><p>and reboot doesn&#039;t fix it.<br />Reformatting the drive would be a hassle. Are there other commands?</p>]]></description>
			<author><![CDATA[dummy@example.com (Deze)]]></author>
			<pubDate>Thu, 29 Feb 2024 21:49:10 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=48585#p48585</guid>
		</item>
	</channel>
</rss>
