I don't know if i need to open a new bug, since this is expired, however I came across the same bug with the same external hard disk, a WD 500GB.
In my setup all usb disks were detected except this one. In my lts.conf file I have LOCALDEV_DENY_INTERNAL_DISKS=true
In the ltsp client I noticed in syslog that ltspfs_entry bash script failed with exit code 1 for this disk, so I run it manually as with -x to see what was the problem.
I have attached the output of bash -x ltspfs_entry add /dev/sdb1
The disk is detected as ata just like if it was an internal. I compared with an internal disk and saw one variable that could make a difference, $DEVPATH that had usb in its path.
I made the next patch. I don't know if it is the proper one but it worked well for me, mounting the external WD disk, while not mounting any internals.
--- ltspfs_entry.orig 2020-04-30 08:08:03.971810533 +0300
+++ ltspfs_entry.new 2020-04-30 08:13:58.267080415 +0300
@@ -158,6 +158,11 @@ count=0
IFS=+
for deny_rule in $deny_ruleset; do
+ if ! boolean_is_true "$LOCALDEV_DENY_USB" && [ "$(echo $DEVPATH|grep usb)" ]; then
+ count=0
+ break
+ fi var=$(echo $deny_rule|cut -d: -f1) val=$(echo $deny_rule|cut -d: -f2) eval test="\${$var}" 2>/dev/null
I don't know if i need to open a new bug, since this is expired, however I came across the same bug with the same external hard disk, a WD 500GB.
In my setup all usb disks were detected except this one. In my lts.conf file I have LOCALDEV_ DENY_INTERNAL_ DISKS=true
In the ltsp client I noticed in syslog that ltspfs_entry bash script failed with exit code 1 for this disk, so I run it manually as with -x to see what was the problem.
I have attached the output of bash -x ltspfs_entry add /dev/sdb1
The disk is detected as ata just like if it was an internal. I compared with an internal disk and saw one variable that could make a difference, $DEVPATH that had usb in its path.
I made the next patch. I don't know if it is the proper one but it worked well for me, mounting the external WD disk, while not mounting any internals.
--- ltspfs_entry.orig 2020-04-30 08:08:03.971810533 +0300
count= 0 DENY_USB" && [ "$(echo $DEVPATH|grep usb)" ]; then
var= $(echo $deny_rule|cut -d: -f1)
val= $(echo $deny_rule|cut -d: -f2)
eval test="\${$var}" 2>/dev/null
+++ ltspfs_entry.new 2020-04-30 08:13:58.267080415 +0300
@@ -158,6 +158,11 @@
IFS=+
for deny_rule in $deny_ruleset; do
+ if ! boolean_is_true "$LOCALDEV_
+ count=0
+ break
+ fi