External disk with ext4 doesn’t auto-mount

I have an external SSD in a NVME USB enclosure, with an EXT4 file-system. When I plug it in, it doesn’t auto-mount, and haven’t done so for a while.

Most other external disks do auto-mount.

I finally figured out why, and how to fix it.

There’s a default UDEV rule in /usr/lib/udev/rules.d/64-ext4.rules:

SUBSYSTEM=="block", ENV{ID_FS_TYPE}=="ext2|ext3|ext4|ext4dev|jbd", ENV{UDISKS_AUTO}="0"

Change the final “0” to a “1” and reload the udev rules, and the disks auto-mount.

To reload udev without rebooting, use this command:

udevadm control --reload-rules && udevadm trigger

Plug in your disk, and it’ll mount automatically. Finally!


Comments

Likes

Leave a Reply

Your email address will not be published. Required fields are marked *

To respond on your own website, enter the URL of your response which should contain a link to this post’s permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post’s URL again. (Find out more about Webmentions.)