Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 815256 - =xfce-extra/thunar-volman-4.16.0:0 'Unknown block device type "disk"' when mounting LUKS partition
Summary: =xfce-extra/thunar-volman-4.16.0:0 'Unknown block device type "disk"' when mo...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: XFCE Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-28 17:47 UTC by Viacheslav Gagara
Modified: 2021-10-11 10:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Viacheslav Gagara 2021-09-28 17:47:55 UTC
I have LUKS encrypted partition stored in file. It is available as /dev/loop0.
When I try to decrypt and mount it using Thunar file manager it fails with
> thunar-volman: Unknown block device type "disk".
in the logs.
Decryption part works fine because after mounting attempt mapper device appears as
> brw------- 1 root root 253, 0 Sep 28 20:13 /dev/mapper/luks-7c2735cd-b0f9-4c3a-be29-0fb80dcc9ebe 
but seems later Thunar fails to mount it.

Manual decryption and mounting works fine.
Also it was working well with same partition some time ago. So, something got broken after recent updates.

Reproducible: Always

Steps to Reproduce:
1. Take LUKS encrypted partition in file (e.g. ~/encrypted.part 
2. losetup /dev/loop0 ~/encrypted.part
3. Run Thunar and click on device icon
Actual Results:  
Thunar asks for partition password, then root password, then fails with error
> thunar-volman: Unknown block device type "disk".
in the logs

Expected Results:  
Thunar should successfully mount partition

emerge --info
Portage 3.0.23 (python 3.9.7-final-0, default/linux/amd64/17.1/desktop, gcc-11.2.0, glibc-2.33-r7, 5.14.6-gentoo x86_64)
=================================================================
System uname: Linux-5.14.6-gentoo-x86_64-Intel-R-_Core-TM-_i5-4210M_CPU_@_2.60GHz-with-glibc2.33
KiB Mem:    16283220 total,   4312668 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of repository gentoo: Tue, 21 Sep 2021 15:30:01 +0000
Head commit of repository gentoo: e9402a2378b23a9bb8f9aa3a7ee0ee6a9b794311
sh bash 5.1_p8
ld GNU ld (Gentoo 2.37_p1 p0) 2.37
ccache version 4.4.1 [disabled]
app-shells/bash:          5.1_p8::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.34.0-r2::gentoo
dev-lang/python:          3.8.12::gentoo, 3.9.7::gentoo, 3.10.0_rc2::gentoo
dev-lang/rust:            1.55.0::gentoo
dev-util/ccache:          4.4.1::gentoo
dev-util/cmake:           3.21.3::gentoo
sys-apps/baselayout:      2.7-r3::gentoo
sys-apps/openrc:          0.44.4::gentoo
sys-apps/sandbox:         2.25::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:       1.16.4::gentoo
sys-devel/binutils:       2.37_p1::gentoo
sys-devel/gcc:            11.2.0::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.14::gentoo (virtual/os-headers)
sys-libs/glibc:           2.33-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24

desna
    location: /usr/local/portage
    masters: gentoo

crossdev
    location: /usr/local/portage-crossdev
    masters: gentoo
    priority: 10

gagara
    location: /var/lib/layman/gagara
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE dlj-1.1 skype-eula AdobeFlash-10 AdobeFlash-10.1 AdobeFlash-10.3 AdobeFlash-11.x Oracle-BCLA-JavaSE google-chrome skype-4.0.0.7-copyright Skype-TOS MSttfEULA MPEG-4 xc-radley freedist unRAR linux-firmware no-source-code Canon-IJ linux-fw-redistributable NPSL all-rights-reserved"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.8/conf /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="uk uk_UA en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X Xaw3d a52 aac acl acpi alsa amd64 apache2 avahi bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus dga djvu dri dts dvd dvdr elogind emboss encode exif fastcgi flac fortran gd gdbm gif gimp gnutls gphoto2 gpm gsm gstreamer gtk gtkhtml gui guile iconv icu imap introspection ipv6 java jingle jpeg lcms ldap libglvnd libnotify libtirpc lm_sensors mad matroska mmx mmxext mng modemmanager mono mp3 mp4 mpeg mtp multilib mysql ncurses networkmanager nls nptl nsplugin ogg opengl openmp pam pango pcmcia pcre pdf png policykit postgres ppds ppp pulseaudio python qt5 rdesktop readline samba sasl sdl seccomp smp spell split-usr sse sse2 ssl ssse3 startup-notification static-libs subversion svg syslog tcpd theora threads thunar tiff truetype udev udisks unicode upower usb v4l vcd vim-syntax vnc vorbis wavpack wmf wxwidgets x264 xattr xcb xface xine xml xmp xpm xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2019" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="access access_compat auth auth_dbm auth_anon auth_digest alias file-cache echo charset-lite cache disk-cache mem-cache ext-filter case_filter case-filter-in deflate mime-magic cern-meta expires headers usertrack unique-id proxy proxy-connect proxy-ftp proxy-http info include cgi cgid dav dav-fs vhost-alias speling rewrite log_config logio env setenvif mime status autoindex asis negotiation dir imap actions userdir so filter unique_id authz_host authn_core authz_core unixd socache_shmcb" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" L10N="uk en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="intel v4l v4l2" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Comment 1 Jonas Stein gentoo-dev 2021-09-28 18:25:10 UTC
is it related to https://bugzilla.xfce.org/show_bug.cgi?id=13267 ?
Comment 2 Viacheslav Gagara 2021-09-28 18:43:36 UTC
In my case USB drives mounted w/o problems.
For this mapper device I got

# blkid -o udev -p /dev/mapper/luks-7c2735cd-b0f9-4c3a-be29-0fb80dcc9ebe 
ID_FS_UUID=a7b3e780-b5aa-4570-a0fe-af24ff399a52
ID_FS_UUID_ENC=a7b3e780-b5aa-4570-a0fe-af24ff399a52
ID_FS_VERSION=1.0
ID_FS_BLOCK_SIZE=1024
ID_FS_TYPE=ext4
ID_FS_USAGE=filesystem

Can it be somehow related to recent migration to libxcrypt?
Comment 3 Viacheslav Gagara 2021-10-11 10:42:08 UTC
Seems like the issue is connected to udisks. Not thunar.
I opened ticket upstream https://github.com/storaged-project/udisks/issues/925.
Maybe it is something gentoo-specific? Would be nice if someone else try to reproduce it.