[RPi5] Problem mount HardDisk

  • Hi,

    I'm new to LibreELEC.

    I was on a RPi 3B OSMC, then today I bought a RPI 5 and installed LibreELEC.

    One thing I've noticed on startup is that my hard disk doesn't mount (even when unplugged and replugged). My USB flash drive, which does mount, takes a long time to mount.

    On my RPi3, when I boot it up, it mounts almost immediately.

    I enter the lsblk with putty to see, but nothing.

    if you know what to do :?:

    :)

  • if you know what to do?

    Please provide a full debug log.

    How to post a log (wiki)

    1. Enable debugging in Settings>System Settings>Logging
    2. Restart Kodi
    3. Replicate the problem
    4. Generate a log URL (do not post/upload logs to the forum)

    use "Settings > LibreELEC > System > Paste system logs" or run "pastekodi" over SSH, then post the URL link
  • The only mention of a USB drive device in the system log ^

    The "Media removed, stopped polling" makes me suspect power issues. You can add "usb_max_current_enable=1" to config.txt and see if that makes a difference. Note that RPi5 needs a decent PSU (official one is recommended).

  • The only mention of a USB drive device in the system log ^

    The "Media removed, stopped polling" makes me suspect power issues. You can add "usb_max_current_enable=1" to config.txt and see if that makes a difference. Note that RPi5 needs a decent PSU (official one is recommended).

    Hi,

    My hard disk is powered by the HUB power supply, then I use a HUB to connect it to the RPi 5.

    HD > HUB (PS) > RPi 5

    only the microsd is powered by the RPi 5.

    i've done some quick research and i see that there are problems with nfts disks.

    because when I put my hard disk and microphones back on my RPi 3, they don't appear any more either. so the problem also occurs on my RPi 3, whose setup I've had for many years without a hitch.

    when I run a check on my Windows it detects errors that it corrects, and then the disk goes up it goes up, but if I reboot and remove then put it back again.

    So I don't know what's going on with libreELEC to make it do that. :/

  • Hi,

    You have a solution to this problem.

    I also tried to create a file fstab (UUID=5EAEFAE2FEFAB2FF/var/media/DDE ntfs defaults 0 0

    and autostart.sh (mount -o uid=1000,gid=1000 UUID=5EAEFAE2FEFAB2FF/var/media/DDE)

    but it doesn't work

  • LE automounts local devices via udev and remote devices through systemd .mount units: /etc/fstab is nothing more than a stub file to stop some binaries complaining that it doesn't exist. It is not writeable since it's inside the read-only squashfs SYSTEM file.

    If you haven't unmounted the NTFS filesystem cleanly from the current device it will probably be in a "dirty" state and that needs to be cleared on Windows using chkdsk.exe before you can attempting mounting under Linux again.

    Have a look at the NTFS-3G add-on in the "Services" section of the LE repo. This (added in the last week) add-on overrides the in-kernel driver and uses the older NTFS-3G userspace driver approach used in older LE releases.

  • LE automounts local devices via udev and remote devices through systemd .mount units: /etc/fstab is nothing more than a stub file to stop some binaries complaining that it doesn't exist. It is not writeable since it's inside the read-only squashfs SYSTEM file.

    If you haven't unmounted the NTFS filesystem cleanly from the current device it will probably be in a "dirty" state and that needs to be cleared on Windows using chkdsk.exe before you can attempting mounting under Linux again.

    Have a look at the NTFS-3G add-on in the "Services" section of the LE repo. This (added in the last week) add-on overrides the in-kernel driver and uses the older NTFS-3G userspace driver approach used in older LE releases.

    Yes, the clean disk is recognized, but if I modify it, add a file, it is no longer. Moreover I notice that it disconnects and reconnects it quite often, I don't know why it does that. For the ntfs-3g addon, I can't find it in the repo ??

    Can I install it manually ?

  • The NTFS-3G add-on should be in the LE repo (at least the LE13 repo, it might not be merged for LE12 yet) under Services. There's also an NTFS-PROGS add-on in the Tools section which has some of the utility binaries.

    Drives that disconnect and reconnect on their own normally trace back to bad power supplies and/or bad USB cables.

  • The NTFS-3G add-on should be in the LE repo (at least the LE13 repo, it might not be merged for LE12 yet) under Services. There's also an NTFS-PROGS add-on in the Tools section which has some of the utility binaries.

    Drives that disconnect and reconnect on their own normally trace back to bad power supplies and/or bad USB cables.

    Searching on github I found it. It is in .mk format. But on libreelec I don't see anything at all, in service, extension program....

    My drive is powered by an independent power supply. I programmed the enclosure so that the drive stops spinning after 5 minutes when it is not working. But that is a question.

  • The ntfs-3g addon is currently only available for LE13. For LE12 it still need to be merged.

    Moreover I notice that it disconnects and reconnects it quite often

    This is likely a power issue. Does your powered USB hub still work as expected?

  • The ntfs-3g addon is currently only available for LE13. For LE12 it still need to be merged.

    Tell me if I can merge it or do I have to wait until it's official ?

    • This is likely a power issue. Does your powered USB hub still work as expected?

    No, when it's connected to my RPi 3 I have no problem. I've had this setup for years.

  • Tell me if I can merge it or do I have to wait until it's official ?

    Just update to the latest LE 13 nightly from SSH:

    Code
    cd /storage/.update
    wget https://test.libreelec.tv/13.0/RPi/RPi5/LibreELEC-RPi5.aarch64-13.0-nightly-20241103-f662bea.img.gz
    reboot
  • Just update to the latest LE 13 nightly from SSH:

    Code
    cd /storage/.update
    wget https://test.libreelec.tv/13.0/RPi/RPi5/LibreELEC-RPi5.aarch64-13.0-nightly-20241103-f662bea.img.gz
    reboot

    Hi, I'm just discovering LE, is it useful to do it every night? Is it a “stable” version ?
    And if I make a backup of version 12, can I come back to it without worrying ?

  • Hi, I'm just discovering LE, is it useful to do it every night? Is it a “stable” version ?
    And if I make a backup of version 12, can I come back to it without worrying ?

    Our nightly builds are very stable, they are just not tested as much as the stable ones.

    Make a backup from LE 12, and if something goes wrong with LE 13, you can go back by update folder method.

  • Yes, but you have to read the other chapters below "Development" too.

    After cloning the repo you need to prepare the source from the pull request:

    Code
    git checkout -b my_addon_branch libreelec-12.0
    wget -O - https://github.com/LibreELEC/LibreELEC.tv/pull/9446.patch | git am

    Then build the ntfs3g addon for your devive.