Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

udisksd[1213]: failed to load module mdraid: libbd_mdraid.so.2: cannot open shared object file: No such file or director

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
postcd
Posts: 133
Joined: 2022-01-08 18:33
Has thanked: 48 times
Been thanked: 2 times

udisksd[1213]: failed to load module mdraid: libbd_mdraid.so.2: cannot open shared object file: No such file or director

#1 Post by postcd »

Hello,

during up to date Debian 11, 5.10.0-18-amd64 booting was added following log lines (discovered using "sudo journalctl -xe"):

Code: Select all

udisksd[1213]: failed to load module mdraid: libbd_mdraid.so.2: cannot open shared object file: No such file or directory
udisksd[1213]: Failed to load the 'mdraid' libblockdev plugin
kernel: Adding 42386236k swap on /dev/zram0.  Priority:100 extents:1 across:42386236k SSFS
udisksd[1213]: Error probing device: Error sending ATA command IDENTIFY DEVICE to '/dev/sdb': Unexpected sense data returned:
                                  0000: 70 00 01 00  00 00 00 0a  00 00 00 00  00 1d 00 00    p...............
                                  0010: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00    ................
                                   (g-io-error-quark, 0)
udisksd[1213]: Error probing device: Error sending ATA command IDENTIFY DEVICE to '/dev/sdc': Unexpected sense data returned:
                                  0000: 70 00 01 00  00 00 00 0a  00 00 00 00  00 1d 00 00    p...............
                                  0010: 00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00    ................
                                   (g-io-error-quark, 0)
Search engine shows articles:
https://www.cyber-neurones.org/2020/12/ ... directory/
https://eltallerdelbit.com/error-libbd- ... ubuntu-18/
https://forum.ubuntuusers.de/topic/failed-mdraid/

It appears they suggest to install 2 packages:

Code: Select all

sudo apt-get install libblockdev-crypto2 libblockdev-mdraid2
output:

Code: Select all

The following NEW packages will be installed:
  exim4-base exim4-config exim4-daemon-light gsasl-common guile-2.2-libs libblockdev-mdraid2 libbytesize-common libbytesize1 libgnutls-dane0 libgsasl7 libmailutils7 libntlm0 libunbound8 mailutils mailutils-common mdadm
After this operation, 59.2 MB of additional disk space will be used.
seems a bit redundant to install exim* mailutils (UPDATE: i can append swich --no-install-recommends !). Would you install all mentioned packages or get rid of the error using other command?

Maybe Debian not detected my external drives sdb, sdc during installation of the OS, so not installed these packages automatically.
Is this error OK, or can Debian or udisksd better handle this without error?
Last edited by postcd on 2022-09-16 09:34, edited 1 time in total.

L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

Re: udisksd[1213]: failed to load module mdraid: libbd_mdraid.so.2: cannot open shared object file: No such file or dire

#2 Post by L_V »

Assuming your disk configuration requires mraid, you need libblockdev-mdraid2

Code: Select all

/usr/lib/x86_64-linux-gnu/libbd_mdraid.so.2
libblockdev-mdraid2

Code: Select all

Depends: libblockdev-utils2 libbytesize1 libc6 libglib2.0-0 mdadm
If you don't use mraid configuration at all (which is unclear), you can blacklist mraid module to avoid this message.
Last edited by L_V on 2022-09-12 06:26, edited 1 time in total.


p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: udisksd[1213]: failed to load module mdraid: libbd_mdraid.so.2: cannot open shared object file: No such file or dire

#4 Post by p.H »

