Library wiped after running "update library"

  • Hi all, bit of a situation here.

    I'm running an Rpi 3 with Libreelec (Jarvis). It's a clean install with no add-ons running an external USB hard drive to host local media files.

    I had a few files that were on the HD that weren't showing up on the Kodi file list... So I did the following:

    • Plug the HD into a laptop
    • Renamed a few of the files that were missing to see if they'd show up
    • Plus the HD back into the Pi
    • Run "Update Library" - Sure enough, the files show up.
    • Plug the HD back into laptop to continue the file naming convention.


    Except a huge portion of my library is now gone..... Which is weird as the visible files in windows only take up 80GB or so, but the drive says there are 200GB free.

    My guess is that the files exist somewhere, I just don't know how to recover them.

    Any help would be great... Kind of up a creek at the moment. :s

  • I'm guessing the HDD is powered off of a USB HUB and formatted as NTFS. Did you by chance run a chkdsk? If so, check the chkdsk folders (Been a long time since Windoze - so can't remember the folder names - something like "files.001").

    Kodi "Update library" will only read the HDD and will not modify it in anyway.

    I'd check the disk in Windows first to see if there are any problems if you haven't already.

    Otherwise you'll need to post a few logs and additional information.

    BTW: There is an addon called "missing movies" which will scan the HDD and read the library and advise of any movies not found - usually due to naming problems.

  • Tried to run chkdsk on my external drive, but I got this message:

    Errors found. CHKDSK cannot continue in read-only mode. Not sure how to proceed from here.

    EDIT 1 --- Did a CHKDSK /f and said to run on system restart. Restarting now. Fingers Crossed.
    EDIT 2 --- Found 4000+ "orphaned files" and is recovering them now. Let's see if I can actually SEE them in finder/explorer.

    Edited once, last by psylent777 (January 19, 2017 at 6:53 PM).