小编jon*_*jon的帖子

在 Debian 上自动挂载 U 盘

我在插入式计算机上运行 Debian Squeeze(因此只有 SSH,没有 GUI),我想要做的是获取它,以便在插入 USB 记忆棒时,它会自动安装。

我所做的是autofs从我收集的内容中安装它来处理自动安装,前提是它知道设备在/dev.

问题是 USB 记忆棒并不总是在相同的设备名称上。有时是/dev/sdc1,有时/dev/sdd1,等等。

我认为为了解决这个问题,我需要使用udev来确保 USB 记忆棒始终具有相同的名称。

我得到了以下信息udevadm

Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single …
Run Code Online (Sandbox Code Playgroud)

debian udev automounting autofs

10
推荐指数
2
解决办法
3万
查看次数

标签 统计

autofs ×1

automounting ×1

debian ×1

udev ×1