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

3DS:Rebuild Title Database: Difference between revisions

From Hacks Guide Wiki
m (Undo revision 2697 by Gruetzig (talk))
Tag: Undo
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
This article will guide you in rebuilding the <code>title.db</code> file in your SD card.  
This guide will guide you in rebuilding the `title.db` file in your SD card.  


<code>title.db</code> is a file on both the 3DS' SD card and its CTRNAND which contains a list of all installed 3DS titles for its respective place (e.g. The SD card's <code>title.db</code> only has entries for titles installed to the SD card). For more information, check out [[3dbrew:Title Database|3dbrew]].
`title.db` is a file on both the 3DS SD card and CTR-NAND which contain the entries of all installed 3DS titles in its respective place (eg. The SD card `title.db` would contain entries of all 3DS titles installed to the SD card). For more information check out [https://www.3dbrew.org/wiki/Title_Database 3dbrew].


=== What you need ===
=== What you need ===


* The latest release of [https://github.com/wwylele/save3ds/releases save3ds] for your operating system
* The latest release of [https://github.com/wwylele/save3ds/releases save3ds] for your operating system
* A version of [https://www.python.org/downloads/ Python 3.8 or later]
* The latest release of [https://www.python.org/downloads/ Python 3]  
* A 3DS console with custom firmware
* a 3DS console with boot9strap
* [https://github.com/ihaveamac/3DS-rom-tools/raw/master/seeddb/seeddb.bin seeddb.bin]
* [https://github.com/ihaveamac/3DS-rom-tools/raw/master/seeddb/seeddb.bin seeddb.bin]


=== Section I - Preparing the files ===
=== Section I - Preparing the files ===


# Launch GodMode9 by holding {{B|START}} on boot
# Launch GodMode9 by holding START on boot
# Navigate into <code>[M:] MEMORY VIRTUAL</code>  
# Navigate into <code>[M:] MEMORY VIRTUAL</code>  
# Press {{B|A}} on <code>boot9.bin</code> then select '''Copy to 0:/gm9/out'''
# Press A on <code>boot9.bin</code> then select "Copy to 0:/gm9/out"
# Press {{B|A}} to continue
# Press A to continue
# Press {{B|B}} once to return to the main menu
# Press B once to return to the main menu
# Navigate into <code>[1:] SYSNAND CTRNAND</code> -> <code>private</code>
# Navigate into <code>[1:] SYSNAND CTRNAND</code> -> <code>private</code>
# Press {{B|A}} on <code>movable.sed</code>, then select '''Copy to 0:/gm9/out'''
# Press A on <code>movable.sed</code>, then select "Copy to 0:/gm9/out"
# Turn the 3DS off
# Turn the 3DS off
# Insert the SD card into your computer
# Insert the SD card into your computer
# Go to [https://github.com/ihaveamac/rebuild-title-database the GitHub repo for Rebuild Title Database]
# Go to https://github.com/ihaveamac/rebuild-title-database
# Click the <big><span style="background:#008000">Code</span></big> button, then click '''Download ZIP'''
# Click the green <big>Code</big> button, then click "Download ZIP" to download it
# Extract the contents of the downloaded <code>.zip</code> into a folder
# Extract the contents of the <code>.zip</code> into a folder
#* This folder will be referred to as the "rebuild folder" from now on
#* Lets call this folder "rebuild folder"
# Go to <code>gm9</code> -> <code>out</code> on your SD card
# Go to <code>gm9</code> -> <code>out</code> on your SD card
# Copy <code>movable.sed</code> and <code>boot9.bin</code> into the rebuild folder
# Copy <code>movable.sed</code> and <code>boot9.bin</code> to the rebuild folder
# Copy <code>seeddb.bin</code> into the rebuild folder
# Create a folder called <code>3ds</code> in the user directory (C:/Users/[your username]/)
# Copy <code>save3ds_fuse.exe</code> from the save3ds <code>.zip</code> file into the rebuild folder
# Copy <code>seeddb.bin</code> to the <code>3ds</code> folder in that directory
# Copy <code>save3ds_fuse.exe</code> from the save3ds <code>.zip</code> to the rebuild folder


=== Section II - Rebuilding the Database ===
=== Section II - Section II ===
{{info|If you are not on Windows, replace <code>py -3</code> with <code>python3</code> in all commands.}}


# Navigate to the rebuild folder in file explorer
# Navigate to the rebuild folder in file explorer
# Hold SHIFT and right-click anywhere in the folder's empty space, then click the option that opens a terminal, PowerShell, or Command Prompt
# Click the Address bar, then replace the address with <code>cmd</code> and press ENTER
# In this new window, enter the following commands one at a time:
#* This should open a command prompt window
## <code>py -3 -V</code>
# In the command prompt, enter the following command: <code>py -3 -mpip install --user -r requirements.txt</code>
##* The capital V is important. Don't use a lowercase v.
# Then enter the command: <code>py -3 rebuild-title-database.py -b boot9.bin -m movable.sed -s X: -o out</code>
##* 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.
#* replace X: with the drive letter of your SD card, which should be inserted into your Computer
## <code>py -3 -mpip install --user -r requirements.txt</code>
# Next <code>save3ds_fuse --db sdtitle out --import --boot9 boot9.bin --movable movable.sed --sd X:</code>
## <code>py -3 fix-titledb.py -b boot9.bin -m movable.sed -s X:</code>
#* replace X: with the drive letter of your SD card, which should be inserted into your Computer
## <code>py -3 rebuild-title-database.py -b boot9.bin -m movable.sed -S seeddb.bin -s X: -o out</code>
# If you didn't get any errors, your apps should reappear, if not and they appear greyed out in System Settings -> Data Management -> Nintendo 3DS -> Software, run [[3DS:Faketik|faketik]]
##* replace <code>X:</code> with your SD card's drive letter
## <code>./save3ds_fuse --db sdtitle out --import --boot9 boot9.bin --movable movable.sed --sd X:</code>
##* replace <code>X:</code> with your SD card's drive letter
# 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''' and they have an X through their icons there, run [[3DS:Faketik|faketik]].
#* If they do not appear anywhere in the system, you should [[Checking SD card integrity|check your SD card for errors]] - the apps are likely gone.


=== Troubleshooting ===
=== Troubleshooting ===


* boot9.bin is missing in <code>[M:] MEMORY VIRTUAL</code>
* Make sure you have boot9.bin and movable.sed in the rebuild folder
** Follow the steps on [[3DS:Dump system files]] for more in-depth instructions, including other bootloaders.
* Make sure the SD card is inserted and you can view and edit its contents
* The first command in Section II gave the error <code>ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt'</code>
* 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 <code>rebuild-title-database-master.zip</code> into it.
** Make sure you are in the rebuild folder and that you extracted the contents of rebuild-title-database-master.zip in it
*** Once this is fixed, delete the out folder and try the command again.
** When you fix this, delete the out folder and try the failing command again
* The second or third command in Section II failed
** Make sure you have <code>boot9.bin</code> and <code>movable.sed</code> in the rebuild folder.
** Make sure the SD card is inserted and you can view and edit its contents.


[[Category:Nintendo 3DS guides]]
[[Category:Nintendo 3DS guides]]

Revision as of 21:18, 4 January 2023

This guide will guide you in rebuilding the `title.db` file in your SD card.

`title.db` is a file on both the 3DS SD card and CTR-NAND which contain the entries of all installed 3DS titles in its respective place (eg. The SD card `title.db` would contain entries of all 3DS titles installed to the SD card). For more information check out 3dbrew.

What you need

  • The latest release of save3ds for your operating system
  • The latest release of Python 3
  • a 3DS console with boot9strap
  • seeddb.bin

Section I - Preparing the files

  1. Launch GodMode9 by holding START on boot
  2. Navigate into [M:] MEMORY VIRTUAL
  3. Press A on boot9.bin then select "Copy to 0:/gm9/out"
  4. Press A to continue
  5. Press B once to return to the main menu
  6. Navigate into [1:] SYSNAND CTRNAND -> private
  7. Press A on movable.sed, then select "Copy to 0:/gm9/out"
  8. Turn the 3DS off
  9. Insert the SD card into your computer
  10. Go to https://github.com/ihaveamac/rebuild-title-database
  11. Click the green Code button, then click "Download ZIP" to download it
  12. Extract the contents of the .zip into a folder
    • Lets call this folder "rebuild folder"
  13. Go to gm9 -> out on your SD card
  14. Copy movable.sed and boot9.bin to the rebuild folder
  15. Create a folder called 3ds in the user directory (C:/Users/[your username]/)
  16. Copy seeddb.bin to the 3ds folder in that directory
  17. Copy save3ds_fuse.exe from the save3ds .zip to the rebuild folder

Section II - Section II

  1. Navigate to the rebuild folder in file explorer
  2. Click the Address bar, then replace the address with cmd and press ENTER
    • This should open a command prompt window
  3. In the command prompt, enter the following command: py -3 -mpip install --user -r requirements.txt
  4. Then enter the command: py -3 rebuild-title-database.py -b boot9.bin -m movable.sed -s X: -o out
    • replace X: with the drive letter of your SD card, which should be inserted into your Computer
  5. Next save3ds_fuse --db sdtitle out --import --boot9 boot9.bin --movable movable.sed --sd X:
    • replace X: with the drive letter of your SD card, which should be inserted into your Computer
  6. If you didn't get any errors, your apps should reappear, if not and they appear greyed out in System Settings -> Data Management -> Nintendo 3DS -> Software, run faketik

Troubleshooting

  • Make sure you have boot9.bin and movable.sed in the rebuild folder
  • Make sure the SD card is inserted and you can view and edit its contents
  • 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 in it
    • When you fix this, delete the out folder and try the failing command again