Fixing names for HD mounts on a Raspberry PI

  • I am using libreelec on a raspberri PI. I am trying to use it with two USB Hard Discs permanently attached. The system automount both discs at boot, but the problem is that their names (mount points) are not always the same. Depending whether I am booting or rebooting the assignation of names sda1 and sdb1 for each disc changes, which makes difficult to assign recording directories, defining shares, etc. For instance I have now on /var/media

    drwxr-xr-x 5 1001 users 4096 Dec 10 20:26 sda1-usb-TOSHIBA_External

    drwxr-xr-x 5 root root 4096 Jan 1 02:39 sdb1-ata-ST31500341AS_9VS

    But when I switch off and on I have it the other way round: sda1-ata-ST31500341AS_9VS (sda1) and sdb1-usb-TOSHIBA_External (sdb1)

    I have tried to have a look on the file 95-udevil-mount.rules but it is too much cryptic for me and I do not dare to touch anything!

    How could I fix the names so they will be always the same? Thanks!

  • Label the hard drives properly and they will mount the same everytime.

    Thanks. It worked. I thought they were already labeled, but they were'nt. Once labeled the new names are those of the labels

    Thanks again!