<?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=8041&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] udisksctl Error “GDBus.Error:org.freedesktop.UDisks2.Error.NotMounted”]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=8041</link>
		<description><![CDATA[The most recent posts in [SOLVED] udisksctl Error “GDBus.Error:org.freedesktop.UDisks2.Error.NotMounted”.]]></description>
		<lastBuildDate>Thu, 27 Aug 2026 20:16:24 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] udisksctl Error “GDBus.Error:org.freedesktop.UDisks2.Error.NotMounted”]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=65331#p65331</link>
			<description><![CDATA[<p>Sorry for the delay, but I’ve been going through some health issues lately.</p><p>Anyhow, i have just installed a <strong>Debian 13 (trixie)</strong> system, to test the <strong>‘apfs-dkms’</strong> package and to try and reproduce the problem under Debian proper.</p><p><strong>Result:</strong> Under Debian 13, mounting and unmounting an APFS partition on a disk dump file using the <strong>‘udisksctl’</strong> utility works fine; I presume, then, that under Devuan 6 (excalibur), it will also work (since that is based on Debian 13). I therefore consider the problem solved.</p><p>P.S.: I don&#039;t really like Debian 13 (trixie), since it won’t let me remove GRUB without installing <em>‘systemd-boot’.</em> Who came up with that idea? I want neither GRUB, nor systemd-boot, since I don’t want Debian (or any other system, for that matter) to mess with my <em>EFI System Partition</em>; I&#039;m prepared to clean up the ESP right after a system (e.g., Devuan) insists on setting up GRUB upon initial install, but after that, it should leave my ESP alone; <em>‘systemd-boot’</em> in particular is pretty aggressive in that regard, in that it wipes away my <em>/boot/efi/EFI/BOOT/BOOTX64.EFI</em> (as provided by Limine) and replaces it with its own version. YUCK!</p><p>I’ll simply dump Debian and replace it with Devuan 6; I already installed it once on an Apple MacBook Air, and it appears to be well-behaved.</p><p><strong><span style="color: red">UPDATE:</span></strong> I have just tested the <strong>‘udisksctl’</strong> utility to mount and unmount an APFS partition under Devuan 6 (excalibur) and, as expected, it works fine. Problem definitely solved!</p><p><strong><span style="color: red">UPDATE—QUICK (admittedly, off-topic) NOTE:</span></strong> Even though, by default, Debian 13 (trixie) wouldn’t let me remove GRUB without installing <em>‘systemd-boot’,</em> I eventually succeeded in avoiding having either boot loader on the system. All I had to do, was to purge the <em>‘shim-signed’</em> package first:</p><div class="codebox"><pre><code># apt purge shim-signed
The following packages were automatically installed and are no longer required:
  mokutil  shim-helpers-amd64-signed  shim-signed-common  shim-unsigned
Use &#039;apt autoremove&#039; to remove them.

REMOVING:
  shim-signed*

Summary:
  Upgrading: 0, Installing: 0, Removing: 1, Not Upgrading: 0
  Freed space: 1,068 kB

Continue? [Y/n] Y
(Reading database ... 110520 files and directories currently installed.)
Removing shim-signed:amd64 (1.51~1+deb13u1+16.1-2~deb13u1) ...
Installing for x86_64-efi platform.
Installation finished. No error reported.
No DKMS packages installed: not changing Secure Boot validation state.
(Reading database ... 110516 files and directories currently installed.)
Purging configuration files for shim-signed:amd64 (1.51~1+deb13u1+16.1-2~deb13u1) ...
Installing for x86_64-efi platform.
Installation finished. No error reported.
No DKMS packages installed: not changing Secure Boot validation state.</code></pre></div><p>(I have no use for <em>‘shim-signed’,</em> since I have <em>“Secure”</em> Restricted Boot disabled.)</p><p>I then also ran the auto-removal step that the output of the above command suggested:</p><div class="codebox"><pre><code># apt --purge autoremove
REMOVING:
  mokutil*  shim-helpers-amd64-signed*  shim-signed-common*  shim-unsigned*

Summary:
  Upgrading: 0, Installing: 0, Removing: 4, Not Upgrading: 0
  Freed space: 3,190 kB

Continue? [Y/n] Y
(Reading database ... 110516 files and directories currently installed.)
Removing shim-signed-common (1.51~1+deb13u1+16.1-2~deb13u1) ...
Removing mokutil (0.7.2-1) ...
Removing shim-helpers-amd64-signed (1+16.1+2~deb13u1) ...
Removing shim-unsigned:amd64 (16.1-2~deb13u1) ...
Processing triggers for man-db (2.13.1-1) ...
(Reading database ... 110490 files and directories currently installed.)
Purging configuration files for shim-signed-common (1.51~1+deb13u1+16.1-2~deb13u1) ...
Purging configuration files for shim-helpers-amd64-signed (1+16.1+2~deb13u1) ...</code></pre></div><p>I could subsequently remove GRUB:</p><div class="codebox"><pre class="vscroll"><code># apt purge --allow-remove-essential &#039;grub*&#039;
.
.
.
The following packages were automatically installed and are no longer required:
  efibootmgr  libefiboot1t64  libefivar1t64
Use &#039;apt autoremove&#039; to remove them.

REMOVING:
  grub-common*  grub-efi-amd64*  grub-efi-amd64-bin*  grub-efi-amd64-signed*  grub-efi-amd64-unsigned*  grub2-common*  os-prober*

WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  grub-efi-amd64-signed  grub-common (due to grub-efi-amd64-signed)

Summary:
  Upgrading: 0, Installing: 0, Removing: 7, Not Upgrading: 0
  Freed space: 42.6 MB

Continue? [Y/n] Y
(Reading database ... 110490 files and directories currently installed.)
Removing os-prober (1.83) ...
dpkg: warning: while removing os-prober, directory &#039;/var/lib/os-prober&#039; not empty so not removed
Removing grub-efi-amd64 (2.12-9+deb13u2) ...
Removing grub2-common (2.12-9+deb13u2) ...
Removing grub-efi-amd64-bin (2.12-9+deb13u2) ...
dpkg: warning: overriding problem because --force enabled:
dpkg: warning: this is a protected package; it should not be removed
Removing grub-efi-amd64-signed (1+2.12+9+deb13u2) ...
Removing grub-efi-amd64-unsigned (2.12-9+deb13u2) ...
Removing grub-common (2.12-9+deb13u2) ...
Processing triggers for man-db (2.13.1-1) ...
(Reading database ... 109977 files and directories currently installed.)
Purging configuration files for grub2-common (2.12-9+deb13u2) ...
Purging configuration files for grub-common (2.12-9+deb13u2) ...
dpkg: warning: while removing grub-common, directory &#039;/var/lib/grub/ucf&#039; not empty so not removed
Purging configuration files for grub-efi-amd64 (2.12-9+deb13u2) ...
Purging configuration files for grub-efi-amd64-bin (2.12-9+deb13u2) ...</code></pre></div><p>Afterwards, I did a bit of cleanup:</p><ul><li><p>Reviewed the warnings, i.e., checked and deleted directories <em>‘/var/lib/os-prober’</em> and <em>‘/var/lib/grub/ucf’</em> (after which&#160; <em>‘/var/lib/grub’</em> could also be deleted);</p></li><li><p>Marked <em>‘efibootmgr’</em> as manually installed—after which no packages remained to be auto-removed;</p></li><li><p>Ran <em>‘efibootmgr’</em> to clean up the EFI Boot Menu;</p></li><li><p>Cleaned up the ESP (<em>“EFI System Partition”</em>), i.e., deleted its <em>‘debian’</em> subdirectory;</p></li><li><p>Cleaned up the&#160; <em>‘/boot’</em> directory, i.e., deleted its <em>‘grub’</em> subdirectory.</p></li></ul><p><strong>Done!</strong></p>]]></description>
			<author><![CDATA[dummy@example.com (luvr)]]></author>
			<pubDate>Thu, 27 Aug 2026 20:16:24 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=65331#p65331</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] udisksctl Error “GDBus.Error:org.freedesktop.UDisks2.Error.NotMounted”]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=64304#p64304</link>
			<description><![CDATA[<p>Please read this <a href="https://www.debian.org/Bugs/Reporting" rel="nofollow">https://www.debian.org/Bugs/Reporting</a> You&#039;re using your e-mail to report bugs.</p>]]></description>
			<author><![CDATA[dummy@example.com (Alverstone)]]></author>
			<pubDate>Mon, 15 Jun 2026 14:43:40 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=64304#p64304</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] udisksctl Error “GDBus.Error:org.freedesktop.UDisks2.Error.NotMounted”]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=64303#p64303</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>No github is required to report bugs - that&#039;s what <span class="bbc">reportbug</span> is for.&#160; I think you&#039;ll want to use <span class="bbc">-B debian</span> since udisks2 is not a forked package.</p></div></blockquote></div><p>You mean, I could report this to Debian from this Devuan system?</p><p>Alternatively, I could install an up-to-date Debian system, and report it from there; I have been thinking of giving Debian another try anyway. Would that be more efficient, or wouldn’t it really matter?</p>]]></description>
			<author><![CDATA[dummy@example.com (luvr)]]></author>
			<pubDate>Mon, 15 Jun 2026 13:59:25 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=64303#p64303</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] udisksctl Error “GDBus.Error:org.freedesktop.UDisks2.Error.NotMounted”]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=64282#p64282</link>
			<description><![CDATA[<p>No github is required to report bugs - that&#039;s what <span class="bbc">reportbug</span> is for.&#160; I think you&#039;ll want to use <span class="bbc">-B debian</span> since udisks2 is not a forked package.</p>]]></description>
			<author><![CDATA[dummy@example.com (rbit)]]></author>
			<pubDate>Fri, 12 Jun 2026 21:11:29 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=64282#p64282</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] udisksctl Error “GDBus.Error:org.freedesktop.UDisks2.Error.NotMounted”]]></title>
			<link>http://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>http://dev1galaxy.org/viewtopic.php?pid=64281#p64281</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] udisksctl Error “GDBus.Error:org.freedesktop.UDisks2.Error.NotMounted”]]></title>
			<link>http://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>http://dev1galaxy.org/viewtopic.php?pid=64276#p64276</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] udisksctl Error “GDBus.Error:org.freedesktop.UDisks2.Error.NotMounted”]]></title>
			<link>http://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>http://dev1galaxy.org/viewtopic.php?pid=64273#p64273</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] udisksctl Error “GDBus.Error:org.freedesktop.UDisks2.Error.NotMounted”]]></title>
			<link>http://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="http://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>http://dev1galaxy.org/viewtopic.php?pid=64272#p64272</guid>
		</item>
	</channel>
</rss>
