multi-device btrfs filesystem automatically mounted once for each device

Bug #991471 reported by Glyph Lefkowitz
32
This bug affects 5 people
Affects Status Importance Assigned to Milestone
btrfs (Ubuntu)
Invalid
Medium
Unassigned
Nominated for Artful by Rolf Leggewie
Nominated for Xenial by Rolf Leggewie
btrfs-tools (Ubuntu)
Confirmed
Medium
Unassigned
Nominated for Artful by Rolf Leggewie
Nominated for Xenial by Rolf Leggewie
gvfs (Ubuntu)
Confirmed
Medium
Unassigned
Nominated for Artful by Rolf Leggewie
Nominated for Xenial by Rolf Leggewie
udev (Ubuntu)
Confirmed
Medium
Unassigned
Nominated for Artful by Rolf Leggewie
Nominated for Xenial by Rolf Leggewie
udisks2 (Ubuntu)
Confirmed
Medium
Unassigned
Nominated for Artful by Rolf Leggewie
Nominated for Xenial by Rolf Leggewie

Bug Description

If I have a multi-device btrfs filesystem, and I plug it in via some removable interface (for example, USB3), it will automatically mount on the desktop multiple times. For example, if I have a filesystem labeled FooBar on /dev/sdb /dev/sdc /dev/sdd and /dev/sde, it will be mounted as /media/FooBar, /media/FooBar1, /media/FooBar2, and /media/FooBar3. It should show up only once.

It seems like everything still basically works, but I didn't test writing to said filesystem under the different aliases.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/991471/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Glyph Lefkowitz (glyph)
affects: ubuntu → btrfs-tools (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote : Re: mutli-device raid btrfs filesystem automatically mounted once for each device

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in btrfs (Ubuntu):
status: New → Confirmed
Changed in btrfs-tools (Ubuntu):
status: New → Confirmed
Changed in udev (Ubuntu):
status: New → Confirmed
Changed in udisks (Ubuntu):
status: New → Confirmed
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

btrfs package doesn't exist for a long time now.
I don't see any obvious problems with udev rules shipped in btrfs-tools.
udev & udisks are left to inspect.

Changed in btrfs (Ubuntu):
status: Confirmed → Invalid
summary: - mutli-device raid btrfs filesystem automatically mounted once for each
+ multi-device raid btrfs filesystem automatically mounted once for each
device
Revision history for this message
Rolf Leggewie (r0lf) wrote : Re: multi-device raid btrfs filesystem automatically mounted once for each device

I can confirm the problem

Changed in udev (Ubuntu):
importance: Undecided → Medium
Changed in udisks (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Rolf Leggewie (r0lf) wrote :

This is still present in trusty and xenial as confirmed by a DM (me) and a DD -> bug 1550831

summary: - multi-device raid btrfs filesystem automatically mounted once for each
- device
+ multi-device btrfs filesystem automatically mounted once for each device
Revision history for this message
Rolf Leggewie (r0lf) wrote :

moving udisks tasks to udisks2 (udisks was dropped in after vivid, trusty had both udisks and udisks2)

description: updated
tags: added: trusty xenial
affects: udisks (Ubuntu) → udisks2 (Ubuntu)
Changed in btrfs-tools (Ubuntu):
importance: Undecided → Medium
Changed in btrfs (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Rolf Leggewie (r0lf) wrote :

Interestingly enough, one of my trusty computers apparently does not exhibit this behaviour, even though udisks2 is installed. Partitions get mounted via udisks2, too.

Unfortunately, the problem seems to have gotten much worse in the latest development release. Whereas previously, each btrfs device of the btrfs FS would be mounted once, it seems that in artful, one new mount happens every few minutes. I came back to over 20 mounts on a three-device btrfs FS after a few hours. This was on a very recent live CD.

Rolf Leggewie (r0lf)
tags: added: artful
Rolf Leggewie (r0lf)
tags: added: bionic
Rolf Leggewie (r0lf)
Changed in gvfs (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Alfonso R. Reyes (alfonso-r-reyes) wrote :

The problem is not confined to Ubuntu.
I am seeing the same problem in Fedora SilverBlue 38 and Fedora SilverBlue 39.

The problem is restricted to `btrfs` only; other partitions such as ext3, ext4, NTFS look fine.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.