Hi guys:
In the past days the external hdd stopped being mounted by udisks-glue.
In fact, it started to report that the partitions “did not match any rules”.
I had that 1 year ago, but it was a corruption at ntfs fs level, easily solved with a ntfsfix.
I had a small change at the configuration: using now an amazon powered usb hub in order to power the external disk and a wintv solohd DVB-c tuner.
The disk and partition are detected by udisk-glue. blkid lists also the correct labels and fs.
If I manually force the mounting of the partitions, it works ok.
The disk I’m using has a partition labelled as “hdd” and another labelled as “backups”.
Both are NTFS.
The log of udisks-glue is here:
https://paste.osmc.tv/aleyetekix
[EDIT]
Meanwhile, I’ve created a small set of commands in etc/rc.local, that waits some 30 seconds, and forces the partition mounting if not yet mounted.
(see bellow)
It solves the issue, but it is not the ideal solution.
Does anyone can help in detecting what is happening with udisks-glue ???
#!/bin/bash
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel
# Make sure that the script will return "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
sleep 30
echo "Searching for unmounted external disks"
while read DEVICE LABEL MORE
do
DEVICE=${DEVICE::-1}
LABEL=${LABEL:7:-1}
if [ "$(mount | grep -o $DEVICE)" != "" ]; then
echo "$DEVICE is mounted."
else
echo "$DEVICE is not mounted. Fixing file system and mounting in /media/$LABEL"
ntfsfix $DEVICE
mkdir -p /media/$LABEL
mount $DEVICE /media/$LABEL
fi
# External disks are always connected as /dev/sd*
done <<< $(blkid | grep "/dev/sd")
echo "Setting sda standby timeout"
/sbin/hdparm -S 120 /dev/sda
exit 0