Bug 281686 - x11-fm/thunar: Doesn't show all extended/logical/ebr partitions at devices panel
Summary: x11-fm/thunar: Doesn't show all extended/logical/ebr partitions at devices panel
Status: Closed Not Enough Information
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Some People
Assignee: Gleb Popov
URL:
Keywords:
: 281684 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-09-24 14:43 UTC by Alexander
Modified: 2024-11-15 03:59 UTC (History)
6 users (show)

See Also:


Attachments
bug (201.27 KB, image/png)
2024-09-24 14:43 UTC, Alexander
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 Alexander Vereeken freebsd_triage 2024-09-25 05:31:48 UTC
Not sure if this problem could be bsdisk/gvfs related. CCing maintainer of it anyway.

Otherwise please feel free to correct me, thanks.
Comment 2 Gleb Popov freebsd_committer freebsd_triage 2024-09-25 05:38:01 UTC
bsdisks does this: https://foss.heptapod.net/bsdutils/bsdisks/-/blob/branch/default/block.cpp?ref_type=heads#L147

Does Linux Udisks show EFI partitions?
Comment 3 Gleb Popov freebsd_committer freebsd_triage 2024-09-25 05:38:56 UTC
In the forum thread you referenced I see strange device names like "ada0s2+00000001". I never seen these before. How to produce them?
Comment 4 Alexander 2024-09-25 09:19:35 UTC
(In reply to Gleb Popov from comment #3)
>In the forum thread you referenced I see strange device names like "ada0s2+00000001". I never seen these before. How to produce them?

its result of lsblk command
Comment 5 Alexander 2024-09-25 09:29:35 UTC
(In reply to Gleb Popov from comment #2)
its not efi partitions, this how lsblk show my disks, i am understood that issue with showing partitions at Thunar related only with such extended partitions seen like "ada0s2+00000001"

see attached screenshot to bug report
Comment 6 Gleb Popov freebsd_committer freebsd_triage 2024-09-25 10:26:53 UTC
Judging from bsdisks output those are real partitions. There are device files in /dev for them.
Comment 7 Alexander 2024-09-25 16:46:25 UTC
(In reply to Gleb Popov from comment #6)
>Judging from bsdisks output those are real partitions. There are device files in /dev for them.

yes its real extended partitions you can see this at lsblk ouput, but this partitions have strange addition "+xxxxxxxx"
Comment 8 Alexander 2024-09-25 16:55:44 UTC
(In reply to Gleb Popov from comment #6)
its similar?
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232463
Comment 9 Alexander 2024-09-25 17:19:49 UTC
(In reply to Gleb Popov from comment #6)
bsd rejecting logical partitions
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274537#c16
Comment 10 Gleb Popov freebsd_committer freebsd_triage 2024-09-25 17:50:24 UTC
Anyways, the bug is within bsdisks, but I'm afraid I won't have time for this in near future.
Comment 11 Mark Linimon freebsd_committer freebsd_triage 2024-09-25 18:54:28 UTC
*** Bug 281684 has been marked as a duplicate of this bug. ***
Comment 12 Alexander 2024-09-25 20:28:40 UTC
(In reply to Gleb Popov from comment #10)
bsdisks.log
https://pastebin.com/raw/5FjJuQXR
Comment 13 Alexander 2024-11-10 08:21:44 UTC
(In reply to Gleb Popov from comment #10)
zhopov, shitty vodka drinker, why you still not fixed this bug?) all ruz must be removed from freesoftware development, like did this Brave Linus))) also, at ghostbst bug not present.
Comment 14 Gleb Popov freebsd_committer freebsd_triage 2024-11-10 09:25:19 UTC
(In reply to Alexander from comment #13)

> also, at ghostbst bug not present.

Interesting, can you please check if "bsdisks" process is running when you're logged into a graphical session? Maybe GhostBSD folks using something else than bsdisks.

> shitty vodka drinker

I am not a casual vodka drinker, but an average beer specialist. We're at different levels.
Comment 15 commit-hook freebsd_committer freebsd_triage 2024-11-10 11:04:15 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=46a8f64a63add9ae7d52c25bf322d787f11aab0b

commit 46a8f64a63add9ae7d52c25bf322d787f11aab0b
Author:     Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2024-11-10 11:02:56 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2024-11-10 11:03:23 +0000

    sysutils/bsdisks: Update to 0.36

    PR:             281686

 sysutils/bsdisks/Makefile | 5 ++---
 sysutils/bsdisks/distinfo | 6 +++---
 2 files changed, 5 insertions(+), 6 deletions(-)
Comment 16 Gleb Popov freebsd_committer freebsd_triage 2024-11-10 11:04:39 UTC
Alexander, can you please check if this fixes the problem for you?
Comment 17 Alexander 2024-11-10 18:37:07 UTC
(In reply to Gleb Popov from comment #16)
i am not use any things that was touched by shitty ruzzians haands. ruzzians can bring only evil and shit. all ruzzians already burn in hell forever.
Comment 18 Gleb Popov freebsd_committer freebsd_triage 2024-11-10 18:38:16 UTC
Feel free to reopen this bug if the problem persists.
Comment 19 alixey 2024-11-14 16:57:39 UTC
(In reply to Gleb Popov from comment #3)
"I see strange device names like "ada0s2+00000001". I never seen these before. How to produce them?"

These are logical partitions on an MBR (Master Boot Record) disk made with Extended Boot Record (Wikipedia: https://en.wikipedia.org/wiki/Extended_boot_record). In two words: it allows to create unlimited amount of logical partitions on a disk with MBR, without it MBR only allows 4 partitions (primary partitions).
My old external HDD is also partitioned like that. MBR, one primary partition, and an extended partition that holds 2 logical partitions.
And here's what happens in FreeBSD+XFCE4 on system boot up with HDD plugged in to USB port: thunar's side panel shows the primary partition but doesn't show the logical ones.
If I plug the HDD out and then plug in again: now thunar shows logical partitions too, but they don't have the "Eject" icon which all removable media should have in thunar. The primary partition has the icon, the logical ones don't.
Also, unlike the primary that has the icon and is called "Volume 96 GB", the logical partitions are called just "Volume", so 2 of them - "Volume" and "Volume". They seem to work fine though, they are mounted on click.
This disk is properly recognized by thunar on my Devuan+XFCE4 system, all partitions, with icons, and are named as either their labels or as "Volume x GB".
So:
1. EBR based logical partitions on an MBR disk are not properly recognized on system boot on FreeBSD.
2. They are partially recognized after reconnection on the already running system.
3. They seem to not send info about their size to thunar, and thunar don't know that they are removable media (no "Eject" icon), probably the same with labels.
Comment 20 alixey 2024-11-15 03:59:36 UTC
I said that the logical partitions have the "Eject" icon in thunar on Devuan. That's not true. After double check it turns out that they don't. On Devuan Linux only the primary partition has the icon. However, the issues are:
1. the logical partitions not being displayed at the thunar side panel at system boot
2. the logical partitions are displayed as "Volume" without size after reconnect on an already running system.