postcd wrote: 2022-09-11 09:20 It appears they suggest to install 2 packages: libblockdev-crypto2 libblockdev-mdraid2
I do not see what these messages have to do with libblockdev-crypto2.
postcd wrote: 2022-09-11 09:20 seems a bit redundant to install exim* mailutils
libblockdev-mdraid2 depends on mdadm which recommends default-mta or mail-transport-agent. Add --no-install-recommends to avoid installing one.
postcd wrote: 2022-09-11 09:20 Maybe Debian not detected my external drives sdb, sdc during installation of the OS, so not installed these packages automatically.
The messages about sdb and sdc has nothing to do with libblockdev-mdraid2 or any other missing package.
L_V wrote: 2022-09-11 09:26 You need libblockdev-mdraid2
No you don't, unless you have RAID arrays and want to manage them with udisks.

postcd
Posts: 133
Joined: 2022-01-08 18:33
Has thanked: 48 times
Been thanked: 2 times

Re: udisksd[1213]: failed to load module mdraid: libbd_mdraid.so.2: cannot open shared object file: No such file or dire

#5 Post by postcd »

p.H wrote: 2022-09-11 12:25No you don't, unless you have RAID arrays and want to manage them with udisks.
I am not using any RAID (not software, not hardware) i have only stand alone drives and i was not aware about udisks as a GUI user so when you say i do not need libblockdev-mdraid2, how do i prevent OP mentioned error best way please? I think that it is missing some dependency and it is issue/bug of Debian not installing it when it later needs it causing failures/errors.

L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

Re: udisksd[1213]: failed to load module mdraid: libbd_mdraid.so.2: cannot open shared object file: No such file or dire

#6 Post by L_V »

L_V wrote: 2022-09-11 09:26If you don't use mraid configuration at all (which is unclear), you can blacklist mraid module to avoid this message.
@postcd
Have you correctly blacklisted mraid modules or not yet ? Try to be as clear as possible.

postcd
Posts: 133
Joined: 2022-01-08 18:33
Has thanked: 48 times
Been thanked: 2 times

Re: udisksd[1213]: failed to load module mdraid: libbd_mdraid.so.2: cannot open shared object file: No such file or dire

#7 Post by postcd »

L_V wrote: 2022-09-13 08:42blacklisted mraid modules or not yet ? Try to be as clear as possible.
I do not know, it is first time i hear about "mraid" and not having RAID drives i suppose no. After some research, this is what i got:
cat /proc/mdstat
Personalities :
unused devices: <none>

$ cat /etc/mdadm.conf
cat: /etc/mdadm.conf: No such file or directory

$ sudo sysctl -a|grep raid 2>/dev/null
dev.raid.speed_limit_max = 200000
dev.raid.speed_limit_min = 1000

$ sudo lsmod|grep raid
raid6_pq 122880 1 btrfs

L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

Re: udisksd[1213]: failed to load module mdraid: libbd_mdraid.so.2: cannot open shared object file: No such file or dire

#8 Post by L_V »

postcd wrote: 2022-09-13 09:10 I do not know, it is first time i hear about "mraid" and not having RAID drives i suppose no.
This is the main problem: you don't know.
Do you at least know if you use btrfs file system ?

Code: Select all

mount |grep '^/'
If you unload btrfs and raid6_pq , do you still have access to your disks ?

Code: Select all

rmmod btrfs
rmmod raid6_pq  

postcd
Posts: 133
Joined: 2022-01-08 18:33
Has thanked: 48 times
Been thanked: 2 times

Re: udisksd[1213]: failed to load module mdraid: libbd_mdraid.so.2: cannot open shared object file: No such file or dire

#9 Post by postcd »

L_V wrote: 2022-09-13 09:41you use btrfs file system ?
no...
L_V wrote: 2022-09-13 09:41 If you unload btrfs and raid6_pq , do you still have access to your disks ?
yes...

L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

Re: udisksd[1213]: failed to load module mdraid: libbd_mdraid.so.2: cannot open shared object file: No such file or dire

#10 Post by L_V »

If you don't have a /etc/modprobe.d/blacklist.conf file, create it and add

Code: Select all

blacklist btrfs
blacklist mdraid
blacklist raid6_pq

Code: Select all

