GNU bug report logs - #78574
gnome-disks cannot format partitions unless udisksd is run as root

Previous Next

Package: guix;

Reported by: Denis 'GNUtoo' Carikli <GNUtoo <at> cyberdimension.org>

Date: Sat, 24 May 2025 02:30:02 UTC

Severity: normal

To reply to this bug, email your comments to 78574 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#78574; Package guix. (Sat, 24 May 2025 02:30:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Denis 'GNUtoo' Carikli <GNUtoo <at> cyberdimension.org>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sat, 24 May 2025 02:30:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Denis 'GNUtoo' Carikli <GNUtoo <at> cyberdimension.org>
To: bug-guix <at> gnu.org
Subject: gnome-disks cannot format partitions unless udisksd is run as root
Date: Sat, 24 May 2025 04:28:28 +0200
[Message part 1 (text/plain, inline)]
Hi,

When running gnome-disks, even as root, I cannot format partitions with
it: the only "filesystem" that works is "unformated".

Ext4 seems available but when selected it fails to format the partition
and the rest of the filesystems are greyed out.

This is with (service udisks-service-type) in my system configuration.

However if run 'killall udisksd' and manually run udisksd as root,
gnome-disks can format most filesystems.

What happens behind the scenes is that gnome-disks uses some dbus
wrapper functions to ask the information to Udisks2 through the
/org/freedesktop/UDisks2/Manager org.freedesktop.UDisks2.Manager
CanFormat function. It then caches it.

I've confirmed with d-spy that this function returns true with
parameters like like 'exfat' (with the quotes) when udisksd runs as
root and false when it doesn't.

Udisksd then uses the bd_fs_can_mkfs function from blockdev to get the
information. I've not read yet the bd_utils_check_util_version that
does the actual check though. 

I've also tried to call bd_fs_can_mkfs in a standalone C program but it
didn't work (it probably needs a bit more setup than copying the
udisksd call to it).

And I also didn't look at the udisks-service-type yet. I'll try to find
more time to dig into bd_utils_check_util_version to understand why it
fails.

PS: I've tried to send a bug report on Codeberg to be able to test it
    but I only found 'guix-mirror' and no way to bug report there yet
    and I can't see the only bug report either due to Anubis even while
    being logged to Codeberg.

Denis.
[Message part 2 (application/pgp-signature, inline)]

This bug report was last modified today.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.