I'm trying to automount a USB device upon plugin but it refuses to mount. I set a rule to execute the following script : #!/bin/bashmkdir /media/mntecho AFTER MKDIR > /home/outputsleep 5echo AFTER SLEEP >> /home/outputmount /dev/sdb1 /media/mntecho $? >> /home/outputecho AFTER MOUNT >> /home/outputThe script gets executed nicely, lsblk shows that /dev/sdb1 is present, output contain all the echoes, yet sdb1 won't be mounted in /media/mnt. The mount command exit code is 0When I execute the mount command in that script manually after the USB device is plugged in it mounts it without problem.
udev won't mount the plugged in device
arch linux;mount;udev