我创建了一条 udev 规则,用于在插入 USB 硬盘时自动挂载它,但驱动器并未显示为已挂载。在 /var/log/messages 中,我可以看到
Dec 27 09:11:02 smug ntfs-3g[6043]: Version 2014.2.15 integrated FUSE 27
Dec 27 09:11:02 smug ntfs-3g[6043]: Mounted /dev/sdb1 (Read-Write, label "Seagate Expansion Drive", NTFS 3.1)
Dec 27 09:11:02 smug ntfs-3g[6043]: Cmdline options: rw,noexec,nosuid,nodev,users
Dec 27 09:11:02 smug ntfs-3g[6043]: Mount options: rw,noexec,nosuid,nodev,users,allow_other,nonempty,relatime,fsname=/dev/sdb1,blkdev,blksize=4096
Dec 27 09:11:02 smug ntfs-3g[6043]: Ownership and permissions disabled, configuration type 1
Dec 27 09:11:02 smug ntfs-3g[6043]: Unmounting /dev/sdb1 (Seagate Expansion Drive)
Dec 27 09:11:03 smug ntfs-3g[6051]: Version 2014.2.15 integrated FUSE 27
Dec 27 09:11:03 smug ntfs-3g[6051]: Mounted /dev/sdb1 (Read-Write, label "Seagate Expansion Drive", NTFS 3.1)
Dec 27 09:11:03 smug ntfs-3g[6051]: Cmdline options: rw,noexec,nosuid,nodev,users
Dec 27 09:11:03 smug ntfs-3g[6051]: Mount options: rw,noexec,nosuid,nodev,users,allow_other,nonempty,relatime,fsname=/dev/sdb1,blkdev,blksize=4096
Dec 27 09:11:03 smug ntfs-3g[6051]: Ownership and permissions disabled, configuration type 1
Dec 27 09:11:03 smug ntfs-3g[6051]: Unmounting /dev/sdb1 (Seagate Expansion Drive)
而且我不明白为什么它在安装后就被卸载,并且两次:这一定是 systemd-udevd 的怪癖,但我在手册页中没有找到任何相关内容。
欢迎任何帮助,谢谢!