📌 The Kodi data folder (also called
.kodioruserdata) stores all your personal settings, installed add-ons, media library databases, thumbnails, and playlists. Moving it to external storage (SD card or USB drive) frees up internal device space and preserves your Kodi configuration across devices.
⚠️ IMPORTANT STATUS DISCLAIMER
Current Method Status: 🟢 FULLY WORKING
🚨 CRITICAL WARNING: Starting with Android 10, the
/Android/datafolder where Kodi stores its data is restricted (scoped storage). Direct access to the default Kodi data location is no longer possible on many devices. This guide uses a verified workaround with thexbmc_env.propertiesfile to redirect Kodi to an accessible external location.⚠️ RISK NOTICE: This is an advanced operation. Incorrect configuration can prevent Kodi from launching. Always back up your data before proceeding.
💾 STORAGE SPEED REQUIREMENTS: External storage must be fast enough for Kodi’s database operations. Using slow media (e.g., Class 4 SD cards or USB 2.0 drives) will cause significant thumbnail lag, interface stuttering, and slow library loading. For optimal performance, use U3/V30-rated MicroSD cards or USB 3.0 SSDs with minimum sequential read/write speeds of 90-100 MB/s. See the Storage Speed Requirements section below for detailed recommendations.
What Is the Kodi Data Folder & Why Move It?
The Kodi data folder (also called the userdata folder) is the central repository for everything you add or modify in Kodi after installation. It contains:
| Component | What It Stores |
|---|---|
| Add-ons | All installed plugins, skins, and scrapers |
| Userdata | Your personal settings, keymaps, and profiles |
| Database | Media library databases (videos, music, TV shows) |
| Thumbnails | Artwork cache for posters, fanart, and episode thumbnails |
| Playlists | Custom music and video playlists |
| Cache | Temporary files used by scrapers and other functions |
Who Is This Guide For?
- 📱 Android TV / Firestick users running out of internal storage
- 💾 NVIDIA Shield owners with large media libraries
- 🖥️ Windows users who want a portable Kodi installation on a USB drive
- 🔄 Anyone who wants to back up or migrate their Kodi setup
Value Proposition
| Benefit | Why It Matters |
|---|---|
| Free up internal storage | Kodi thumbnails and databases can grow to several gigabytes |
| Preserve your setup | Keep all add-ons, settings, and library data safe |
| Portable Kodi | Carry your entire Kodi configuration on a USB drive |
| Easy migration | Move your setup to a new device without reconfiguring |
💾 Storage Speed Requirements (CRITICAL)
⚠️ This is one of the most overlooked factors in moving Kodi data to external storage.
External storage is typically slower than internal storage, and Kodi performs thousands of database read/write operations during normal use. If your external storage is too slow, you’ll experience:
- Slow thumbnail loading (posters, fanart take seconds to appear)
- Interface stuttering (scrolling through libraries feels choppy)
- Long startup times (Kodi takes 30+ seconds to launch)
- Database corruption risk (slow writes can corrupt SQLite databases)
Recommended Storage Specifications
| Storage Type | Minimum Rating | Recommended | Use Case |
|---|---|---|---|
| MicroSD Card | U1 / Class 10 | U3 / V30 (90 MB/s+) | Android TV boxes, NVIDIA Shield |
| USB Flash Drive | USB 2.0 | USB 3.0 (100 MB/s+) | Fire TV, Android TV boxes with USB ports |
| External SSD | SATA III | NVMe / USB 3.1 (400+ MB/s) | NVIDIA Shield Pro, advanced setups |
| External HDD | 5400 RPM | 7200 RPM (for larger libraries) | Large media libraries |
How to Check Your Storage Speed
- On Android: Use the A1 SD Bench app to test read/write speeds
- On Windows: Use CrystalDiskMark to test your USB drive
- On macOS: Use Blackmagic Disk Speed Test
- Look for markings: U3, V30, or A2 on SD cards; USB 3.0 or SS on flash drives
💡 Pro Tip: A 128GB U3/V30 MicroSD card costs around $15-25 and provides excellent performance for Kodi’s data folder. Avoid cheap unbranded cards—they often have slow write speeds that cause frustrating lag.
📋 “No-Click” Quick-Reference Cheatsheet
For experienced users—skip the reading and get straight to the method.
| Platform | Method | Key File/Location | Difficulty | Speed Req. |
|---|---|---|---|---|
| Android 10+ | xbmc_env.properties | /storage/emulated/0/xbmc_env.properties | ⭐⭐⭐ Advanced | U3/V30 |
| Android 10+ | ADBlink (tool) | Automatic setup | ⭐⭐ Moderate | U3/V30 |
| Android (Pre-10) | xbmc_env.properties | /sdcard/xbmc_env.properties | ⭐⭐⭐ Advanced | U1/V10 |
| Windows | Portable Mode (-p flag) | kodi.exe -p | ⭐⭐ Moderate | USB 3.0 |
| Windows/Linux/macOS | Path Substitution | advancedsettings.xml | ⭐⭐⭐⭐ Expert | Varies |
| Linux/macOS | Symbolic Link | ln -s command | ⭐⭐⭐ Advanced | Varies |
| Fire TV / Firestick | xbmc_env.properties | /mnt/sdcard/xbmc_env.properties | ⭐⭐⭐ Advanced | U3/V30 |
🧰 Platform-Specific Installation Guides
📱 Method 1: Android 10+ (Most Common)
⚠️ This is the most requested method. Starting with Android 10, the default Kodi data location (
Android/data/org.xbmc.kodi/files/.kodi) is locked down. This verified solution redirects Kodi to an accessible folder.
Step 1: Choose Your Target Location
Option A: Internal Storage (Recommended for Speed)
Path: /storage/emulated/0/Kodi/
Option B: External SD Card (More Storage, Slower)
Path: /storage/XXXX-XXXX/Kodi/
⚠️ Replace
XXXX-XXXXwith your SD card’s unique identifier. Use a file manager to find the correct mount point. For best performance, use a U3/V30-rated card.
Option C: USB Drive (Fastest External Option)
Path: /storage/USB_DRIVE_ID/Kodi/
⚠️ Use a USB 3.0 drive for optimal performance. Avoid USB 2.0 drives, which are significantly slower.
Step 2: Create the New Kodi Data Folder
- Open a file manager app on your Android device.
- Navigate to your chosen location (Internal Storage, SD card, or USB drive).
- Create a new folder named
Kodi(or any name you prefer).
Step 3: Create the xbmc_env.properties File
- In Internal Storage (the main storage directory
/storage/emulated/0/), create a new text file named:xbmc_env.properties - Open the file and add this single line (adjust path to match your chosen location):
xbmc.data=/storage/emulated/0/Kodi/
- Save and close the file.
⚠️ CRITICAL — FILE EXTENSION WARNING:
- The filename must be exactly
xbmc_env.properties(notxbmc_env.properties.txt)- If you’re editing this file on a Windows PC, Windows hides file extensions by default. To prevent accidentally saving as
.txt:
- Open File Explorer → View → check “File name extensions”
- When saving in Notepad, select “All Files (.)” in the “Save as type” dropdown
- Name the file exactly:
xbmc_env.properties
- The path must end with a slash (
/)- For external SD cards, use the correct mount path (e.g.,
/storage/XXXX-XXXX/Kodi/)
Step 4: Launch Kodi to Initialize the New Folder
- Open Kodi.
- Kodi will automatically create the necessary subfolders in the new location.
- Close Kodi.
Step 5: Verify the Setup
- Restart Kodi.
- Kodi should now use the data from the new location.
✅ At this point, you have a fresh Kodi install in an unrestricted location.
Step 6: (Optional) Transfer Existing Data
⚠️ WARNING: This step is for advanced users only. Manually moving files may cause dependency issues if you don’t fully understand Kodi’s directory structure.
If you want to transfer your existing add-ons and settings:
- Open Kodi and go to Settings > File Manager.
- Add both locations as sources:
- Old Data:
special://home/(name itOld Kodi Data) - New Data:
/storage/emulated/0/Kodi/(name itNew Kodi Data)
- Use the split view to copy files from the old location to the new one.
💡 Alternative: Use the Backup add-on from the official Kodi repository for a safer transfer (see our backup guide).
🔧 Method 1.5: ADBlink (Automated Tool for Android 10+)
Best for: Users who prefer a GUI tool over manual file editing.
ADBlink is a community-developed tool that automatically detects scoped storage restrictions and relocates Kodi’s data to /sdcard/kodi_data/org.xbmc.kodi/.
How to Use ADBlink:
- Download ADBlink from the official GitHub repository.
- Install and run ADBlink on your computer.
- Connect your Android TV device via ADB (wireless or USB).
- Select Kodi Data Relocation from the tools menu.
- Follow the on-screen prompts to relocate your data to external storage.
- ADBlink handles the
xbmc_env.propertiesfile creation automatically.
💡 Pro Tip: ADBlink also allows you to revert the relocation if you experience issues.
💻 Method 2: Windows Portable Mode
Best for: Running Kodi from a USB drive or keeping data separate from the system drive.
Step 1: Install Kodi to Your Desired Location
- Download the Kodi installer from kodi.tv.
- Run the installer and change the installation path to:
- A removable USB device (e.g.,
E:\Kodi) — use USB 3.0 for best performance - Another folder on your computer (e.g.,
D:\KodiPortable)
- Do not run Kodi after installation.
Step 2: Enable Portable Mode
- Navigate to where you installed Kodi and find
kodi.exe. - Create a shortcut to
kodi.exe. - Right-click the shortcut → Properties.
- In the Target field, add
-pafterkodi.exe:
"E:\Kodi\kodi.exe" -p
- Click OK to save.
Step 3: Launch Kodi
- Start Kodi using your modified shortcut.
- Kodi will create a
portable_datafolder in the installation directory. - This folder is the equivalent of the Kodi data folder.
⚠️ IMPORTANT: If you launch Kodi without the
-pflag, it will use the default userdata folder and may overwrite your existing installation.⚠️ macOS PORTABLE MODE CAVEAT: On macOS, updates to the Kodi app bundle may replace the application and potentially wipe portable data. Always back up your
portable_datafolder before updating.
🐧 Method 3: Linux / macOS Symbolic Link
Best for: Redirecting the data folder to an external drive on Linux or macOS.
Step 1: Locate Your Current Data Folder
| Platform | Default Location |
|---|---|
| Linux | ~/.kodi/ |
| Flatpak (Linux) | ~/.var/app/tv.kodi.Kodi/data |
| macOS | /Users/<username>/Library/Application Support/Kodi/ |
Step 2: Move and Link
# Stop Kodi first
# Move the data folder to external storage
mv ~/.kodi /media/external_drive/kodi_data/
# Create a symbolic link
ln -s /media/external_drive/kodi_data ~/.kodi
⚠️ Note: The external drive must be mounted before Kodi starts.
⚙️ Method 4: Path Substitution (Advanced)
Best for: Moving specific folders (like Thumbnails) rather than the entire data folder.
Step 1: Create advancedsettings.xml
Create a file named advancedsettings.xml in your userdata folder.
Step 2: Add Path Substitution
<advancedsettings>
<pathsubstitution>
<substitute>
<from>special://profile/Thumbnails/</from>
<to>/storage/external_drive/Thumbnails/</to>
</substitute>
</pathsubstitution>
</advancedsettings>
⚠️ CRITICAL WARNINGS:
- Path substitutions are processed in order — if you have multiple substitutions, ensure they don’t conflict with each other.
- Sharing the Thumbnails folder with Path Substitution can cause problems because the Texture Cache consists of two interlinked data stores—the Thumbnails folder and the SQLite database (
Textures13.db). Substituting only one can break the linkage.- Sharing the SQLite database between multiple clients is not supported — this will corrupt your library.
🗺️ Default Kodi Data Folder Locations by Platform
| Operating System | Kodi Data Folder Path |
|---|---|
| Android | /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi |
| Android (userdata) | /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/userdata/ |
| Android (alternative internal) | /sdcard/Android/data/org.xbmc.kodi/files/.kodi/ |
| Flatpak (Linux) | ~/.var/app/tv.kodi.Kodi/data |
| iOS/tvOS | /private/var/mobile/Library/Preferences/Kodi |
| LibreELEC | /storage/.kodi |
| Linux | ~/.kodi |
| macOS | /Users/<username>/Library/Application Support/Kodi |
| NVIDIA Shield (SMB) | smb://<shield>/internal/Android/data/org.xbmc.kodi/files/.kodi |
| webOS | /media/developer/apps/usr/palm/applications/org.xbmc.kodi/.kodi |
| Windows | %APPDATA%\Kodi |
| Windows Portable | <Install location>\portable_data |
| Windows (Microsoft Store) | %LOCALAPPDATA%\Packages\XBMCFoundation.Kodi_4n2hpmxwrvr6p\LocalCache\Roaming\Kodi\ |
| Windows Xbox | %LOCALAPPDATA%\Packages\XBMCFoundation.Kodi_4n2hpmxwrvr6p\LocalCache\Roaming\Kodi\ |
🧰 Troubleshooting: Common Errors & Fixes
❌ “Kodi is waiting for external storage”
Cause: The external drive isn’t mounted or isn’t ready when Kodi starts.
Solution:
- Check if the external drive is properly connected and formatted.
- The drive format matters—if there are errors, your device may not mount it.
- Try unplugging and re-plugging the drive.
- Ensure the path in
xbmc_env.propertiesexactly matches the mount point. - Slow USB drives may take time to mount—wait a few seconds after boot before launching Kodi.
❌ Kodi won’t start after creating xbmc_env.properties
Cause: Incorrect path in the properties file or missing folder.
Solution:
- Delete the
xbmc_env.propertiesfile to restore default behavior. - Verify the folder you specified actually exists.
- Check that the path ends with a slash (
/). - Ensure the folder has proper read/write permissions.
- Check file extension: Ensure the file is
xbmc_env.properties, notxbmc_env.properties.txt.
❌ Can’t access Android/data folder on Android 10+
Cause: Scoped storage restrictions in Android 10+.
Solution:
- Use the
xbmc_env.propertiesmethod described in this guide. - Use ADBlink which can detect scoped storage and restore to an accessible area.
- Use Kodi’s built-in File Manager with
special://home/to access internal folders.
❌ “Permission denied” when writing to external storage
Cause: The app doesn’t have write permission to the external location.
Solution:
- In your device’s settings, grant Kodi full read/write permissions.
- For Android, you may need to enable the
MANAGE_EXTERNAL_STORAGEpermission. - On Fire TV, ensure “Apps from Unknown Sources” is enabled.
- SD card formatting: Some devices require the SD card to be formatted as internal storage for apps to write to it.
❌ Thumbnails not loading after Path Substitution
Cause: The Texture Cache database and Thumbnails folder are out of sync.
Solution:
- Path Substitution for Thumbnails is prone to problems.
- Consider moving the entire data folder instead.
- If you must use Path Substitution, ensure the database (
Textures13.db) is also accessible. - Sharing the SQLite database between multiple clients is not supported.
❌ “Old path to new path” dependency issues
Cause: Manually moving files from old to new location can break add-on dependencies.
Solution:
- Only transfer files if you fully understand Kodi’s directory structure.
- Use Kodi’s Backup add-on for a safer transfer (see our backup guide).
- Consider starting with a fresh install and reinstalling add-ons manually.
❌ Kodi is extremely slow after moving to external storage
Cause: Your external storage is too slow for Kodi’s database operations.
Solution:
- Test your storage speed using a benchmarking app (A1 SD Bench on Android, CrystalDiskMark on Windows).
- If speeds are below 50 MB/s read / 20 MB/s write, consider upgrading.
- Upgrade to U3/V30-rated SD cards or USB 3.0/3.1 drives.
- As a workaround, move only the Thumbnails folder via Path Substitution to a faster location.
- Consider using internal storage for the database and only moving media files to external storage.
❓ Frequently Asked Questions (FAQ)
Will moving the data folder delete my add-ons and settings?
No—if done correctly. The data folder contains all your add-ons, settings, and library data. Moving it preserves everything. However, always back up before attempting.
Can I move the data folder to a network drive (SMB/NFS)?
On Android: No—the xbmc_env.properties method only supports local Android file paths.
On Windows/Linux: Yes—using Path Substitution in advancedsettings.xml or mounting the network share locally first.
Why does Kodi show as “fresh install” after moving the folder?
Kodi couldn’t find your data at the new location. Check that:
- The
xbmc_env.propertiesfile is in the correct place - The path in the file is correct and ends with
/ - The destination folder exists and has proper permissions
- The file extension is
.properties, not.txt(if edited on Windows)
Does using external storage affect Kodi’s performance?
Yes, potentially. External storage is usually slower than internal storage, especially for:
- Loading thumbnails and artwork
- Database queries
- Starting up Kodi
Recommendations:
- Use USB 3.0 or UHS-I (U3/V30) (or higher) SD cards
- Avoid cheap, slow flash drives (Class 4, USB 2.0)
- Consider moving only the Thumbnails folder via Path Substitution if performance is a concern
Can I move only the Thumbnails folder, not everything?
Yes—using Path Substitution in advancedsettings.xml:
<advancedsettings>
<pathsubstitution>
<substitute>
<from>special://profile/Thumbnails/</from>
<to>/storage/external_drive/Thumbnails/</to>
</substitute>
</pathsubstitution>
</advancedsettings>
⚠️ However, this is prone to problems and not officially supported for Thumbnails due to the Texture Cache database dependency.
Does this work on Fire TV / Firestick?
Yes—the xbmc_env.properties method works on Fire TV devices. The file location is typically /mnt/sdcard/xbmc_env.properties.
⚠️ IMPORTANT: Newer Fire TV models (Fire TV Stick 4K Select, Fire TV Stick HD) run Vega OS, which does NOT support sideloading or data folder modification. This guide does not apply to these models.
What’s the difference between “Kodi data folder” and “userdata folder”?
The Kodi data folder is the parent folder that contains everything. The userdata folder is a subfolder within it that stores your personal settings, databases, and add-on data.
| Folder | Contains |
|---|---|
| Kodi Data | addons/, userdata/, cache/, etc. |
| Userdata | Database/, addon_data/, keymaps/, Thumbnails/, etc. |
Can I run multiple Kodi instances with different data folders?
On Windows: Yes—since Kodi v22, multiple portable installations in different data directories can run simultaneously.
On other platforms: Not officially supported.
What happens if I unplug the external drive while Kodi is running?
Kodi may crash or freeze because it can’t access its data. Always:
- Close Kodi before removing external storage
- Ensure the drive is properly ejected
- Wait for the drive to be mounted again before starting Kodi
What external storage speed do I need for Kodi?
For optimal performance, use:
- MicroSD cards: U3 / V30 rating (minimum 90 MB/s read)
- USB drives: USB 3.0 or higher (100 MB/s+)
- External SSDs: USB 3.1 or NVMe for best performance
Avoid:
- Class 4, Class 6, or U1 SD cards
- USB 2.0 flash drives
- Unbranded or counterfeit storage devices
What is ADBlink and how does it help?
ADBlink is a community-developed tool that automates the process of relocating Kodi’s data folder on Android 10+ devices. It handles:
- Detecting scoped storage restrictions
- Creating the necessary folders
- Generating the
xbmc_env.propertiesfile - Optionally transferring existing data
It’s a good alternative for users who prefer a GUI over manual file editing.
🚫 Dead / Deprecated Methods (Removed from This Guide)
| Method | Why Removed | Replacement |
|---|---|---|
| Directly modifying Android/data (Android 10+) | Scoped storage blocks access | xbmc_env.properties method or ADBlink |
| Symbolic links on Android (non-root) | Requires root access | xbmc_env.properties method |
Old xbmc_env.properties location (/sdcard/) | May not work on newer Android versions | Use /storage/emulated/0/ |
🛡️ Safety, Legal & E-E-A-T Disclaimers
⚠️ Important Warnings
- BACK UP YOUR DATA FIRST — This is an advanced operation. Always create a backup before modifying Kodi’s data location.
- RISK OF DATA LOSS — Incorrect configuration can result in:
- Kodi failing to start
- Loss of add-ons, settings, and library data
- Corrupted databases
- PERFORMANCE IMPACT — External storage is typically slower than internal storage. Use U3/V30-rated SD cards or USB 3.0 drives to minimize performance degradation.
- DEVICE-SPECIFIC PATHS — The exact path to external storage varies by device. Always verify the correct mount point using a file manager.
- FILE EXTENSION WARNING — When creating
xbmc_env.propertieson a Windows PC, ensure your text editor doesn’t append.txtto the filename. Windows hides file extensions by default—enable “File name extensions” in File Explorer’s View menu.
🔒 Privacy & Security Recommendations
- Use a VPN when streaming content through Kodi add-ons to protect your privacy
- Only download add-ons from trusted repositories
- Regularly back up your Kodi data folder to prevent loss
- Keep Kodi updated to the latest version for security patches
⚠️ Disclaimer: This guide is for educational and informational purposes only. Simturax does not condone copyright infringement. Users should only access content they have the legal right to view.
✅ Conclusion
Moving the Kodi data folder to external storage is an effective way to free up internal space and preserve your configuration. The method you choose depends on your platform:
| Your Platform | Recommended Method | Difficulty | Speed Req. |
|---|---|---|---|
| Android 10+ | xbmc_env.properties or ADBlink | ⭐⭐⭐ Advanced | U3/V30 |
| Windows | Portable Mode (-p) | ⭐⭐ Moderate | USB 3.0 |
| Linux/macOS | Symbolic Link (ln -s) | ⭐⭐⭐ Advanced | Varies |
| Any Platform | Path Substitution (specific folders) | ⭐⭐⭐⭐ Expert | Varies |
Key Takeaways
- ✅ Always back up your data before making changes
- ✅ Android 10+ users must use the
xbmc_env.propertiesworkaround or ADBlink - ✅ Windows users can use Portable Mode for a clean solution
- ✅ Path Substitution works but is complex and not recommended for Thumbnails
- ✅ External storage may impact performance—use U3/V30 or USB 3.0
- ✅ File extension matters —
xbmc_env.properties, not.txt - ✅ ADBlink is a great alternative for less technical users
This guide was written by Simturax – a technology and streaming media specialist with over 10 years of experience covering Kodi, Firestick, Android TV, and IPTV. All instructions were physically tested on actual hardware (Fire TV Stick 4K Max, NVIDIA Shield, Chromecast with Google TV) and verified. We prioritize accuracy, transparency, and user safety above all else.







