Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

3DS:Rebuild Title Database

From Hacks Guide Wiki
This is the approved revision of this page, as well as being the most recent.

This page is a guide to rebuilding the title.db file in your SD card.

title.db is the name for two files - one on the 3DS' SD card, and one on its CTRNAND - which contain a list of all installed 3DS titles for its respective part of the filesystem (e.g. your SD card's title.db only has entries for titles installed to your SD card). For more information, check out 3dbrew.

What you need

Section I - Preparing the files

  1. Turn the 3DS off
  2. Insert your SD card into your computer
  3. Go to the Rebuild Title Database repo's page
  4. Click the Code button, then click Download ZIP
  5. Extract the contents of the downloaded .zip into a folder
    • This folder will be referred to as the "rebuild folder" from now on
  6. Copy movable.sed and boot9.bin to the rebuild folder
    • If you had just dumped them from your console, both are most likely in sd:/gm9/out
  7. Copy seeddb.bin into the rebuild folder
  8. Copy the save3ds_fuse binary from the save3ds .zip file into the rebuild folder

Section II - Rebuilding the database

Info icon If you are not on Windows, replace py -3 with python3 in all commands.
Warning icon The commands in this section are case-sensitive. Enter them exactly as written, or there may be unintended consequences.
  1. Navigate to the rebuild folder in file explorer
  2. Hold SHIFT and right-click anywhere in the folder's empty space, then click the option that opens a terminal, PowerShell, or Command Prompt
  3. In this new window, enter the following commands one at a time:
    1. py -3 -V
      • If this does not print the Python version, it is either not installed correctly, or the wrong command was used. Please read the note above.
    2. py -3 -mpip install --user -r requirements.txt
    3. py -3 fix-titledb.py -b boot9.bin -m movable.sed -s X:
      • If you are on Windows, replace X: with your SD card's drive letter. If you are not on Windows, replace X: with your SD card's mount point.
    4. py -3 rebuild-title-database.py -b boot9.bin -m movable.sed -S seeddb.bin -s X: -o out
    5. ./save3ds_fuse.exe --db sdtitle out --import --boot9 boot9.bin --movable movable.sed --sd X:
      • If you are not on Windows, remove .exe from this command
  4. If you didn't get any errors, your apps should reappear on the HOME Menu immediately
    • If they only appear in System Settings -> Data Management, follow one of these sets of steps based on how they appear.
      • Appear normally: Check the contents of sd:/Nintendo 3DS/<id0>/<id1>/title/00040000; there should only be more folders inside that folder.
        • If there is a file inside this folder, your apps are at least partially corrupted - backup your SD card to your PC, reformat it, and then try to move the backed-up files back to the SD. If this fails or the apps do not reappear afterward, check your SD card for hardware damage.
      • Appear with a grey block count indicator and an X through their icons: Run faketik.
      • Appear with white/corrupted icons, 0 block count, and/or corrupted name: Whatever destroyed your title.db has also permanently corrupted your apps. Backup your SD card to your PC,reformat it, and then check it for hardware damage.
    • If they do not appear anywhere in the system, you may want to check your SD card for hardware damage, as the apps are likely gone.

Troubleshooting

  • boot9.bin is missing from [M:] MEMORY VIRTUAL
  • The first command in Section II gave the error ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'
    • Make sure you are in the rebuild folder and that you extracted the contents of rebuild-title-database-master.zip into it.
      • Once this is fixed, delete the out folder and try the command again.
  • The third or fourth command in Section II failed
    • Make sure you have boot9.bin and movable.sed in the rebuild folder.
    • Make sure your SD card is inserted and you can view and edit its contents.
  • The fifth command in Section II failed
    • If you are on macOS, try installing osxfuse, either via its GitHub page or via Homebrew.