You are not logged in.

#1 2026-05-15 13:56:26

midian
Member
Registered: 2019-02-21
Posts: 59

directory ownership with ntfs-3g

Hi all,
I often work with external ntfs-formatted drives and have the bug reported at the ntfs3 mailing list (basically, too many I/O operations crash the current command.)

As a workaround I created a conf in /etc/udisks2 with:

[defaults]
ntfs_drivers=ntfs-3g

so now my drives are managed by the fuse driver, which is much slower but doesn't crash.

However, now git refuses to work as all the directories appear owned by root.
Is there a way to make fuse treat all directories as owned by the default user instead of root? I know it can be done in fstab for a specific drive using uid=$UID,gid=$GID but I want it to be the default for all ntfs drives.

Thanks in advance.

Last edited by midian (2026-05-15 14:32:27)

Offline

#2 2026-05-15 14:45:54

GerBra
Forum Fellow
From: Bingen/Germany
Registered: 2007-05-10
Posts: 273

Re: directory ownership with ntfs-3g

Don't use it myself but...

Have you looked at this?
Some examples in this section: https://wiki.archlinux.org/title/Udisks … nt_failing
https://storaged.org/doc/udisks2-api/la … tions.html
General topic: https://wiki.archlinux.org/title/Udisks

//edit:

midian wrote:

Is there a way to ...

There is always a way to the fine Wiki... <g>

Last edited by GerBra (2026-05-15 14:48:12)


My avatar: "It's not just a toilet... a FERGUSON. The King of bowls. Sit down and give me your best shot." Al Bundy

Offline

#3 2026-05-15 14:56:13

midian
Member
Registered: 2019-02-21
Posts: 59

Re: directory ownership with ntfs-3g

I've tried adding this line in my conf:

ntfs:ntfs_defaults=uid=$UID,gid=$GID

but after mounting the disk all directories still appear as owned by root:root (so git complains "fatal: detected dubious ownership in repository")

Last edited by midian (2026-05-17 15:23:36)

Offline

Board footer

Powered by FluxBB