<?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=8041&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / udisksctl Error “GDBus.Error:org.freedesktop.UDisks2.Error.NotMounted”]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=8041</link>
		<description><![CDATA[The most recent posts in udisksctl Error “GDBus.Error:org.freedesktop.UDisks2.Error.NotMounted”.]]></description>
		<lastBuildDate>Fri, 12 Jun 2026 16:09:07 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: udisksctl Error “GDBus.Error:org.freedesktop.UDisks2.Error.NotMounted”]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=64281#p64281</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>I can confirm that the issue is not with labels, at least not that alone.&#160; Perhaps it&#039;s a combination of label and apfs, or even just an issue with apfs.</p></div></blockquote></div><p>I have just done a test with a file-based loopback device with two <em>ext4</em> partitions—one with a label, and one without, and you’re right: both will mount and unmount properly.</p><p>So, apparently something goes wrong with APFS; unfortunately, I have no access to a labelled APFS partition, hence I cannot test that combination.</p><div class="quotebox"><blockquote><div><p>You should probably report it to upstream.</p></div></blockquote></div><p>I wouldn’t mind doing so, but I don’t have a GitHub account; I’m reluctant to creating one, after I have cleaned up a whole range of accounts on various web sites.</p>]]></description>
			<author><![CDATA[dummy@example.com (luvr)]]></author>
			<pubDate>Fri, 12 Jun 2026 16:09:07 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=64281#p64281</guid>
		</item>
		<item>
			<title><![CDATA[Re: udisksctl Error “GDBus.Error:org.freedesktop.UDisks2.Error.NotMounted”]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=64276#p64276</link>
			<description><![CDATA[<p>I can confirm that the issue is not with labels, at least not that alone.&#160; Perhaps it&#039;s a combination of label and apfs, or even just an issue with apfs.<br />I did a file-based loopback device, with vfat and ext and swap partitions.&#160; None of them have lables, but udisksctl worked properly on them all (except swap which won&#039;t mount).<br />The vfat partition: </p><div class="codebox"><pre><code>udisksctl info --block-device /dev/loop0p1
/org/freedesktop/UDisks2/block_devices/loop0p1:
...
  org.freedesktop.UDisks2.Filesystem:
    MountPoints:        /media/tempo/D5A1-A960
    Size:               0
...</code></pre></div><p>One of the ext4 partitions: </p><div class="codebox"><pre><code>udisksctl info --block-device /dev/loop0p2
/org/freedesktop/UDisks2/block_devices/loop0p2:
...
  org.freedesktop.UDisks2.Filesystem:
    MountPoints:        /media/tempo/fa4de3c0-b3c5-4352-81c6-f3447ad475c6
    Size:               5626658816
...</code></pre></div><p>&#160; In all of these cases, <span class="bbc">udisksctl unmount</span> worked.</p>]]></description>
			<author><![CDATA[dummy@example.com (rbit)]]></author>
			<pubDate>Fri, 12 Jun 2026 02:49:51 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=64276#p64276</guid>
		</item>
		<item>
			<title><![CDATA[Re: udisksctl Error “GDBus.Error:org.freedesktop.UDisks2.Error.NotMounted”]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=64273#p64273</link>
			<description><![CDATA[<p><a href="https://github.com/storaged-project/udisks/issues/548" rel="nofollow">https://github.com/storaged-project/udisks/issues/548</a></p><p>You should probably report it to upstream. I am positive it has nothing to do with labels. If a filesystem lacks a label, udisks uses UUID instead and it works for &quot;traditional&quot; linux filesystems like ext, btrfs, vfat etc. Could be some bug in the mounting routine.</p><p>Not related to your question, but if you only want read-only access, as a temporary measure, save it somewhere as a root owned file and just use losetup/mount directly via sudo/doas/etc. Like <span class="bbc">sudo /usr/local/bin/mount-umount-ssd.sh mount</span>.</p>]]></description>
			<author><![CDATA[dummy@example.com (Alverstone)]]></author>
			<pubDate>Thu, 11 Jun 2026 18:25:01 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=64273#p64273</guid>
		</item>
		<item>
			<title><![CDATA[udisksctl Error “GDBus.Error:org.freedesktop.UDisks2.Error.NotMounted”]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=64272#p64272</link>
			<description><![CDATA[<p>I got a dump of a complete Apple MacBook Air system disk, and I’m trying to access it through the <strong>‘udisksctl’</strong> utility, so I can read its contents. It mostly works—I installed the <em>“apfs-dkms”</em> package to support the APFS Apple filesystem.</p><p>There’s one little snag that I’m running into, however, in that the <strong>‘udisksctl’</strong> utility runs into an error when I attempt to <em>unmount</em> the APFS filesystem; the standard <strong>‘umount’</strong> command, on the other hand, <em>will</em> successfully unmount the filesystem.</p><p>I think I understand the cause of the problem; it looks like <strong>‘udisksctl’</strong> doesn’t record the mount point of a filesystem that doesn’t have a <em>label</em>; when it is subsequently instructed to unmount the filesystem, it thinks it wasn’t mounted in the first place, and consequently won’t unmount it. I have no idea how to get this issue resolved, however.</p><p><strong><span style="color: red">Just to illustrate the issue, the remainder of this post will explain what I’m doing, and where exactly it goes wrong.</span></strong></p><p>The dump file is called <strong>‘APPLE_SSD_SM0128.DMP’;</strong> I first associate a loop device with the file:</p><div class="codebox"><pre><code>$ /usr/bin/udisksctl loop-setup --read-only --file APPLE_SSD_SM0128.DMP
Mapped file APPLE_SSD_SM0128.DMP as /dev/loop0.</code></pre></div><p>Since I will be running this in a script, I want to catch the name of the loop device into a variable; the <strong>‘losetup’</strong> utility will eventually help me out here:</p><div class="codebox"><pre><code>$ /sbin/losetup --output NAME,BACK-FILE --associated APPLE_SSD_SM0128.DMP
NAME       BACK-FILE
/dev/loop0 /mnt/local/Legacy/Apple MacBook Air/APPLE_SSD_SM0128.DMP</code></pre></div><p>Next, I list the partitions that are present in the dump file:</p><div class="codebox"><pre><code>$ /bin/lsblk --output TYPE,PATH,FSTYPE,LABEL,MOUNTPOINT --list /dev/loop0
TYPE PATH         FSTYPE LABEL MOUNTPOINT
loop /dev/loop0
part /dev/loop0p1 vfat   EFI
part /dev/loop0p2 apfs</code></pre></div><p>I can mount the first partition alright:</p><div class="codebox"><pre><code>$ /usr/bin/udisksctl mount --block-device /dev/loop0p1
Mounted /dev/loop0p1 at /media/luvr/EFI</code></pre></div><p>If I list the partitions again, then I can clearly see the mountpoint:</p><div class="codebox"><pre><code>$ /bin/lsblk --output TYPE,PATH,FSTYPE,LABEL,MOUNTPOINT --list /dev/loop0
TYPE PATH         FSTYPE LABEL MOUNTPOINT
loop /dev/loop0
part /dev/loop0p1 vfat   EFI   /media/luvr/EFI
part /dev/loop0p2 apfs</code></pre></div><p>The partition will unmount cleanly as well:</p><div class="codebox"><pre><code>$ /usr/bin/udisksctl unmount --block-device /dev/loop0p1
Unmounted /dev/loop0p1.</code></pre></div><p>Now it’s time to try the same with the second partition on the dump file:</p><div class="codebox"><pre><code>$ /usr/bin/udisksctl mount --block-device /dev/loop0p2
Mounted /dev/loop0p2 at /media/luvr/2a0db02b-d459-4583-a12f-f83c395bfe6d
$ /bin/lsblk --output TYPE,PATH,FSTYPE,LABEL,MOUNTPOINT --list /dev/loop0
TYPE PATH         FSTYPE LABEL MOUNTPOINT
loop /dev/loop0                
part /dev/loop0p1 vfat   EFI   
part /dev/loop0p2 apfs         /media/luvr/2a0db02b-d459-4583-a12f-f83c395bfe6d</code></pre></div><p>So far, so good; so, let’s <em>unmount</em> again:</p><div class="codebox"><pre><code>$ /usr/bin/udisksctl unmount --block-device /dev/loop0p2
Error unmounting /dev/loop0p2: GDBus.Error:org.freedesktop.UDisks2.Error.NotMounted: Device `/dev/loop0p2&#039; is not mounted</code></pre></div><p>Hmmm… That does <strong>not</strong> seem to work.</p><p>What <em>does</em> work, is the <strong>‘umount’</strong> command:</p><div class="codebox"><pre><code>$ sudo umount /dev/loop0p2
[sudo] password for root:</code></pre></div><p>After this, I can clean up and break the association between the loop device and the dump file:</p><div class="codebox"><pre><code>$ /usr/bin/udisksctl loop-delete --block-device /dev/loop0</code></pre></div><p><strong><span style="color: red">Where does the <em>‘udisksctl’</em> Utility go wrong?</span></strong></p><p>After some further investigation, I believe that <em>‘udisksctl’</em> won’t record the mount point of a partition for which no <em>label</em> was set. Indeed, when the <em>first</em> partition—which has its filesystem label set to <strong>“EFI”</strong>—is mounted, its info, as reported by the <em>‘udisksctl’</em> utility will correctly report the mountpoint (see the <em>“MountPoints:”</em> line below):</p><div class="codebox"><pre><code>$ /usr/bin/udisksctl info --block-device /dev/loop0p1
/org/freedesktop/UDisks2/block_devices/loop0p1:
  org.freedesktop.UDisks2.Block:
  .
  .
  .
  org.freedesktop.UDisks2.Filesystem:
    MountPoints:        /media/luvr/EFI
    Size:               0
  org.freedesktop.UDisks2.Partition:
  .
  .
  .</code></pre></div><p>When, on the other hand, the <em>second</em> partition—which has no label assigned to it—is mounted, the mountpoint, as reported by the <em>‘udisksctl’</em> utility, will remain blank (again, see the <em>“MountPoints:”</em> line below—the value is missing):</p><div class="codebox"><pre><code>$ /usr/bin/udisksctl info --block-device /dev/loop0p2
/org/freedesktop/UDisks2/block_devices/loop0p2:
  org.freedesktop.UDisks2.Block:
  .
  .
  .
  org.freedesktop.UDisks2.Filesystem:
    MountPoints:
    Size:               0
  org.freedesktop.UDisks2.Partition:
  .
  .
  .</code></pre></div><p>This looks like a fairly small error in the code—at least for someone who can make sense of it; I’m afraid, though, that I’m not such a <em>“someone”.</em> <img src="https://dev1galaxy.org/img/smilies/sad.png" width="15" height="15" alt="sad" /></p>]]></description>
			<author><![CDATA[dummy@example.com (luvr)]]></author>
			<pubDate>Thu, 11 Jun 2026 17:56:42 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=64272#p64272</guid>
		</item>
	</channel>
</rss>
