2014-10-29 25 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