Posts by bpr323

    On LE, the /media folder is limited in size to 7.7Gib only

    I have four 2TB ext4 connected to my LE server and a few months back I managed to overcome this limitation by creating symlinks to each of the USB's in the /media folder

    But I foolishly didn't write down the exact ln -s command and when I plug in a new 1Tb USB drive it's limited to 7.7Gb

    In other words, LE mounts the USB drive into /media but its size is limited to 7.7Gib

    Other USB drives correctly open my "old" symlinks as full size 1.8Tb directrories.

    Could someone please help me with the right code syntax?

    I try

    $ ln -s /dev/sdf1 "/hp-music" and $ lsln -sT /dev/sdf1 "hp-music"

    but it still opens the 7.7GIB directory in /media

    I haven't found related errors at your log. We already had users, who suffered low speed on external devices. Often a better cable was the answer. If you already tested the cable, then advancedsettings.xml is worth to play with. Especially have a look at chapter 2.8.4 Cache.

    I fail to see how your response (looking at Kodi log) is related to slow copy speeds when Kodi is not even turned on??

    "a better cable was the answer" ?? Have you even read my post above regarding attaching the same SSD+enclosure+cable to a different device (MX Linux laptop) and getting speeds >300 mb/s ?? You've got to be joking, right?

    Hi Flex, thanks for replying!

    Here's the Kodi debug log attached.

    I doubt its a Kodi issue, rather a Linux programming error which you cannot see from the Kodi log.

    The most common are "large audio sync error", where Kodi doesn't get enough data bandwidth from the media source.

    Possibly, the clue for the underlying root cause is provided in the log here:

    [301] 2020-07-01 19:29:26.313 T:139930189871232 DEBUG: DBus method call to org.freedesktop.DBus.Peer.Ping at /org/freedesktop/UDisks2 of org.freedesktop.UDisks2 failed: org.freedesktop.DBus.Error.ServiceUnknown - The name org.freedesktop.UDisks2 was not provided by any .service files

    [302] 2020-07-01 19:29:26.314 T:139930189871232 DEBUG: DBus method call to org.freedesktop.UDisks.EnumerateDevices at /org/freedesktop/UDisks of org.freedesktop.UDisks failed: org.freedesktop.DBus.Error.ServiceUnknown - The name org.freedesktop.UDisks was not provided by any .service files

    2020-07-01 19:29:26.314 T:139930189871232 DEBUG: Selected UDev as storage provider

    UPDATE - I have 4 SSD's (1Tb 860 Evo) connected to external USB 3.1 Gen2 (USB-C Thunderbolt) ports on Lenovo, and 1 SSD (SSD-5) connected internally to SATA-III interface on the motherboard.

    If I copy/cut/paste large 10Gb file across different folders on the same internal disk (SSD-5) it goes flawlessly. But if I move same 10Gb file to one of the attached USB disks, or from one USB disks to another - that's when the first time file copy works fine, but on a second attempt the file copy slows down and grinds to a halt.

    Therefore, the problem appears to be caused by the way USB attached disks are mounted by UDEV on LE (etc/fstab has no entries at all).

    Maybe there's a missing driver in LE for USB 3.1 Gen2 PCIE interface? Gen2 increases the speed from 6Gb/s to 10Gb/s. There is no problem with the controller in the USB 3.1 enclosure. If I connect this enclosure with two SSD's to a USB 3.0 or USB 3.1 (-C) port on my MX Linux laptop, everything is super fast, no slowing or choking on large >10Gb files.

    Here's my LibreELEC DLNA Home Theatre conceptual diagram cook book.

    1) The USB disks are attached to LE Linux box, and LE is installed on a USB stick. The host is Lenovo M720g "Tiny" FF

    2) Transmission and Krusader run on the LE box, managed via WebUI remotely on my MX Linux laptop.

    All heavy traffic is offloaded from my laptop to LE host box.

    The reason I prefer MiniDLNA and don't use Kodi Library is that Kodi doesn't let me browse my audio as "folders".

    MiniDLNA is super-fast and piss easy to configure scraping your USB disks (when you know how).

    Furthermore, I control media browsing and playback from my Android phone - BubbleUPNP app has excellent UI including thumbnails and artwork. Basically, BubbleUPNP "tells" Kodi renderer which files to play from the MiniDLNA media server.

    Imagine, you can instantly play your music without turning on your TV or Laptop screen! No more fluffy dice :)

    LibreELEC = Linux + Kodi , so I'm a bit confused there since you stopped the Kodi application. All that remains is a Linux OS.


    But, I'll try and have a go with 2 SSDs here and see what comes out of my copy experience with a RPi-4B.

    Hi Klojum, thank you so much for responding!

    Libreelec = "just enough OS for Kodi" ... I don't know about other os platforms, but Linux in LE is definitely broken.

    I have no issues with Kodi, this is the best (and only) renderer for DLNA playback. I'm not using its "media server" at all, the disks are not used by Kodi library.

    I've outlined 3 use-cases for USB attached storage in my post, but to summarise:

    1) USB disks are attached to LE box, file manager is Dolphin (or Krusader) running in docker container on LE as native app, which I access using its webUI (browser) from my MX Linux laptop. File copy runs super fast the 1st time, the next file stalls and the whole system grinds to a halt - including MiniDLNA scraping.

    2) As above, but file copy is done from the MX Linux laptop using Thunar across SMB or SFTP. File copy runs steady at a slow, but reliable speed of 12-17 mb/sec

    3) The USB disks are attached directly to MX Linux laptop - crazy speeds up to 420 mb/sec

    4) Previously I've tried Midnight Commander running as native app on LE, but driven remotely from MX Linux laptop - same "crashing" issues.

    There's definitely something broken with the way linux on Libreelex mounts the disks and/or treats large files.

    Thanks for replying Nicholas!

    No, I don't think it's Kodi to blame - it's Libreelec, for sure.

    1) I stopped Kodi # systemctl stop kodi

    2) Ran the first file (9Gb) copy from SSD1 to SSD2 -> very fast, 500 mb/s and completed Ok.

    3) Ran the second file -> it started at 120 mb/sec then stalled and stopped.

    when I play a high-bitrate mkv (e.g. DTS-HD MA) - Kodi plays for about 5 min, then stops playing with Error msg - "the source is too slow for continuous playback" ..

    It appears that some buffer on LE gets filled up and chokes the whole file system.

    This is a MAJOR bug in LE reported many times before, but it still persists.

    I have horribly slow file copy speeds on USB disks attached to LE and reading the recommended solution in thread here I can't understand how to fix it.

    Here's my setup:

    1) LE 9.2.2 is running on Intel PC (i7 / 16gb) Lenovo "Tiny"

    2) My 1tb Evo 860 SSD is housed in external USB 3.1 Gen2 enclosure and formatted to gpt / ext4 - connected to the LE PC via external USB 3.0 port

    3) If I copy large files on LE directly (dd) it starts at 120 mb/sec and then quickly drops to 1 mb/sec and then stops completely.

    4) If I copy the same file on LE from Thunar on my MX laptop across SMB wifi connection Ii get a slow, but steady speed of 12 mb/sec

    5) If I plug in the same drive directly into my laptop (which runs MX Linux) - I can copy a 10Gb file to/from my laptop at 400 mb/sec

    It's got even worse - when I play a high-bitrate mkv (e.g. DTS-HD MA) - Kodi plays for about 5 min, then stops playing with Error msg - "the source is too slow for continuous playback" ..

    The etc/fstab on my LE PC is unwritable and has no entries at all.

    Using PuTTY the dmesg -c on LE returns several pages of verbose text, and I don't know how to copy it from PuTTy into a text file to publish it here.

    For comparison, the etc/fstab on my MX laptop reads:

    # Pluggable devices are handled by uDev, they are not in fstab 

    UUID=6fd8aee6-70cb-431e-ab8d-36b210214c23 / ext4 defaults 1 1 

    UUID=32A3-E19E /boot/efi vfat defaults,noatime,dmask=0002,fmask=0113 0 0 

    UUID=01cb3ced-d2c3-4843-9c6e-c0e0bb860e3d swap swap defaults 0 0

    My understanding of the solution recommended in the thread here is as follows:

    1) Disable auto-mount of USB disks (really? - how?)

    2) Edit etc/fstab and/or add "quirks" line to the /boot/cmdline.txt (actually, I don't have a /boot/ folder on LE file system)

    Could someone please explain - step by step, in plain English - which LE system files need to be edited and how?

    Many thanks in advance!

    I too, have the same issue with horrible USB copy speeds on LE but I didn't understood from this post (or the linked Rasoery sticky) how to fix it.

    I do not have an RPI nor USB attached drives formatted in msdos/ntfs.

    Here's my setup:

    1) LE is running on a "normal" Intel PC (i7 / 16gb) and LE is installed on a USB stick plugged into it.

    2) I have 2 pairs of 1tb Evo 860 SSD's in external enclosures (all formatted to gpt / ext4) connected to the LE PC via external USB 3.0 ports

    3) If I plug one of these enclosures into my laptop (which runs MX Linux) - I get copy speeds close to 400 mb/sec, but on LE it's down to 1 mb/sec

    a) Entering "ps ax | grep ntfs" (using SSH via Putty to LE) returns:

    11520 root 0:00 grep ntfs

    b) The etc/fstab on my LE is unwritable and empty.

    For comparison, the etc/fstab on my laptop reads:

    # Pluggable devices are handled by uDev, they are not in fstab 

    UUID=6fd8aee6-70cb-431e-ab8d-36b210214c23 / ext4 defaults 1 1 

    UUID=32A3-E19E /boot/efi vfat defaults,noatime,dmask=0002,fmask=0113 0 0 

    UUID=01cb3ced-d2c3-4843-9c6e-c0e0bb860e3d swap swap defaults 0 0

    c) The dmesg -c returns several pages of obscure text, and I don't know how to copy it from PuTTy into a text file on my laptop.

    My understanding of the solution recommended by other users above is as follows:

    1) Disable auto-mount of USB disks

    2) Edit etc/fstab and/ or add a "quirks" to the /boot/cmdline.txt (I don't have a "boot" folder on LE)

    Could someone with a "success story" please explain here, step by step, in plain English - which LE files need to be edited and how?

    Many thanks in advance!

    SOLVED the solution was right under my nose, too easy for a non-programmer! :)

    Changed User and Group ID's to 1000 and - bingo! Quick as a flash file cut/copy/paste on the LE host server without pulling the files across SFTP/SMB to my laptop. Kudos to Aptalca - cheers for creating the Dolphin container, champion! :thumbup:

    ################################################

    Running Dolphin GUI (browser) file manager as a Docker container the LE host:

    docker run -d --name="Dolphin" \

    -e USER_ID="1000" \

    -e GROUP_ID="1000" \

    -e WIDTH="1280" -e HEIGHT="720" \

    -e TZ=Australia/Sydney \

    -v /storage/.kodi/userdata/Container/dolphin/config:/config:rw \

    -v /storage/.kodi/userdata/Container/dolphin/mount/point:/mnt:rw \

    -v /media:/media \

    -v /storage:/storage \

    -p 8050:8080 \

    -p 3389:3389 \

    aptalca/docker-dolphin:latest

    Navigate to <http://192.168.XXX.XXX:8050/#/client/c/Dolphin>

    And, of course, you need to configure:

    1) Transmission to save files in storage/downloads instead of the default setting in the transmission folder

    2) Make sure any USB disks and auto-mounted by LE at start-up

    Docker source - <Docker Hub>

    ###############################################

    Could one of the admins add this post to the LE tutorials please?

    1) When I browse USB disks attached to LE by using smb or sftp links in Thunar on my laptop - I see them from terminal as

    XXX@mx:/run/user/1000/gvfs/smb-share:server=libreelec.local,share=ssd-1 or

    XXX@mx:/run/user/1000/gvfs/sftp:host=libreelec.local/media/SSD-1 and I have no problems with read/write.

    2) When I'm using Dolphin from docker I cant read only 2 out of 5 USB disks in the <root/media>.

    However, I can NOT "paste" into any subfolders,

    My screenshots 1 and 2 above show the <root/media> folder is owned by root, and one would assume that this ownership will be recursive to subfolders (i.e. SSD's). But no - they are owned by User 1000 Group 1000 - please have a look at the Dolphin screenshots in my previous post.

    It would be great if you could help me with some nifty options in the docker run command to force the permissions down to the SSD's <root/media>

    ??? -e USER_ID="0" \

    ??? -e GROUP_ID="0" \

    Please? :)

    Thank you so much Aptalca - that worked, although partially. I modified the docker run command to include

    -v /storage:/storage \

    -v /media:/media \

    Now I can see (under the "root" folder) the contents of <storage/downloads/> and </media/> folders. The latter is where my USB disks are mounted.

    I can only cut & paste within the <downloads> folder - and it's SUPER FAST, 10gb in 30 sec (compared to 12mb/s if I do it across SMB).

    PROBLEM

    If I copy a file from <downloads> and try to paste into one of the USB drives under <media> - that option is greyed out (disallowed).

    Strangely, the <media> folder is owned by root, but the SSD's in that folder are owned by 1000 (nobody?).

    The <downloads> folder is owned by root, as mentioned above I have no problem cutting/pasting anywhere in that folder.

    Here's the screenshots:

    I can only connect to a cable while setting it up. Its usual location has no cables.

    Have you tried connecting across WiFi when your RPI3 is directly in front of the Router? Maybe the signal is not strong enough in "usual location".

    Another possibility could have something to do with the Firewall settings and/or DHCP dynamically assigning new IP to your RPI3 after each reboot.

    Can you try and disable firewall on RPI3?

    I use UPnP for sharing across my local network and MiniDLNA as my media server.

    MiniDLNA scrapes media files on 6 USB SSD's mounted on LE as SMB shares, then broadcasts the metadata across the network to any DLNA capable renderers. When I want to listen to music on my HT system, I never need to turn on the TV.

    Instead, I open BubbleUpNP app on my Android phone (or tablet) which has MiniDLNA configured as "Library" and Kodi on LE server as "Renderer" (i.e. media player). Then I browse the Library on my phone/tablet BubbleUPNP and press "Play" - that's all. I avoid using my TV as the front-end UI for Kodi. Besides, Kodi library doesn't let me browse my music media as folders.

    Go MiniDLNA and BubbleUPNP mate! :)

    I want to be able to copy media files stored on my "headless" LE server across several USB disks mounted on that server - directly on the server, and NOT by passing them through my laptop across SMB or SFTP. So I installed Docker on LE and created Dolphin container app which I can access remotely through the browser on my laptop.

    So far so good, but if I browse LE file system remotely as "root" with Dolphin (installed as a docker container app on my LE server) my <media> folder is empty as opposed to when I browse <sftp://libreelec.local/media> with Thunar from my laptop.

    BTW, when I use Thunar on my laptop to browse LE media folders, it pops up "login" screen, and I choose "Log in Anonymously" - it works just fine.

    Is it that I cannot see my <media> on USB disks mounted with fstab on LE machine because my Dolphin "root" doesn't have the permissions to see SMB folders on LE server?

    I've installed Dolphin on docker with the following commands:

    docker run -d --name="Dolphin" \

    -e USER_ID="0" \

    -e GROUP_ID="0" \

    -e WIDTH="1280" -e HEIGHT="720" \

    -v /storage/.kodi/userdata/Container/dolphin/config:/config:rw \

    -v /storage/.kodi/userdata/Container/dolphin/mount/point:/mnt:rw \

    -e TZ=Australia/Sydney \

    -p 8050:8080 \

    -p 3389:3389 \

    aptalca/docker-dolphin:latest

    I suspect I need to run Dolphin docker app logging in as root / libreelec - instead of having USER_ID and GROUP_ID set to 0 / 0 (as -e above) - to see the hidden ".kodi / .local" folders ("downloads" and "media") ?? But how?

    And what is the actual file structure (PATH) on Kodi which is hidden under the metalinks <sftp://libreelec.local/media> and <smb://libreelec.local/> ??

    PS - I've tried running MC with PuTTy but it crashes and locks up when I copy/paste or move large files across different USB disks :(