Announcement

Collapse
No announcement yet.

Possible Dolphin bug mounting a BTRFS JOBD file system using label

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Possible Dolphin bug mounting a BTRFS JOBD file system using label

    I have numerous non-system file systems, one of which is used for storage and is labeled, strangely enough, "storage". It is a BTRFS file system spanning 2 partitions on 2 different hard drives. It is listed in /etc/fstab using the mount point of "/mnt/storage".

    Prior to upgrading to 24.04 base:
    I would open Dolphin, click on "storage" under "Devices", and it would mount at /mnt/storage. The icon under Devices would change from a hard drive icon with a red "disconnected" overlay to just the drive icon with no overlay. Subsequent clicks on storage under Devices would change the active Dolphin window to the /mnt/storage directory.

    After upgrading to 24.04 base:
    I open Dolphin, click on "storage" under "Devices", and it mounts at /mnt/storage. The icon under Devices DOES NOT change the Devices icon and the active window does not change. Subsequent clicks on storage under Devices mounts it again under /media/username/storage Additional clicks create additional media mounts as storage1, storage2, storage3, etc. The active window never changes.

    My suspicion is the cause is Dolphin no longer correctly identifying the file system label because it's a 2 partition BTRFS file system. A file system created this way, when mounted shows both partitions with the same label because it is one file system. This was also the case when using 22.04 but Dolphin handled it normally.

    Another unusual trait: the mounts created under /media require sudo to unmount even though they are mounted under my user folder.

    Off to do some testing...
    Last edited by oshunluvr; Nov 19, 2024, 01:40 PM.

    Please Read Me

    #2
    I tested this using a couple other partitions and it does the same thing. It also remounts the file system under /media but also keep the original mount.

    Please Read Me

    Comment


      #3
      I dont know it it has something to do with filesystem...maybe in the case of BTRFS.

      I always mount storage under /media and in the case i do not specifies the path, the system always mount under /media/username/XXXXXXX .

      Comment


        #4
        Does the fstab entry for /mnt/storage have the user option? If so, does the mount command work with the label in a konsole?
        Code:
        mount LABEL=storage
        Regards, John Little

        Comment


          #5
          Originally posted by jlittle View Post
          Does the fstab entry for /mnt/storage have the user option? If so, does the mount command work with the label in a konsole?
          Code:
          mount LABEL=storage
          Yes to both. Actually, "users" not "user". The only difference in the two that I'm aware of is "users" allows anyone to unmount the file system regardless of who mounted it whereas "user" only allows the user who mounted it to unmount it.

          The issue isn't whether or not it will mount, it's the behavior of Dolphin. This is a change - and a poor one - from the 22.04 versions of Dolphin.

          Another oddity: my "storage" fs behaves as described above, but a newly created "test" fs behaves slightly differently. With "storage", there's only a single entry in Devices, but test has a Devices entry for each partition in the multi-partition fs. .

          The "test" fs went like this:
          • Created 3 - 20GB partitions
          • Formatted partition 1 with btrfs and labeled it "test1"
          • Gave it an entry in fstab identical to "storage"
          • It appeared in Devices as "test1" and worked as expected.
          • I did "btrfs device add" and added the second partition to "test1".
          • It also appeared in Devices as "test1"
          • Selecting the second "test1" entry in Devices results in a additional mount under /media/
          • I did "btrfs device add" and added the third partition to "test1".
          • It also appeared in Devices as "test1"
          • Selecting the third "test1" entry in Devices results in a additional mount under /media/
          Subsequent clicks on any of the three "test1" entry results in a additional mount under /media/​​
          The second and third Device entries icons do not change.

          The behavior of "storage" and "test1" slightly different also. The initial click on "storage" does not open it in the files pane and the icon doesn't change, but it mounts it correctly.
          When unmounted; the initial click on the original of the three "test1" entries mounts it correctly and it opens in the files pane. But clicking on either of the other two entries mounts it correctly but does not open it the pane.

          So after all of that, I discovered something:
          There actually are two entries for "storage" but I had hidden one in the past. When I un-hid the second Devices entry for "storage" I see the exact same behavior as "test1". The difference is - apparently - Dolphin chooses which of the devices it mounts correctly. Somewhere during the upgrade, Dolphin changed the primary Device entry for "storage: and thus the seemingly odd re-mounting behavior and lack of focus and icon change started happening.

          The "solution" of sorts for my current situation was to un-hide the other "storage" entry in Devices and hide the one that behaves oddly. Now I am getting the behavior I desire. Still, I think this is a bug because I believe a file manager should be aware of how to manage a fairly common file system correctly.

          Please Read Me

          Comment

          Working...
          X