在Debian上自动安装USB记忆棒
我在可插拔计算机(仅SSH,无GUI)上运行Debian Squeeze,而我想做的就是获取它,以便在插入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 …