update-initramfs -u
and reboot

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: udisksd[1213]: failed to load module mdraid: libbd_mdraid.so.2: cannot open shared object file: No such file or dire

#11 Post by p.H »

Utter nonsense...

These are normal error messages, there is no point in trying to remove them.

postcd
Posts: 133
Joined: 2022-01-08 18:33
Has thanked: 48 times
Been thanked: 2 times

Re: udisksd[1213]: failed to load module mdraid: libbd_mdraid.so.2: cannot open shared object file: No such file or dire

#12 Post by postcd »

Even after applying last suggestion by @L_V the failures continue in journal. Here are all recent udisksd journal entries.

Regarding:
udisksd[1333]: failed to load module crypto: libbd_crypto.so.2: cannot open shared object file: No such file or directory
udisksd[1333]: failed to load module mdraid: libbd_mdraid.so.2: cannot open shared object file: No such file or directory
someone suggests installing additional packages:

Code: Select all

sudo apt install libblockdev-crypto2 libblockdev-mdraid2 --no-install-recommends
as said i am not having RAID now, but i may want install BTRFS to my external backup drive.

L_V
Posts: 1477
Joined: 2007-03-19 09:04
Been thanked: 11 times

Re: udisksd[1213]: failed to load module mdraid: libbd_mdraid.so.2: cannot open shared object file: No such file or dire

#13 Post by L_V »

postcd wrote: 2022-09-16 09:24 as said i am not having RAID now, but i may want install BTRFS to my external backup drive.
Then just read again my very first message.
libblockdev-mdraid2 has no recommend dependencies

Did you really try 5 days ago ???
If not, why spending more than 5 days on such really non essential "issue", spending time looking for external solutions ??
Or were you lost with some utter negative contributions which will not solve your request ?

+ blacklisting mdraid module only will not prevent btrfs module.

btrfs Depends: raid6_pq, xor libcrc32c
and raid6_pq module has no dependency.

p.H
Global Moderator
Global Moderator
Posts: 3049
Joined: 2017-09-17 07:12
Has thanked: 5 times
Been thanked: 132 times

Re: udisksd[1213]: failed to load module mdraid: libbd_mdraid.so.2: cannot open shared object file: No such file or dire

#14 Post by p.H »

L_V wrote: 2022-09-16 09:50 libblockdev-mdraid2 has no recommend dependencies
But as I wrote in a previous post, it depends on mdadm which recommends a MTA (because mdadm monitor may send alerts by mail). If you do not want to install a MTA, you must disable recommends.
L_V wrote: 2022-09-16 09:50 why spending more than 5 days on such really non essential "issue
Maybe because it is a non-issue.
L_V wrote: 2022-09-16 09:50 were you lost with some utter negative contributions which will not solve your request ?
I say it again, there is nothing to solve. These messages are normal and harmless.
Needlessly blacklisting kernel modules may be harmful.
By the way, "mdraid" is not a kernel module so blacklisting it has no effect. The message is about a udisks2 module.
Also, blacklisting a module works only if the module is called by alias (e.g. by udev hotplug), not by its real name.

postcd
Posts: 133
Joined: 2022-01-08 18:33
Has thanked: 48 times
Been thanked: 2 times

Re: udisksd[1213]: failed to load module mdraid: libbd_mdraid.so.2: cannot open shared object file: No such file or dire

#15 Post by postcd »

I have installed suggested packages:
sudo apt install libblockdev-crypto2 libblockdev-mdraid2 --no-install-recommends
And it solved failure from first post (OP) - thank you!!, now it shows only:
udisksd[8291]: udisks daemon version 2.9.2 starting
udisksd[8291]: Error probing device: Error sending ATA command IDENTIFY DEVICE to '/dev/sda': Unexpected sense data returned:
..repeated also for sdb...
udisksd[8291]: Acquired the name org.freedesktop.UDisks2 on the system message bus
(maybe it is temporary and on next boot will not appear)

Post Reply