Linux Switching of auto mount of USB drives (Raspbian)
#1
I am running KODI 15 under Raspbian. As I also would like to run Sambo on the same Pi, I face some difficulties as KODI "grabs" the external HD-Drive (connected via USB 2.0) before Samba can get it.

So I would like to prevent KODI from doing the auto-mount of the drive at startup. I had some check of the kodi script in /etc/init.d but could not find the place where to intervene:

After start, KODI mounts my HDD to media/NAS, I find the subfolders there:

service kodi stop -> to be able to unmount the drive
umount dev/sda1 -> NAS vanishes from media (as expected)
service kodi stop -> NAS is here again, but why ;-)?

My idea is as follows (in this order):
  1. Run a Shell script to mount my HDD (fstab entry does not work, as the drive is not ready when this is processed)
  2. Start Samba
  3. Start KODI

Any hints of how to archieve this goal.

Kind regards,

Styrian
Reply

Logout Mark Read Team Forum Stats Members Help
Switching of auto mount of USB drives (Raspbian)0