Mounting external HDD before docker container starts

  • Hey there,


    I need some help with some configuration stuff.

    I have a docker container that needs my external hdd. Starting the container on boot fails, as the container starts before the external hdd is mounted.

    Any idea on how to mount the external hdd before the docker container is started?


    thanks

  • He is using the docker addons.


    Can you point me to any documentation on how external drives are auto mounted on le? Through which service?

  • Well there is another side effect I have noticed today:
    I use TVHeadend as a DVR saving all my recordings to the same external HDD.


    The "late" mounting of the HDD causes me to loose all shows I have recorded using TVHeadend - well not loosing in form of deleting, the files are still there, but they are no longer listed in the "recorded" section of Kodi.


    So is there a way to mount the HDD before Kodi and Docker starts?

  • Please provide details of H/W (Rpi, x86, S905 etc) and type of HDD (Size and if externally powered)


    Also provide URL output of:

    dmesg | paste

  • What devices have you plugged into your USB hub? and is it powered? If so what is the amperage of the PSU. I can see you're booting off a 64G SD card, with multiple USB devices.


    You are getting errors, usually related to power issues.


    [8.658636] usb 1-1.4.4.2: device descriptor read/64, error -110

    [ 24.231855] usb 1-1.4.4.2: device descriptor read/64, error -110

    [ 29.565214] usb 1-1.4.4.2: device descriptor read/64, error -110

    [ 45.138384] usb 1-1.4.4.2: device descriptor read/64, error -110

    [ 56.578200] usb 1-1.4.4.2: device not accepting address 10, error -110

    [ 67.244784] usb 1-1.4.4.2: device not accepting address 11, error -110


    Can you try unplugging non essential USB devices and see if that improves the situation. Or if you have a spare USB powered hub try that.


    A test on a RPi3, mounted a USB stick around the 5 second mark.

  • The USB Hub is powered, yes.
    It serves the following:
    External HDD (1TB), USB Tuner for DVB-C2 and a second 500GB HDD

    Additionally there is a USB Thumbdrive connected to the RasPi directly.


    I have now removed the Thumbdrive as well as the 500GB HDD as these are not essential.

    After a reboot, the docker is working.
    Thanks so much for pointing me towards the power issue.

    I will now test if the Thumbdrive or the second HDD were the issue.

  • I think is time to look for a *better* USB hub, I would look towards the 500GB drive as this will be the largest power usage.


    Can you confirm that the 110 errors no longer appear without the additional drive.

  • I think is time to look for a *better* USB hub, I would look towards the 500GB drive as this will be the largest power usage.


    Can you confirm that the 110 errors no longer appear without the additional drive.

    Yes, the errors are gone:

    http://ix.io/1cpa


    Thank you so much for your help!!