Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Problem: Installed 6.x - USB media not working (ARM6)
#16
(08-28-2019, 12:02 AM)Tim Curtis Wrote: Hi,

2. Comment out the launch line in /etc/rc.local. This will prevent udisks-glue from being run.

1. Yes, it's all in the udisks-glue conf file.

- the list of file systems
- the command thats called after a successful mount
- the command thats called after a successful un-mount

Those commands add or remove a Samba share point.

So prolly something like:
sudo apt-get install udisks2
sudo apt-get install udiskie

Then figure out the settings in the udiskie conf file.

-Tim

I've had a little bit of time to try a few things out with this and I'm just going to list a few findings.

1. My syslog is still full of udisks-part-id SEGV's, but udiskie successfully auto-mounts drives.

2. It doesn't appear that we have all the command running options we need to port the udisks-glue funtionality. Here is the basic configuration file I've made:

Code:
program_options:
udisks_version: 2
automount:      true
notify_command: "/var/www/command/util.sh smbadd {mount_path}"

device_config:
- id_type: ntfs
 ignore:  false
 options: [noexec,nodev,noatime,nodiratime,'dmask=0022','fmask=0022']

which seems to pass the mounting options OK, but the issue is that notify_command is only available in the program options, and I'm not sure if you can trigger a different event for a mount event vs an umount event. The example in the manual:

Code:
notify_command: "zenity --info --text '{event}: {device_presentation}'"
   # [string|list] Set command to be executed on any device event.
   # This is specified like `password_prompt`.

man page here: https://raw.githubusercontent.com/coldfi...skie.8.txt

so unless you can somehow use that event attribute to perform one command over another I'm not sure. I don't know what the event/labels are. I suppose you could do something like:

Code:
notify_command: "/var/www/command/util.sh smbaddrem {mount_path} {event}"

and deal with it later on, but not sure otherwise.

3. The other problem is that MPD is not working. /etc/rc.local looks like this:

Code:
#!/bin/sh -e

SQLDB=/var/local/www/db/moode-sqlite3.db

# set cpu govenor
RESULT=$(sqlite3 $SQLDB "select value from cfg_system where param='cpugov'")
echo "$RESULT" | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

#/usr/bin/udisks-glue --config=/etc/udisks-glue.conf > /dev/null 2>&1
/usr/bin/udiskie --config=/home/pi/.config/udiskie/config.yml > /dev/null 2>&1
/var/www/command/worker.php > /dev/null 2>&1

exit 0

if I comment out my udiskie line and uncomment the udisks-glue line MPD works like normal, but if I boot like this it doesn't appear to run at all, I get an openMPDSock() failed notification and lib-config: Connection to MPD failed and no log - so I haven't been able to test if that samba share point command has worked or not.

so there's some information for you anyway.
Reply


Messages In This Thread
RE: Installed 6.x - USB media not working (ARM6) - by drivedesigned - 08-28-2019, 05:17 AM

Forum Jump: