2014-10-29 87 views
1

我正在使用Debian wheezy stable,我试图在插入指定目录时自动挂载特定的USB设备(不是在启动时或使用mount命令)。如何使usbmount使用/ etc/fstab配置

我知道如何与这个/etc/fstab安装我的设备我想/etc/fstab目录和mount -a命令:

UUID="xxxxxxxxxxxxxxxx" /media/myFolder ntfs auto,exec,rw,user,suid,uid=1000 0 0 

我也知道如何使用usbmount安装一个设备时,它被堵塞。

我的问题是,usbmount将设备挂载到文件夹/media/usbX中,而不是在fstab中指定的目录中。

我没有找到如何更改usbmount的配置,以使其尊重/etc/fstab文件。

是否有可能,如果有的话,我该怎么做?

回答

1

检出/etc/usbmount/usbmount.conf中的MOUNTPOINTS。

# Mountpoints: These directories are eligible as mointpoints for 
# removable storage devices. A newly plugged in device is mounted on 
# the first directory in this list that exists and on which nothing is 
# mounted yet. 
MOUNTPOINTS="/media/usb0 /media/usb1 /media/usb2 /media/usb3 
      /media/usb4 /media/usb5 /media/usb6 /media/usb7" 
+0

与MOUNTPOINTS的问题是,它似乎使我的目录可用于新的挂载,但我的特定USB驱动器并不总是安装在我想要的目录中。 – statox 2014-10-29 14:18:46

+0

它似乎是一个错误。这里有一个补丁https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=350633 – f01 2014-10-29 14:28:35

+0

这似乎是我正在寻找的。我现在无法测试,但我会尽可能提供反馈。 – statox 2014-10-29 14:42:13