modifying mounting point of usb storage

  • Hi everyone,


    I'm using libreelec 8 on rasp pi 3 and it's just fine ... but i would like to use usb key as storage for my PVR recordings


    Then i try to modify fstab to add a line to mount my usb key at this point : /storage/recordings but i found that fstab is empty and readonly !!


    Then i make it static ?


    Best regards


    Stephane.

    Best regards


    Stephane
    LibreElec 7.90.003 on RaspBerry Pi 3

  • LE's system is indeed read-only, by design.


    Try adding your mount commands in autostart.sh.


  • LE's system is indeed read-only, by design.


    Try adding your mount commands in autostart.sh.


    Thanks i create a script to make my mount in autostart and it works smoothly.


    Is there the same script as it shutdown ?
    [hr]


    I use symlinks in ~ to point to my library files


    Sent from my SCH-S738C using Tapatalk


    Symlinks works great for library but in my case it's for recording ... if the volume doesn't exists with symlinks you can't record ... with mount -o bind ... you always have a directory to record

    Best regards


    Stephane
    LibreElec 7.90.003 on RaspBerry Pi 3

    Edited once, last by gkar ().

  • hi guys,
    pls could you help me with the syntax for mount after start?
    i wnat to mount this foldermount -t cifs -o username=xxx,password=xxx //xxx.xxx.xxx.xxx/folder/data/ .kodi/userdata/addon_data/data


    i put this here
    /storage/.config/autostart.sh
    but when i restart device nothing happens :/

  • To begin with, all those x's won't work. (just kidding...)


    if you want to test your mounts, simply test them directly on the command line.


    Autostart.sh should be picked up and started without the file being executable, but you could make it executable anyway:

    Code
    1. chmod +x autostart.sh
  • i tested it and it works, but i have to do it manually, thats why i would prefer automount :D
    so all i have to do i type the mount line into the autostart.sh as i would in command line, thats all?


  • i tested it and it works, but i have to do it manually, thats why i would prefer automount
    so all i have to do i type the mount line into the autostart.sh as i would in command line, thats all?


    For me it went like this...


    - Work out command that mounts what I want. In my case:

    Code
    1. mount /dev/data /media/Beelinkextra/internalemmc


    -Test that via ssh.
    -Make autostart.sh script.
    -Test script via ssh.

    Code
    1. sh /storage/.config/autostart.sh post


    -Reboot, find it doesn't work reliably, add short sleep to front so I ended up with:

    Shell-Script
    1. #!/bin/sh
    2. sleep 5;
    3. mount /dev/data /media/Beelinkextra/internalemmc