You are not logged in.

#1 2023-07-01 16:16:35

cjclm7
Member
Registered: 2022-07-12
Posts: 7

[SOLVED] - external USB devices not being recognized by arch linux

I have a laptop macbookpro running macos, windows, archlinux and fedora flawlessly (using rEFInd to select each OS to run at boot).

The issue is that when running macOS Ventura, Windows or Fedora, the external disks (USB pen drives formatted Fat32 or USB external disks formatted exFAT) are automatically recognised (once I plug in the USB-C cable or pen drive) and I can read and write files into it. That does't happen when I connect thee USB external devices while using Arch Linux: the external USB devices are not recognized.

What I have already checked/tried:
    1 - packages dosfstools exfatprogs udisks2 are installed
    2 - package exfat-utils is not installed (conflicts with exfatprogs)
    3 - lsblk command does not show the USB devices neither does blkid
    4 - created a udev rule at /etc/udev/rules.d/50-hotplugusbdisk.rules with rule's code:
       

ACTION=="add", SUBSYSTEMS=="usb", SUBSYSTEM=="block", ENV{ID_FS_USAGE}=="filesystem", \
                          RUN{program}+="/usr/bin/systemd-mount --no-block --automount=yes --collect $devnode"

    5 - run  # udevadm monitor and then plugin the USB device but it does not detect it
    6 - run # dmesg -w then plug in USB device but no new messages


Do I need to install any other pacman package or change any other config file to have the external disk being recognized automatically?

Last edited by cjclm7 (2023-07-01 19:57:42)

Offline

#2 2023-07-01 19:03:38

seth
Member
Registered: 2012-09-03
Posts: 59,061

Re: [SOLVED] - external USB devices not being recognized by arch linux

5 - run  # udevadm monitor and then plugin the USB device but it does not detect it
6 - run # dmesg -w then plug in USB device but no new messages

Plug a fat32 usb key and then please post your complete system journal for the boot:

sudo journalctl -b | curl -F 'f:1=<-' ix.io

No dmesg output whatsoever would imply that the entire usb stack is dead.

You need to do something if you want the drives to be automounted (eg. that udev rule), but not to have it show up in dmesg/lsusb/lsblk.

Edit: for a d'ohh moment

pacman -Qs firmware

Last edited by seth (2023-07-01 19:04:36)

Offline

#3 2023-07-01 19:40:16

cjclm7
Member
Registered: 2022-07-12
Posts: 7

Re: [SOLVED] - external USB devices not being recognized by arch linux

No output (run command after Plug a fat32 usb key) from

sudo journalctl -b | curl -F 'f:1=<-' ix.io

Output of

pacman -Qs firmware

local/apple-bcm-firmware 13.0-1
    Wi-Fi and Bluetooth Firmware from macOS Big Sur for T2 and M1 Macs
local/linux-firmware 20230625.ee91452d-3
    Firmware files for Linux
local/linux-firmware-whence 20230625.ee91452d-3
    Firmware files for Linux - contains the WHENCE license file which documents the vendor license
    details

Offline

#4 2023-07-01 19:42:51

seth
Member
Registered: 2012-09-03
Posts: 59,061

Re: [SOLVED] - external USB devices not being recognized by arch linux

No output (run command after Plug a fat32 usb key) from

You're supposed to get a url from that.

Offline

#5 2023-07-01 19:56:38

cjclm7
Member
Registered: 2022-07-12
Posts: 7

Re: [SOLVED] - external USB devices not being recognized by arch linux

I have solved the issue following archlinux wiki page:

https://wiki.archlinux.org/title/Udisks

on section 5 - Troubleshooting
5.8 - Hidden Devices

Now I can plug in USB fat32 drives and my external disk USB exfat

Last edited by cjclm7 (2023-07-01 19:59:33)

Offline

#6 2024-01-11 15:36:49

Pablo12345678901
Member
Registered: 2024-01-11
Posts: 1

Re: [SOLVED] - external USB devices not being recognized by arch linux

Running MacBook Pro 14,1 with Arch Linux as OS and I confirm that this is still valid (section now called 5.1).

I had to copy the file located
/usr/lib/udev/rules.d/80-udisks2.rules
to
/etc/udev/rules.d/80-udisks2.rules
and needed to remove the last part ("# Devices which should not be display in the user interface" and below).

Last edited by Pablo12345678901 (2024-01-12 08:15:13)

Offline

#7 2024-11-08 16:25:58

spontex
Member
Registered: 2024-11-08
Posts: 1

Re: [SOLVED] - external USB devices not being recognized by arch linux

Thank you very much, this worked for me

Offline

Board footer

Powered by FluxBB