• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Media Scanning & Identification Fix for duplicates after moving libraries to new disk

     
    • 0 Vote(s) - 0 Average

    Fix for duplicates after moving libraries to new disk

    Cleaning up duplicate "ghost" items after moving libraries to new disk
    LordSeitan
    Offline

    Junior Member

    Posts: 1
    Threads: 1
    Joined: 2025 Jul
    Reputation: 0
    Country:United States
    #1
    2025-07-18, 02:40 PM
    Hi, I just experienced a situation where I had moved all of my media to a larger drive and everything was duplicated. There were ghost entries pointing to files at the old media path which I couldn't seem to remove anywhere from the UI and I didn't see any clear solutions in here.

    What I ended up doing was to log into the database from the command line with Sqlite3 and deleted the "ghost" entries.

    Assuming you're comfortable using the command line and Sqlite3, this is the procedure I used:

    1. Stop the server and back up your database.

    2. Search and confirm the results are pulling up the old entries you want to delete. (the % matches anything else after this point)
    Code:
    select * from TypedBaseItems where Path like '/mnt/OldMediaPath/%' limit 10;

    3. Delete entries referencing old Library.
    Code:
    delete from TypedBaseItems where Path like '/mnt/OldMediaPath/%';

    4. Give the server a reboot.

    Hopefully this helps someone else stuck in a similar situation.
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode