<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.hacks.guide/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=StupidRepo</id>
	<title>Hacks Guide Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.hacks.guide/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=StupidRepo"/>
	<link rel="alternate" type="text/html" href="https://wiki.hacks.guide/wiki/Special:Contributions/StupidRepo"/>
	<updated>2026-04-29T01:25:38Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki.hacks.guide/w/index.php?title=3DS:Rebuild_Title_Database&amp;diff=7600</id>
		<title>3DS:Rebuild Title Database</title>
		<link rel="alternate" type="text/html" href="https://wiki.hacks.guide/w/index.php?title=3DS:Rebuild_Title_Database&amp;diff=7600"/>
		<updated>2025-05-28T23:05:47Z</updated>

		<summary type="html">&lt;p&gt;StupidRepo: Remove double dots.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is a guide to rebuilding the &amp;lt;code&amp;gt;title.db&amp;lt;/code&amp;gt; file in your SD card. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;title.db&amp;lt;/code&amp;gt; is the name for two files - one on the 3DS&#039; 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&#039;s &amp;lt;code&amp;gt;title.db&amp;lt;/code&amp;gt; only has entries for titles installed to your SD card). For more information, check out [[3dbrew:Title Database|3dbrew]].&lt;br /&gt;
&lt;br /&gt;
=== What you need ===&lt;br /&gt;
&lt;br /&gt;
* The latest release of {{GitHub|wwylele/save3ds/releases/latest|save3ds}} for your operating system&lt;br /&gt;
* A version of [https://www.python.org/downloads/ Python 3.8 or later]&lt;br /&gt;
* A 3DS console with custom firmware&lt;br /&gt;
* {{GitHub|ihaveamac/3DS-rom-tools/raw/master/seeddb/seeddb.bin|seeddb.bin}}&lt;br /&gt;
* boot9.bin (same for all consoles) and movable.sed (specific to yours only) - dump with [[3DS:Dump system files]]&lt;br /&gt;
&lt;br /&gt;
=== Section I - Preparing the files ===&lt;br /&gt;
&lt;br /&gt;
# Turn the 3DS off&lt;br /&gt;
# Insert your SD card into your computer&lt;br /&gt;
# Go to the {{GitHub|ihaveamac/rebuild-title-database|Rebuild Title Database}} repo&#039;s page&lt;br /&gt;
# Click the &amp;lt;big&amp;gt;&amp;lt;span style=&amp;quot;background:#008000&amp;quot;&amp;gt;Code&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt; button, then click &#039;&#039;&#039;Download ZIP&#039;&#039;&#039;&lt;br /&gt;
# Extract the contents of the downloaded &amp;lt;code&amp;gt;.zip&amp;lt;/code&amp;gt; into a folder&lt;br /&gt;
#* This folder will be referred to as the &amp;quot;rebuild folder&amp;quot; from now on&lt;br /&gt;
# Copy &amp;lt;code&amp;gt;movable.sed&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;boot9.bin&amp;lt;/code&amp;gt; to the rebuild folder&lt;br /&gt;
#* If you had just dumped them from your console, both are most likely in &amp;lt;code&amp;gt;sd:/gm9/out&amp;lt;/code&amp;gt;&lt;br /&gt;
# Copy &amp;lt;code&amp;gt;seeddb.bin&amp;lt;/code&amp;gt; into the rebuild folder&lt;br /&gt;
# Copy the &amp;lt;code&amp;gt;save3ds_fuse&amp;lt;/code&amp;gt; binary from the save3ds &amp;lt;code&amp;gt;.zip&amp;lt;/code&amp;gt; file into the rebuild folder&lt;br /&gt;
&lt;br /&gt;
=== Section II - Rebuilding the database ===&lt;br /&gt;
{{info|If you are not on Windows, replace &amp;lt;code&amp;gt;py -3&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;python3&amp;lt;/code&amp;gt; in all commands.}}&lt;br /&gt;
&lt;br /&gt;
{{warning|The commands in this section are case-sensitive. Enter them exactly as written, or there may be unintended consequences.}}&lt;br /&gt;
&lt;br /&gt;
# Navigate to the rebuild folder in file explorer&lt;br /&gt;
# Hold SHIFT and right-click anywhere in the folder&#039;s empty space, then click the option that opens a terminal, PowerShell, or Command Prompt&lt;br /&gt;
# In this new window, enter the following commands one at a time:&lt;br /&gt;
## &amp;lt;code&amp;gt;py -3 -V&amp;lt;/code&amp;gt;&lt;br /&gt;
##* 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.&lt;br /&gt;
## &amp;lt;code&amp;gt;py -3 -mpip install --user -r requirements.txt&amp;lt;/code&amp;gt;&lt;br /&gt;
## &amp;lt;code&amp;gt;py -3 fix-titledb.py -b boot9.bin -m movable.sed -s X:&amp;lt;/code&amp;gt;&lt;br /&gt;
##* If you are on Windows, replace &amp;lt;code&amp;gt;X:&amp;lt;/code&amp;gt; with your SD card&#039;s drive letter. If you are not on Windows, replace &amp;lt;code&amp;gt;X:&amp;lt;/code&amp;gt; with your SD card&#039;s mount point.&lt;br /&gt;
## &amp;lt;code&amp;gt;py -3 rebuild-title-database.py -b boot9.bin -m movable.sed -S seeddb.bin -s X: -o out&amp;lt;/code&amp;gt;&lt;br /&gt;
## &amp;lt;code&amp;gt;./save3ds_fuse.exe --db sdtitle out --import --boot9 boot9.bin --movable movable.sed --sd X:&amp;lt;/code&amp;gt;&lt;br /&gt;
##* If you are not on Windows, remove &amp;lt;code&amp;gt;.exe&amp;lt;/code&amp;gt; from this command&lt;br /&gt;
# If you didn&#039;t get any errors, your apps should reappear on the HOME Menu immediately &lt;br /&gt;
#* If they only appear in &#039;&#039;&#039;System Settings&#039;&#039;&#039; -&amp;gt; &#039;&#039;&#039;Data Management&#039;&#039;&#039;, follow &#039;&#039;&#039;one&#039;&#039;&#039; of these sets of steps based on how they appear.&lt;br /&gt;
#** Appear normally: Check the contents of &amp;lt;code&amp;gt;sd:/Nintendo 3DS/&amp;lt;id0&amp;gt;/&amp;lt;id1&amp;gt;/title/00040000&amp;lt;/code&amp;gt;; there should only be more folders inside that folder. &lt;br /&gt;
#*** If there is a file inside this folder, your apps are at least partially corrupted - backup your SD card to your PC, [[Formatting an SD card|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, [[Checking SD card integrity|check your SD card for hardware damage]].&lt;br /&gt;
#** Appear with a grey block count indicator and an X through their icons: Run [[3DS:Faketik|faketik]].&lt;br /&gt;
#** Appear with white/corrupted icons, 0 block count, and/or corrupted name: Whatever destroyed your &amp;lt;code&amp;gt;title.db&amp;lt;/code&amp;gt; has also permanently corrupted your apps. Backup your SD card to your PC,[[Formatting an SD Card|reformat it]], and then [[Checking SD card integrity|check it for hardware damage]].&lt;br /&gt;
#* If they do not appear anywhere in the system, you may want to [[Checking SD card integrity|check your SD card for hardware damage]], as the apps are likely gone.&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;boot9.bin&amp;lt;/code&amp;gt; is missing from &amp;lt;code&amp;gt;[M:] MEMORY VIRTUAL&amp;lt;/code&amp;gt;&lt;br /&gt;
** Follow the steps to [[3DS:Dump system files|dump your system files]] for more in-depth instructions, including those for bootloaders other than [[3DS:boot9strap|boot9strap]].&lt;br /&gt;
* The first command in Section II gave the error &amp;lt;code&amp;gt;ERROR: Could not open requirements file: [Errno 2] No such file or directory: &#039;requirements.txt&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
** Make sure you are in the rebuild folder and that you extracted the contents of &amp;lt;code&amp;gt;rebuild-title-database-master.zip&amp;lt;/code&amp;gt; into it. &lt;br /&gt;
*** Once this is fixed, delete the &amp;lt;code&amp;gt;out&amp;lt;/code&amp;gt; folder and try the command again.&lt;br /&gt;
* The third or fourth command in Section II failed&lt;br /&gt;
** Make sure you have &amp;lt;code&amp;gt;boot9.bin&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;movable.sed&amp;lt;/code&amp;gt; in the rebuild folder.&lt;br /&gt;
** Make sure your SD card is inserted and you can view and edit its contents.&lt;br /&gt;
* The fifth command in Section II failed&lt;br /&gt;
** If you are on macOS, try installing {{GitHub|osxfuse/osxfuse/releases/latest|osxfuse}}, either via its GitHub page or via [https://brew.sh Homebrew].&lt;br /&gt;
&lt;br /&gt;
==== &amp;lt;code&amp;gt;Input/output error&amp;lt;/code&amp;gt; on fourth command in Section II ====&lt;br /&gt;
{{info|These instructions are for Linux users, and will not work on Windows.}}&lt;br /&gt;
# &#039;&#039;&#039;&#039;&#039;Unmount&#039;&#039;&#039;&#039;&#039; the SD card from your computer.&lt;br /&gt;
# Open up a terminal window, and enter the following commands one at a time:&lt;br /&gt;
## &amp;lt;code&amp;gt;watch lsblk&amp;lt;/code&amp;gt;&lt;br /&gt;
##* After running this command, re-insert the SD card into your computer. The terminal window should now show a new partition of some kind. &#039;&#039;&#039;This is the SD card&#039;s partition&#039;&#039;&#039;. For example, &amp;lt;code&amp;gt;sda -&amp;gt; sda1&amp;lt;/code&amp;gt; may have appeared after re-inserting the SD card. Keep this in mind, as you&#039;ll need it later.&lt;br /&gt;
##* Once you see what partition the SD card is, press &amp;lt;kbd&amp;gt;&amp;lt;kbd&amp;gt;Ctrl&amp;lt;/kbd&amp;gt; + &amp;lt;kbd&amp;gt;C&amp;lt;/kbd&amp;gt;&amp;lt;/kbd&amp;gt; to stop monitoring the output of &amp;lt;code&amp;gt;lsblk&amp;lt;/code&amp;gt;&lt;br /&gt;
## &amp;lt;code&amp;gt;fsck /dev/[partition]&amp;lt;/code&amp;gt;&lt;br /&gt;
##* &amp;lt;code&amp;gt;[partition]&amp;lt;/code&amp;gt; is the partition that showed up in the terminal, when you inserted the SD card into your computer. (e.g. &amp;lt;code&amp;gt;fsck /dev/sda1&amp;lt;/code&amp;gt; if the SD card showed up under &amp;lt;code&amp;gt;sda -&amp;gt; sda1&amp;lt;/code&amp;gt;)&lt;br /&gt;
##* If you see &amp;lt;code&amp;gt;fsck: command not found&amp;lt;/code&amp;gt;, run the command with &amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt; (e.g. &amp;lt;code&amp;gt;sudo fsck ...&amp;lt;/code&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
You should now be given a few prompts, containing some choices. Below are some possible prompts, and what you should answer with.&lt;br /&gt;
* &amp;lt;code&amp;gt;There are differences between boot sector and its backup.&amp;lt;/code&amp;gt;&lt;br /&gt;
** Choose option 2 for &amp;quot;&amp;lt;code&amp;gt;copy backup to original&amp;lt;/code&amp;gt;&amp;quot;.&lt;br /&gt;
* &amp;lt;code&amp;gt;Orphaned long file name part &amp;quot;[folder name]&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
** Choose option 2 for &amp;quot;&amp;lt;code&amp;gt;leave it&amp;lt;/code&amp;gt;&amp;quot;.&lt;br /&gt;
* &amp;lt;code&amp;gt;Free cluster summary wrong &amp;lt;nowiki&amp;gt;(####### vs. really #######)&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
** Choose option 1 for &amp;quot;&amp;lt;code&amp;gt;correct&amp;lt;/code&amp;gt;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Eventually, you will see the following:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
*** Filesystem was changed ***&lt;br /&gt;
The changes have not yet been written, you can still choose to leave the&lt;br /&gt;
filesystem unmodified:&lt;br /&gt;
1) Write changes&lt;br /&gt;
2) Leave filesystem unchanged&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you are happy with the options you chose, and aren&#039;t scared something will break, choose option &amp;lt;kbd&amp;gt;1&amp;lt;/kbd&amp;gt; to write changes. After the changes have been written, try re-running the fourth command in Section II and continuing on from there.&lt;br /&gt;
&lt;br /&gt;
[[Category:Nintendo 3DS guides]]&lt;/div&gt;</summary>
		<author><name>StupidRepo</name></author>
	</entry>
	<entry>
		<id>https://wiki.hacks.guide/w/index.php?title=3DS:Rebuild_Title_Database&amp;diff=7598</id>
		<title>3DS:Rebuild Title Database</title>
		<link rel="alternate" type="text/html" href="https://wiki.hacks.guide/w/index.php?title=3DS:Rebuild_Title_Database&amp;diff=7598"/>
		<updated>2025-05-28T15:17:34Z</updated>

		<summary type="html">&lt;p&gt;StupidRepo: Formatting changes.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is a guide to rebuilding the &amp;lt;code&amp;gt;title.db&amp;lt;/code&amp;gt; file in your SD card. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;title.db&amp;lt;/code&amp;gt; is the name for two files - one on the 3DS&#039; 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&#039;s &amp;lt;code&amp;gt;title.db&amp;lt;/code&amp;gt; only has entries for titles installed to your SD card). For more information, check out [[3dbrew:Title Database|3dbrew]].&lt;br /&gt;
&lt;br /&gt;
=== What you need ===&lt;br /&gt;
&lt;br /&gt;
* The latest release of {{GitHub|wwylele/save3ds/releases/latest|save3ds}} for your operating system&lt;br /&gt;
* A version of [https://www.python.org/downloads/ Python 3.8 or later]&lt;br /&gt;
* A 3DS console with custom firmware&lt;br /&gt;
* {{GitHub|ihaveamac/3DS-rom-tools/raw/master/seeddb/seeddb.bin|seeddb.bin}}&lt;br /&gt;
* boot9.bin (same for all consoles) and movable.sed (specific to yours only) - dump with [[3DS:Dump system files]]&lt;br /&gt;
&lt;br /&gt;
=== Section I - Preparing the files ===&lt;br /&gt;
&lt;br /&gt;
# Turn the 3DS off&lt;br /&gt;
# Insert your SD card into your computer&lt;br /&gt;
# Go to the {{GitHub|ihaveamac/rebuild-title-database|Rebuild Title Database}} repo&#039;s page&lt;br /&gt;
# Click the &amp;lt;big&amp;gt;&amp;lt;span style=&amp;quot;background:#008000&amp;quot;&amp;gt;Code&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt; button, then click &#039;&#039;&#039;Download ZIP&#039;&#039;&#039;&lt;br /&gt;
# Extract the contents of the downloaded &amp;lt;code&amp;gt;.zip&amp;lt;/code&amp;gt; into a folder&lt;br /&gt;
#* This folder will be referred to as the &amp;quot;rebuild folder&amp;quot; from now on&lt;br /&gt;
# Copy &amp;lt;code&amp;gt;movable.sed&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;boot9.bin&amp;lt;/code&amp;gt; to the rebuild folder&lt;br /&gt;
#* If you had just dumped them from your console, both are most likely in &amp;lt;code&amp;gt;sd:/gm9/out&amp;lt;/code&amp;gt;&lt;br /&gt;
# Copy &amp;lt;code&amp;gt;seeddb.bin&amp;lt;/code&amp;gt; into the rebuild folder&lt;br /&gt;
# Copy the &amp;lt;code&amp;gt;save3ds_fuse&amp;lt;/code&amp;gt; binary from the save3ds &amp;lt;code&amp;gt;.zip&amp;lt;/code&amp;gt; file into the rebuild folder&lt;br /&gt;
&lt;br /&gt;
=== Section II - Rebuilding the database ===&lt;br /&gt;
{{info|If you are not on Windows, replace &amp;lt;code&amp;gt;py -3&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;python3&amp;lt;/code&amp;gt; in all commands.}}&lt;br /&gt;
&lt;br /&gt;
{{warning|The commands in this section are case-sensitive. Enter them exactly as written, or there may be unintended consequences.}}&lt;br /&gt;
&lt;br /&gt;
# Navigate to the rebuild folder in file explorer&lt;br /&gt;
# Hold SHIFT and right-click anywhere in the folder&#039;s empty space, then click the option that opens a terminal, PowerShell, or Command Prompt&lt;br /&gt;
# In this new window, enter the following commands one at a time:&lt;br /&gt;
## &amp;lt;code&amp;gt;py -3 -V&amp;lt;/code&amp;gt;&lt;br /&gt;
##* 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.&lt;br /&gt;
## &amp;lt;code&amp;gt;py -3 -mpip install --user -r requirements.txt&amp;lt;/code&amp;gt;&lt;br /&gt;
## &amp;lt;code&amp;gt;py -3 fix-titledb.py -b boot9.bin -m movable.sed -s X:&amp;lt;/code&amp;gt;&lt;br /&gt;
##* If you are on Windows, replace &amp;lt;code&amp;gt;X:&amp;lt;/code&amp;gt; with your SD card&#039;s drive letter. If you are not on Windows, replace &amp;lt;code&amp;gt;X:&amp;lt;/code&amp;gt; with your SD card&#039;s mount point.&lt;br /&gt;
## &amp;lt;code&amp;gt;py -3 rebuild-title-database.py -b boot9.bin -m movable.sed -S seeddb.bin -s X: -o out&amp;lt;/code&amp;gt;&lt;br /&gt;
## &amp;lt;code&amp;gt;./save3ds_fuse.exe --db sdtitle out --import --boot9 boot9.bin --movable movable.sed --sd X:&amp;lt;/code&amp;gt;&lt;br /&gt;
##* If you are not on Windows, remove &amp;lt;code&amp;gt;.exe&amp;lt;/code&amp;gt; from this command&lt;br /&gt;
# If you didn&#039;t get any errors, your apps should reappear on the HOME Menu immediately &lt;br /&gt;
#* If they only appear in &#039;&#039;&#039;System Settings&#039;&#039;&#039; -&amp;gt; &#039;&#039;&#039;Data Management&#039;&#039;&#039;, follow &#039;&#039;&#039;one&#039;&#039;&#039; of these sets of steps based on how they appear.&lt;br /&gt;
#** Appear normally: Check the contents of &amp;lt;code&amp;gt;sd:/Nintendo 3DS/&amp;lt;id0&amp;gt;/&amp;lt;id1&amp;gt;/title/00040000&amp;lt;/code&amp;gt;; there should only be more folders inside that folder. &lt;br /&gt;
#*** If there is a file inside this folder, your apps are at least partially corrupted - backup your SD card to your PC, [[Formatting an SD card|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, [[Checking SD card integrity|check your SD card for hardware damage]].&lt;br /&gt;
#** Appear with a grey block count indicator and an X through their icons: Run [[3DS:Faketik|faketik]].&lt;br /&gt;
#** Appear with white/corrupted icons, 0 block count, and/or corrupted name: Whatever destroyed your &amp;lt;code&amp;gt;title.db&amp;lt;/code&amp;gt; has also permanently corrupted your apps. Backup your SD card to your PC,[[Formatting an SD Card|reformat it]], and then [[Checking SD card integrity|check it for hardware damage]].&lt;br /&gt;
#* If they do not appear anywhere in the system, you may want to [[Checking SD card integrity|check your SD card for hardware damage]], as the apps are likely gone.&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;boot9.bin&amp;lt;/code&amp;gt; is missing from &amp;lt;code&amp;gt;[M:] MEMORY VIRTUAL&amp;lt;/code&amp;gt;&lt;br /&gt;
** Follow the steps to [[3DS:Dump system files|dump your system files]] for more in-depth instructions, including those for bootloaders other than [[3DS:boot9strap|boot9strap]].&lt;br /&gt;
* The first command in Section II gave the error &amp;lt;code&amp;gt;ERROR: Could not open requirements file: [Errno 2] No such file or directory: &#039;requirements.txt&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
** Make sure you are in the rebuild folder and that you extracted the contents of &amp;lt;code&amp;gt;rebuild-title-database-master.zip&amp;lt;/code&amp;gt; into it. &lt;br /&gt;
*** Once this is fixed, delete the &amp;lt;code&amp;gt;out&amp;lt;/code&amp;gt; folder and try the command again.&lt;br /&gt;
* The third or fourth command in Section II failed&lt;br /&gt;
** Make sure you have &amp;lt;code&amp;gt;boot9.bin&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;movable.sed&amp;lt;/code&amp;gt; in the rebuild folder.&lt;br /&gt;
** Make sure your SD card is inserted and you can view and edit its contents.&lt;br /&gt;
* The fifth command in Section II failed&lt;br /&gt;
** If you are on macOS, try installing {{GitHub|osxfuse/osxfuse/releases/latest|osxfuse}}, either via its GitHub page or via [https://brew.sh Homebrew].&lt;br /&gt;
&lt;br /&gt;
==== &amp;lt;code&amp;gt;Input/output error&amp;lt;/code&amp;gt; on fourth command in Section II ====&lt;br /&gt;
{{info|These instructions are for Linux users, and will not work on Windows.}}&lt;br /&gt;
# &#039;&#039;&#039;&#039;&#039;Unmount&#039;&#039;&#039;&#039;&#039; the SD card from your computer.&lt;br /&gt;
# Open up a terminal window, and enter the following commands one at a time:&lt;br /&gt;
## &amp;lt;code&amp;gt;watch lsblk&amp;lt;/code&amp;gt;&lt;br /&gt;
##* After running this command, re-insert the SD card into your computer.. The terminal window should now show a new partition of some kind. &#039;&#039;&#039;This is the SD card&#039;s partition&#039;&#039;&#039;. For example, &amp;lt;code&amp;gt;sda -&amp;gt; sda1&amp;lt;/code&amp;gt; may have appeared after re-inserting the SD card. Keep this in mind, as you&#039;ll need it later.&lt;br /&gt;
##* Once you see what partition the SD card is, press &amp;lt;kbd&amp;gt;&amp;lt;kbd&amp;gt;Ctrl&amp;lt;/kbd&amp;gt; + &amp;lt;kbd&amp;gt;C&amp;lt;/kbd&amp;gt;&amp;lt;/kbd&amp;gt; to stop monitoring the output of &amp;lt;code&amp;gt;lsblk&amp;lt;/code&amp;gt;&lt;br /&gt;
## &amp;lt;code&amp;gt;fsck /dev/[partition]&amp;lt;/code&amp;gt;&lt;br /&gt;
##* &amp;lt;code&amp;gt;[partition]&amp;lt;/code&amp;gt; is the partition that showed up in the terminal, when you inserted the SD card into your computer. (e.g. &amp;lt;code&amp;gt;fsck /dev/sda1&amp;lt;/code&amp;gt; if the SD card showed up under &amp;lt;code&amp;gt;sda -&amp;gt; sda1&amp;lt;/code&amp;gt;)&lt;br /&gt;
##* If you see &amp;lt;code&amp;gt;fsck: command not found&amp;lt;/code&amp;gt;, run the command with &amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt; (e.g. &amp;lt;code&amp;gt;sudo fsck ...&amp;lt;/code&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
You should now be given a few prompts, containing some choices. Below are some possible prompts, and what you should answer with.&lt;br /&gt;
* &amp;lt;code&amp;gt;There are differences between boot sector and its backup.&amp;lt;/code&amp;gt;&lt;br /&gt;
** Choose option 2 for &amp;quot;&amp;lt;code&amp;gt;copy backup to original&amp;lt;/code&amp;gt;&amp;quot;.&lt;br /&gt;
* &amp;lt;code&amp;gt;Orphaned long file name part &amp;quot;[folder name]&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
** Choose option 2 for &amp;quot;&amp;lt;code&amp;gt;leave it&amp;lt;/code&amp;gt;&amp;quot;.&lt;br /&gt;
* &amp;lt;code&amp;gt;Free cluster summary wrong &amp;lt;nowiki&amp;gt;(####### vs. really #######)&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
** Choose option 1 for &amp;quot;&amp;lt;code&amp;gt;correct&amp;lt;/code&amp;gt;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Eventually, you will see the following:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
*** Filesystem was changed ***&lt;br /&gt;
The changes have not yet been written, you can still choose to leave the&lt;br /&gt;
filesystem unmodified:&lt;br /&gt;
1) Write changes&lt;br /&gt;
2) Leave filesystem unchanged&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you are happy with the options you chose, and aren&#039;t scared something will break, choose option &amp;lt;kbd&amp;gt;1&amp;lt;/kbd&amp;gt; to write changes. After the changes have been written, try re-running the fourth command in Section II and continuing on from there.&lt;br /&gt;
&lt;br /&gt;
[[Category:Nintendo 3DS guides]]&lt;/div&gt;</summary>
		<author><name>StupidRepo</name></author>
	</entry>
	<entry>
		<id>https://wiki.hacks.guide/w/index.php?title=3DS:Rebuild_Title_Database&amp;diff=7597</id>
		<title>3DS:Rebuild Title Database</title>
		<link rel="alternate" type="text/html" href="https://wiki.hacks.guide/w/index.php?title=3DS:Rebuild_Title_Database&amp;diff=7597"/>
		<updated>2025-05-28T15:15:28Z</updated>

		<summary type="html">&lt;p&gt;StupidRepo: So sorry! Fixed another mistake. 😓&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is a guide to rebuilding the &amp;lt;code&amp;gt;title.db&amp;lt;/code&amp;gt; file in your SD card. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;title.db&amp;lt;/code&amp;gt; is the name for two files - one on the 3DS&#039; 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&#039;s &amp;lt;code&amp;gt;title.db&amp;lt;/code&amp;gt; only has entries for titles installed to your SD card). For more information, check out [[3dbrew:Title Database|3dbrew]].&lt;br /&gt;
&lt;br /&gt;
=== What you need ===&lt;br /&gt;
&lt;br /&gt;
* The latest release of {{GitHub|wwylele/save3ds/releases/latest|save3ds}} for your operating system&lt;br /&gt;
* A version of [https://www.python.org/downloads/ Python 3.8 or later]&lt;br /&gt;
* A 3DS console with custom firmware&lt;br /&gt;
* {{GitHub|ihaveamac/3DS-rom-tools/raw/master/seeddb/seeddb.bin|seeddb.bin}}&lt;br /&gt;
* boot9.bin (same for all consoles) and movable.sed (specific to yours only) - dump with [[3DS:Dump system files]]&lt;br /&gt;
&lt;br /&gt;
=== Section I - Preparing the files ===&lt;br /&gt;
&lt;br /&gt;
# Turn the 3DS off&lt;br /&gt;
# Insert your SD card into your computer&lt;br /&gt;
# Go to the {{GitHub|ihaveamac/rebuild-title-database|Rebuild Title Database}} repo&#039;s page&lt;br /&gt;
# Click the &amp;lt;big&amp;gt;&amp;lt;span style=&amp;quot;background:#008000&amp;quot;&amp;gt;Code&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt; button, then click &#039;&#039;&#039;Download ZIP&#039;&#039;&#039;&lt;br /&gt;
# Extract the contents of the downloaded &amp;lt;code&amp;gt;.zip&amp;lt;/code&amp;gt; into a folder&lt;br /&gt;
#* This folder will be referred to as the &amp;quot;rebuild folder&amp;quot; from now on&lt;br /&gt;
# Copy &amp;lt;code&amp;gt;movable.sed&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;boot9.bin&amp;lt;/code&amp;gt; to the rebuild folder&lt;br /&gt;
#* If you had just dumped them from your console, both are most likely in &amp;lt;code&amp;gt;sd:/gm9/out&amp;lt;/code&amp;gt;&lt;br /&gt;
# Copy &amp;lt;code&amp;gt;seeddb.bin&amp;lt;/code&amp;gt; into the rebuild folder&lt;br /&gt;
# Copy the &amp;lt;code&amp;gt;save3ds_fuse&amp;lt;/code&amp;gt; binary from the save3ds &amp;lt;code&amp;gt;.zip&amp;lt;/code&amp;gt; file into the rebuild folder&lt;br /&gt;
&lt;br /&gt;
=== Section II - Rebuilding the database ===&lt;br /&gt;
{{info|If you are not on Windows, replace &amp;lt;code&amp;gt;py -3&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;python3&amp;lt;/code&amp;gt; in all commands.}}&lt;br /&gt;
&lt;br /&gt;
{{warning|The commands in this section are case-sensitive. Enter them exactly as written, or there may be unintended consequences.}}&lt;br /&gt;
&lt;br /&gt;
# Navigate to the rebuild folder in file explorer&lt;br /&gt;
# Hold SHIFT and right-click anywhere in the folder&#039;s empty space, then click the option that opens a terminal, PowerShell, or Command Prompt&lt;br /&gt;
# In this new window, enter the following commands one at a time:&lt;br /&gt;
## &amp;lt;code&amp;gt;py -3 -V&amp;lt;/code&amp;gt;&lt;br /&gt;
##* 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.&lt;br /&gt;
## &amp;lt;code&amp;gt;py -3 -mpip install --user -r requirements.txt&amp;lt;/code&amp;gt;&lt;br /&gt;
## &amp;lt;code&amp;gt;py -3 fix-titledb.py -b boot9.bin -m movable.sed -s X:&amp;lt;/code&amp;gt;&lt;br /&gt;
##* If you are on Windows, replace &amp;lt;code&amp;gt;X:&amp;lt;/code&amp;gt; with your SD card&#039;s drive letter. If you are not on Windows, replace &amp;lt;code&amp;gt;X:&amp;lt;/code&amp;gt; with your SD card&#039;s mount point.&lt;br /&gt;
## &amp;lt;code&amp;gt;py -3 rebuild-title-database.py -b boot9.bin -m movable.sed -S seeddb.bin -s X: -o out&amp;lt;/code&amp;gt;&lt;br /&gt;
## &amp;lt;code&amp;gt;./save3ds_fuse.exe --db sdtitle out --import --boot9 boot9.bin --movable movable.sed --sd X:&amp;lt;/code&amp;gt;&lt;br /&gt;
##* If you are not on Windows, remove &amp;lt;code&amp;gt;.exe&amp;lt;/code&amp;gt; from this command&lt;br /&gt;
# If you didn&#039;t get any errors, your apps should reappear on the HOME Menu immediately &lt;br /&gt;
#* If they only appear in &#039;&#039;&#039;System Settings&#039;&#039;&#039; -&amp;gt; &#039;&#039;&#039;Data Management&#039;&#039;&#039;, follow &#039;&#039;&#039;one&#039;&#039;&#039; of these sets of steps based on how they appear.&lt;br /&gt;
#** Appear normally: Check the contents of &amp;lt;code&amp;gt;sd:/Nintendo 3DS/&amp;lt;id0&amp;gt;/&amp;lt;id1&amp;gt;/title/00040000&amp;lt;/code&amp;gt;; there should only be more folders inside that folder. &lt;br /&gt;
#*** If there is a file inside this folder, your apps are at least partially corrupted - backup your SD card to your PC, [[Formatting an SD card|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, [[Checking SD card integrity|check your SD card for hardware damage]].&lt;br /&gt;
#** Appear with a grey block count indicator and an X through their icons: Run [[3DS:Faketik|faketik]].&lt;br /&gt;
#** Appear with white/corrupted icons, 0 block count, and/or corrupted name: Whatever destroyed your &amp;lt;code&amp;gt;title.db&amp;lt;/code&amp;gt; has also permanently corrupted your apps. Backup your SD card to your PC,[[Formatting an SD Card|reformat it]], and then [[Checking SD card integrity|check it for hardware damage]].&lt;br /&gt;
#* If they do not appear anywhere in the system, you may want to [[Checking SD card integrity|check your SD card for hardware damage]], as the apps are likely gone.&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;boot9.bin&amp;lt;/code&amp;gt; is missing from &amp;lt;code&amp;gt;[M:] MEMORY VIRTUAL&amp;lt;/code&amp;gt;&lt;br /&gt;
** Follow the steps to [[3DS:Dump system files|dump your system files]] for more in-depth instructions, including those for bootloaders other than [[3DS:boot9strap|boot9strap]].&lt;br /&gt;
* The first command in Section II gave the error &amp;lt;code&amp;gt;ERROR: Could not open requirements file: [Errno 2] No such file or directory: &#039;requirements.txt&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
** Make sure you are in the rebuild folder and that you extracted the contents of &amp;lt;code&amp;gt;rebuild-title-database-master.zip&amp;lt;/code&amp;gt; into it. &lt;br /&gt;
*** Once this is fixed, delete the &amp;lt;code&amp;gt;out&amp;lt;/code&amp;gt; folder and try the command again.&lt;br /&gt;
* The third or fourth command in Section II failed&lt;br /&gt;
** Make sure you have &amp;lt;code&amp;gt;boot9.bin&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;movable.sed&amp;lt;/code&amp;gt; in the rebuild folder.&lt;br /&gt;
** Make sure your SD card is inserted and you can view and edit its contents.&lt;br /&gt;
* The fifth command in Section II failed&lt;br /&gt;
** If you are on macOS, try installing {{GitHub|osxfuse/osxfuse/releases/latest|osxfuse}}, either via its GitHub page or via [https://brew.sh Homebrew].&lt;br /&gt;
&lt;br /&gt;
==== &amp;lt;code&amp;gt;Input/output error&amp;lt;/code&amp;gt; on fourth command in Section II ====&lt;br /&gt;
{{info|These instructions are for Linux users, and will not work on Windows.}}&lt;br /&gt;
# &#039;&#039;&#039;&#039;&#039;Unmount&#039;&#039;&#039;&#039;&#039; the SD card from your computer.&lt;br /&gt;
# Open up a terminal window, and enter the following commands one at a time:&lt;br /&gt;
## &amp;lt;code&amp;gt;watch lsblk&amp;lt;/code&amp;gt;&lt;br /&gt;
##* After running this command, re-insert the SD card into your computer.. The terminal window should now show a new partition of some kind. &#039;&#039;&#039;This is the SD card&#039;s partition&#039;&#039;&#039;. For example, &amp;lt;code&amp;gt;sda -&amp;gt; sda1&amp;lt;/code&amp;gt; may have appeared after re-inserting the SD card. Keep this in mind, as you&#039;ll need it later.&lt;br /&gt;
##* Once you see what partition the SD card is, press &amp;lt;kbd&amp;gt;&amp;lt;kbd&amp;gt;Ctrl&amp;lt;/kbd&amp;gt; + &amp;lt;kbd&amp;gt;C&amp;lt;/kbd&amp;gt;&amp;lt;/kbd&amp;gt; to stop monitoring the output of &amp;lt;code&amp;gt;lsblk&amp;lt;/code&amp;gt;&lt;br /&gt;
## &amp;lt;code&amp;gt;fsck /dev/[partition]&amp;lt;/code&amp;gt;&lt;br /&gt;
##* &amp;lt;code&amp;gt;[partition]&amp;lt;/code&amp;gt; is the partition that showed up in the terminal, when you inserted the SD card into your computer. (e.g. &amp;lt;code&amp;gt;fsck /dev/sda1&amp;lt;/code&amp;gt; if the SD card showed up under &amp;lt;code&amp;gt;sda -&amp;gt; sda1&amp;lt;/code&amp;gt;)&lt;br /&gt;
##* If you see &amp;lt;code&amp;gt;fsck: command not found&amp;lt;/code&amp;gt;, run the command with &amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt; (e.g. &amp;lt;code&amp;gt;sudo fsck ...&amp;lt;/code&amp;gt;)&lt;br /&gt;
# If your SD card&#039;s FAT32 partition was corrupted, you should be prompted with a few choices by &amp;lt;code&amp;gt;fsck&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Here is a list of some choices you may need to give input to:&lt;br /&gt;
* There are differences between boot sector and its backup.&lt;br /&gt;
** Choose option &amp;lt;kbd&amp;gt;2&amp;lt;/kbd&amp;gt; for &amp;quot;&amp;lt;code&amp;gt;copy backup to original&amp;lt;/code&amp;gt;&amp;quot;.&lt;br /&gt;
* Orphaned long file name part &amp;quot;[folder name]&amp;quot;&lt;br /&gt;
** Choose option &amp;lt;kbd&amp;gt;2&amp;lt;/kbd&amp;gt; for &amp;quot;&amp;lt;code&amp;gt;leave it&amp;lt;/code&amp;gt;&amp;quot;.&lt;br /&gt;
* Free cluster summary wrong &amp;lt;nowiki&amp;gt;(####### vs. really #######)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
** Choose option &amp;lt;kbd&amp;gt;1&amp;lt;/kbd&amp;gt; for &amp;quot;&amp;lt;code&amp;gt;correct&amp;lt;/code&amp;gt;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Eventually, you will see the following:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;&lt;br /&gt;
*** Filesystem was changed ***&lt;br /&gt;
The changes have not yet been written, you can still choose to leave the&lt;br /&gt;
filesystem unmodified:&lt;br /&gt;
1) Write changes&lt;br /&gt;
2) Leave filesystem unchanged&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you are happy with the options you chose, and aren&#039;t scared something will break, choose option &amp;lt;kbd&amp;gt;1&amp;lt;/kbd&amp;gt; to write changes. After the changes have been written, try re-running the fourth command in Section II and continuing on from there.&lt;br /&gt;
&lt;br /&gt;
[[Category:Nintendo 3DS guides]]&lt;/div&gt;</summary>
		<author><name>StupidRepo</name></author>
	</entry>
	<entry>
		<id>https://wiki.hacks.guide/w/index.php?title=3DS:Rebuild_Title_Database&amp;diff=7596</id>
		<title>3DS:Rebuild Title Database</title>
		<link rel="alternate" type="text/html" href="https://wiki.hacks.guide/w/index.php?title=3DS:Rebuild_Title_Database&amp;diff=7596"/>
		<updated>2025-05-28T15:12:35Z</updated>

		<summary type="html">&lt;p&gt;StupidRepo: Fixed code tag not being closed.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is a guide to rebuilding the &amp;lt;code&amp;gt;title.db&amp;lt;/code&amp;gt; file in your SD card. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;title.db&amp;lt;/code&amp;gt; is the name for two files - one on the 3DS&#039; 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&#039;s &amp;lt;code&amp;gt;title.db&amp;lt;/code&amp;gt; only has entries for titles installed to your SD card). For more information, check out [[3dbrew:Title Database|3dbrew]].&lt;br /&gt;
&lt;br /&gt;
=== What you need ===&lt;br /&gt;
&lt;br /&gt;
* The latest release of {{GitHub|wwylele/save3ds/releases/latest|save3ds}} for your operating system&lt;br /&gt;
* A version of [https://www.python.org/downloads/ Python 3.8 or later]&lt;br /&gt;
* A 3DS console with custom firmware&lt;br /&gt;
* {{GitHub|ihaveamac/3DS-rom-tools/raw/master/seeddb/seeddb.bin|seeddb.bin}}&lt;br /&gt;
* boot9.bin (same for all consoles) and movable.sed (specific to yours only) - dump with [[3DS:Dump system files]]&lt;br /&gt;
&lt;br /&gt;
=== Section I - Preparing the files ===&lt;br /&gt;
&lt;br /&gt;
# Turn the 3DS off&lt;br /&gt;
# Insert your SD card into your computer&lt;br /&gt;
# Go to the {{GitHub|ihaveamac/rebuild-title-database|Rebuild Title Database}} repo&#039;s page&lt;br /&gt;
# Click the &amp;lt;big&amp;gt;&amp;lt;span style=&amp;quot;background:#008000&amp;quot;&amp;gt;Code&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt; button, then click &#039;&#039;&#039;Download ZIP&#039;&#039;&#039;&lt;br /&gt;
# Extract the contents of the downloaded &amp;lt;code&amp;gt;.zip&amp;lt;/code&amp;gt; into a folder&lt;br /&gt;
#* This folder will be referred to as the &amp;quot;rebuild folder&amp;quot; from now on&lt;br /&gt;
# Copy &amp;lt;code&amp;gt;movable.sed&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;boot9.bin&amp;lt;/code&amp;gt; to the rebuild folder&lt;br /&gt;
#* If you had just dumped them from your console, both are most likely in &amp;lt;code&amp;gt;sd:/gm9/out&amp;lt;/code&amp;gt;&lt;br /&gt;
# Copy &amp;lt;code&amp;gt;seeddb.bin&amp;lt;/code&amp;gt; into the rebuild folder&lt;br /&gt;
# Copy the &amp;lt;code&amp;gt;save3ds_fuse&amp;lt;/code&amp;gt; binary from the save3ds &amp;lt;code&amp;gt;.zip&amp;lt;/code&amp;gt; file into the rebuild folder&lt;br /&gt;
&lt;br /&gt;
=== Section II - Rebuilding the database ===&lt;br /&gt;
{{info|If you are not on Windows, replace &amp;lt;code&amp;gt;py -3&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;python3&amp;lt;/code&amp;gt; in all commands.}}&lt;br /&gt;
&lt;br /&gt;
{{warning|The commands in this section are case-sensitive. Enter them exactly as written, or there may be unintended consequences.}}&lt;br /&gt;
&lt;br /&gt;
# Navigate to the rebuild folder in file explorer&lt;br /&gt;
# Hold SHIFT and right-click anywhere in the folder&#039;s empty space, then click the option that opens a terminal, PowerShell, or Command Prompt&lt;br /&gt;
# In this new window, enter the following commands one at a time:&lt;br /&gt;
## &amp;lt;code&amp;gt;py -3 -V&amp;lt;/code&amp;gt;&lt;br /&gt;
##* 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.&lt;br /&gt;
## &amp;lt;code&amp;gt;py -3 -mpip install --user -r requirements.txt&amp;lt;/code&amp;gt;&lt;br /&gt;
## &amp;lt;code&amp;gt;py -3 fix-titledb.py -b boot9.bin -m movable.sed -s X:&amp;lt;/code&amp;gt;&lt;br /&gt;
##* If you are on Windows, replace &amp;lt;code&amp;gt;X:&amp;lt;/code&amp;gt; with your SD card&#039;s drive letter. If you are not on Windows, replace &amp;lt;code&amp;gt;X:&amp;lt;/code&amp;gt; with your SD card&#039;s mount point.&lt;br /&gt;
## &amp;lt;code&amp;gt;py -3 rebuild-title-database.py -b boot9.bin -m movable.sed -S seeddb.bin -s X: -o out&amp;lt;/code&amp;gt;&lt;br /&gt;
## &amp;lt;code&amp;gt;./save3ds_fuse.exe --db sdtitle out --import --boot9 boot9.bin --movable movable.sed --sd X:&amp;lt;/code&amp;gt;&lt;br /&gt;
##* If you are not on Windows, remove &amp;lt;code&amp;gt;.exe&amp;lt;/code&amp;gt; from this command&lt;br /&gt;
# If you didn&#039;t get any errors, your apps should reappear on the HOME Menu immediately &lt;br /&gt;
#* If they only appear in &#039;&#039;&#039;System Settings&#039;&#039;&#039; -&amp;gt; &#039;&#039;&#039;Data Management&#039;&#039;&#039;, follow &#039;&#039;&#039;one&#039;&#039;&#039; of these sets of steps based on how they appear.&lt;br /&gt;
#** Appear normally: Check the contents of &amp;lt;code&amp;gt;sd:/Nintendo 3DS/&amp;lt;id0&amp;gt;/&amp;lt;id1&amp;gt;/title/00040000&amp;lt;/code&amp;gt;; there should only be more folders inside that folder. &lt;br /&gt;
#*** If there is a file inside this folder, your apps are at least partially corrupted - backup your SD card to your PC, [[Formatting an SD card|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, [[Checking SD card integrity|check your SD card for hardware damage]].&lt;br /&gt;
#** Appear with a grey block count indicator and an X through their icons: Run [[3DS:Faketik|faketik]].&lt;br /&gt;
#** Appear with white/corrupted icons, 0 block count, and/or corrupted name: Whatever destroyed your &amp;lt;code&amp;gt;title.db&amp;lt;/code&amp;gt; has also permanently corrupted your apps. Backup your SD card to your PC,[[Formatting an SD Card|reformat it]], and then [[Checking SD card integrity|check it for hardware damage]].&lt;br /&gt;
#* If they do not appear anywhere in the system, you may want to [[Checking SD card integrity|check your SD card for hardware damage]], as the apps are likely gone.&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;boot9.bin&amp;lt;/code&amp;gt; is missing from &amp;lt;code&amp;gt;[M:] MEMORY VIRTUAL&amp;lt;/code&amp;gt;&lt;br /&gt;
** Follow the steps to [[3DS:Dump system files|dump your system files]] for more in-depth instructions, including those for bootloaders other than [[3DS:boot9strap|boot9strap]].&lt;br /&gt;
* The first command in Section II gave the error &amp;lt;code&amp;gt;ERROR: Could not open requirements file: [Errno 2] No such file or directory: &#039;requirements.txt&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
** Make sure you are in the rebuild folder and that you extracted the contents of &amp;lt;code&amp;gt;rebuild-title-database-master.zip&amp;lt;/code&amp;gt; into it. &lt;br /&gt;
*** Once this is fixed, delete the &amp;lt;code&amp;gt;out&amp;lt;/code&amp;gt; folder and try the command again.&lt;br /&gt;
* The third or fourth command in Section II failed&lt;br /&gt;
** Make sure you have &amp;lt;code&amp;gt;boot9.bin&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;movable.sed&amp;lt;/code&amp;gt; in the rebuild folder.&lt;br /&gt;
** Make sure your SD card is inserted and you can view and edit its contents.&lt;br /&gt;
* The fifth command in Section II failed&lt;br /&gt;
** If you are on macOS, try installing {{GitHub|osxfuse/osxfuse/releases/latest|osxfuse}}, either via its GitHub page or via [https://brew.sh Homebrew].&lt;br /&gt;
&lt;br /&gt;
==== &amp;lt;code&amp;gt;Input/output error&amp;lt;/code&amp;gt; on fourth command in Section II ====&lt;br /&gt;
{{info|These instructions are for Linux users, and will not work on Windows.}}&lt;br /&gt;
# &#039;&#039;&#039;&#039;&#039;Unmount&#039;&#039;&#039;&#039;&#039; the SD card from your computer.&lt;br /&gt;
# Open up a terminal window, and enter the following commands one at a time:&lt;br /&gt;
## &amp;lt;code&amp;gt;watch lsblk&amp;lt;/code&amp;gt;&lt;br /&gt;
##* After running this command, re-insert the SD card into your computer.. The terminal window should now show a new partition of some kind. &#039;&#039;&#039;This is the SD card&#039;s partition&#039;&#039;&#039;. For example, &amp;lt;code&amp;gt;sda -&amp;gt; sda1&amp;lt;/code&amp;gt; may have appeared after re-inserting the SD card. Keep this in mind, as you&#039;ll need it later.&lt;br /&gt;
##* Once you see what partition the SD card is, press &amp;lt;kbd&amp;gt;&amp;lt;kbd&amp;gt;Ctrl&amp;lt;/kbd&amp;gt; + &amp;lt;kbd&amp;gt;C&amp;lt;/kbd&amp;gt;&amp;lt;/kbd&amp;gt; to stop monitoring the output of &amp;lt;code&amp;gt;lsblk&amp;lt;/code&amp;gt;&lt;br /&gt;
## &amp;lt;code&amp;gt;fsck /dev/[partition]&amp;lt;/code&amp;gt;&lt;br /&gt;
##* &amp;lt;code&amp;gt;[partition]&amp;lt;/code&amp;gt; is the partition that showed up in the terminal, when you inserted the SD card into your computer. (e.g. &amp;lt;code&amp;gt;fsck /dev/sda1&amp;lt;/code&amp;gt; if the SD card showed up under &amp;lt;code&amp;gt;sda -&amp;gt; sda1&amp;lt;/code&amp;gt;)&lt;br /&gt;
##* If you see &amp;lt;code&amp;gt;fsck: command not found&amp;lt;/code&amp;gt;, run the command with &amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt; (e.g. &amp;lt;code&amp;gt;sudo fsck ...&amp;lt;/code&amp;gt;)&lt;br /&gt;
# If your SD card&#039;s FAT32 partition was corrupted, you should be prompted with a few choices by &amp;lt;code&amp;gt;fsck&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Here is a list of some choices you may need to give input to:&lt;br /&gt;
* There are differences between boot sector and its backup.&lt;br /&gt;
** Choose option &amp;lt;kbd&amp;gt;2&amp;lt;/kbd&amp;gt; for &amp;quot;&amp;lt;code&amp;gt;copy backup to original&amp;lt;/code&amp;gt;&amp;quot;.&lt;br /&gt;
* Orphaned long file name part &amp;quot;[folder name]&amp;quot;&lt;br /&gt;
** Choose option &amp;lt;kbd&amp;gt;2&amp;lt;/kbd&amp;gt; for &amp;quot;&amp;lt;code&amp;gt;leave it&amp;lt;/code&amp;gt;&amp;quot;.&lt;br /&gt;
* Free cluster summary wrong &amp;lt;nowiki&amp;gt;(####### vs. really #######)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
** Choose option &amp;lt;kbd&amp;gt;1&amp;lt;/kbd&amp;gt; for &amp;quot;&amp;lt;code&amp;gt;correct&amp;lt;/code&amp;gt;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Eventually, you will see the following:&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
*** Filesystem was changed ***&lt;br /&gt;
The changes have not yet been written, you can still choose to leave the&lt;br /&gt;
filesystem unmodified:&lt;br /&gt;
1) Write changes&lt;br /&gt;
2) Leave filesystem unchanged&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you are happy with the options you chose, and aren&#039;t scared something will break, choose option &amp;lt;kbd&amp;gt;1&amp;lt;/kbd&amp;gt; to write changes. After the changes have been written, try re-running the fourth command in Section II and continuing on from there.&lt;br /&gt;
&lt;br /&gt;
[[Category:Nintendo 3DS guides]]&lt;/div&gt;</summary>
		<author><name>StupidRepo</name></author>
	</entry>
	<entry>
		<id>https://wiki.hacks.guide/w/index.php?title=3DS:Rebuild_Title_Database&amp;diff=7595</id>
		<title>3DS:Rebuild Title Database</title>
		<link rel="alternate" type="text/html" href="https://wiki.hacks.guide/w/index.php?title=3DS:Rebuild_Title_Database&amp;diff=7595"/>
		<updated>2025-05-28T15:10:55Z</updated>

		<summary type="html">&lt;p&gt;StupidRepo: Added instructions for Linux users who are encountering an Input/output error, which is usually a sign of a corrupted title.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page is a guide to rebuilding the &amp;lt;code&amp;gt;title.db&amp;lt;/code&amp;gt; file in your SD card. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;title.db&amp;lt;/code&amp;gt; is the name for two files - one on the 3DS&#039; 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&#039;s &amp;lt;code&amp;gt;title.db&amp;lt;/code&amp;gt; only has entries for titles installed to your SD card). For more information, check out [[3dbrew:Title Database|3dbrew]].&lt;br /&gt;
&lt;br /&gt;
=== What you need ===&lt;br /&gt;
&lt;br /&gt;
* The latest release of {{GitHub|wwylele/save3ds/releases/latest|save3ds}} for your operating system&lt;br /&gt;
* A version of [https://www.python.org/downloads/ Python 3.8 or later]&lt;br /&gt;
* A 3DS console with custom firmware&lt;br /&gt;
* {{GitHub|ihaveamac/3DS-rom-tools/raw/master/seeddb/seeddb.bin|seeddb.bin}}&lt;br /&gt;
* boot9.bin (same for all consoles) and movable.sed (specific to yours only) - dump with [[3DS:Dump system files]]&lt;br /&gt;
&lt;br /&gt;
=== Section I - Preparing the files ===&lt;br /&gt;
&lt;br /&gt;
# Turn the 3DS off&lt;br /&gt;
# Insert your SD card into your computer&lt;br /&gt;
# Go to the {{GitHub|ihaveamac/rebuild-title-database|Rebuild Title Database}} repo&#039;s page&lt;br /&gt;
# Click the &amp;lt;big&amp;gt;&amp;lt;span style=&amp;quot;background:#008000&amp;quot;&amp;gt;Code&amp;lt;/span&amp;gt;&amp;lt;/big&amp;gt; button, then click &#039;&#039;&#039;Download ZIP&#039;&#039;&#039;&lt;br /&gt;
# Extract the contents of the downloaded &amp;lt;code&amp;gt;.zip&amp;lt;/code&amp;gt; into a folder&lt;br /&gt;
#* This folder will be referred to as the &amp;quot;rebuild folder&amp;quot; from now on&lt;br /&gt;
# Copy &amp;lt;code&amp;gt;movable.sed&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;boot9.bin&amp;lt;/code&amp;gt; to the rebuild folder&lt;br /&gt;
#* If you had just dumped them from your console, both are most likely in &amp;lt;code&amp;gt;sd:/gm9/out&amp;lt;/code&amp;gt;&lt;br /&gt;
# Copy &amp;lt;code&amp;gt;seeddb.bin&amp;lt;/code&amp;gt; into the rebuild folder&lt;br /&gt;
# Copy the &amp;lt;code&amp;gt;save3ds_fuse&amp;lt;/code&amp;gt; binary from the save3ds &amp;lt;code&amp;gt;.zip&amp;lt;/code&amp;gt; file into the rebuild folder&lt;br /&gt;
&lt;br /&gt;
=== Section II - Rebuilding the database ===&lt;br /&gt;
{{info|If you are not on Windows, replace &amp;lt;code&amp;gt;py -3&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;python3&amp;lt;/code&amp;gt; in all commands.}}&lt;br /&gt;
&lt;br /&gt;
{{warning|The commands in this section are case-sensitive. Enter them exactly as written, or there may be unintended consequences.}}&lt;br /&gt;
&lt;br /&gt;
# Navigate to the rebuild folder in file explorer&lt;br /&gt;
# Hold SHIFT and right-click anywhere in the folder&#039;s empty space, then click the option that opens a terminal, PowerShell, or Command Prompt&lt;br /&gt;
# In this new window, enter the following commands one at a time:&lt;br /&gt;
## &amp;lt;code&amp;gt;py -3 -V&amp;lt;/code&amp;gt;&lt;br /&gt;
##* 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.&lt;br /&gt;
## &amp;lt;code&amp;gt;py -3 -mpip install --user -r requirements.txt&amp;lt;/code&amp;gt;&lt;br /&gt;
## &amp;lt;code&amp;gt;py -3 fix-titledb.py -b boot9.bin -m movable.sed -s X:&amp;lt;/code&amp;gt;&lt;br /&gt;
##* If you are on Windows, replace &amp;lt;code&amp;gt;X:&amp;lt;/code&amp;gt; with your SD card&#039;s drive letter. If you are not on Windows, replace &amp;lt;code&amp;gt;X:&amp;lt;/code&amp;gt; with your SD card&#039;s mount point.&lt;br /&gt;
## &amp;lt;code&amp;gt;py -3 rebuild-title-database.py -b boot9.bin -m movable.sed -S seeddb.bin -s X: -o out&amp;lt;/code&amp;gt;&lt;br /&gt;
## &amp;lt;code&amp;gt;./save3ds_fuse.exe --db sdtitle out --import --boot9 boot9.bin --movable movable.sed --sd X:&amp;lt;/code&amp;gt;&lt;br /&gt;
##* If you are not on Windows, remove &amp;lt;code&amp;gt;.exe&amp;lt;/code&amp;gt; from this command&lt;br /&gt;
# If you didn&#039;t get any errors, your apps should reappear on the HOME Menu immediately &lt;br /&gt;
#* If they only appear in &#039;&#039;&#039;System Settings&#039;&#039;&#039; -&amp;gt; &#039;&#039;&#039;Data Management&#039;&#039;&#039;, follow &#039;&#039;&#039;one&#039;&#039;&#039; of these sets of steps based on how they appear.&lt;br /&gt;
#** Appear normally: Check the contents of &amp;lt;code&amp;gt;sd:/Nintendo 3DS/&amp;lt;id0&amp;gt;/&amp;lt;id1&amp;gt;/title/00040000&amp;lt;/code&amp;gt;; there should only be more folders inside that folder. &lt;br /&gt;
#*** If there is a file inside this folder, your apps are at least partially corrupted - backup your SD card to your PC, [[Formatting an SD card|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, [[Checking SD card integrity|check your SD card for hardware damage]].&lt;br /&gt;
#** Appear with a grey block count indicator and an X through their icons: Run [[3DS:Faketik|faketik]].&lt;br /&gt;
#** Appear with white/corrupted icons, 0 block count, and/or corrupted name: Whatever destroyed your &amp;lt;code&amp;gt;title.db&amp;lt;/code&amp;gt; has also permanently corrupted your apps. Backup your SD card to your PC,[[Formatting an SD Card|reformat it]], and then [[Checking SD card integrity|check it for hardware damage]].&lt;br /&gt;
#* If they do not appear anywhere in the system, you may want to [[Checking SD card integrity|check your SD card for hardware damage]], as the apps are likely gone.&lt;br /&gt;
&lt;br /&gt;
=== Troubleshooting ===&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;boot9.bin&amp;lt;/code&amp;gt; is missing from &amp;lt;code&amp;gt;[M:] MEMORY VIRTUAL&amp;lt;/code&amp;gt;&lt;br /&gt;
** Follow the steps to [[3DS:Dump system files|dump your system files]] for more in-depth instructions, including those for bootloaders other than [[3DS:boot9strap|boot9strap]].&lt;br /&gt;
* The first command in Section II gave the error &amp;lt;code&amp;gt;ERROR: Could not open requirements file: [Errno 2] No such file or directory: &#039;requirements.txt&#039;&amp;lt;/code&amp;gt;&lt;br /&gt;
** Make sure you are in the rebuild folder and that you extracted the contents of &amp;lt;code&amp;gt;rebuild-title-database-master.zip&amp;lt;/code&amp;gt; into it. &lt;br /&gt;
*** Once this is fixed, delete the &amp;lt;code&amp;gt;out&amp;lt;/code&amp;gt; folder and try the command again.&lt;br /&gt;
* The third or fourth command in Section II failed&lt;br /&gt;
** Make sure you have &amp;lt;code&amp;gt;boot9.bin&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;movable.sed&amp;lt;/code&amp;gt; in the rebuild folder.&lt;br /&gt;
** Make sure your SD card is inserted and you can view and edit its contents.&lt;br /&gt;
* The fifth command in Section II failed&lt;br /&gt;
** If you are on macOS, try installing {{GitHub|osxfuse/osxfuse/releases/latest|osxfuse}}, either via its GitHub page or via [https://brew.sh Homebrew].&lt;br /&gt;
&lt;br /&gt;
==== &amp;lt;code&amp;gt;Input/output error&amp;lt;/code&amp;gt; on fourth command in Section II ====&lt;br /&gt;
{{info|These instructions are for Linux users, and will not work on Windows.}}&lt;br /&gt;
# &#039;&#039;&#039;&#039;&#039;Unmount&#039;&#039;&#039;&#039;&#039; the SD card from your computer.&lt;br /&gt;
# Open up a terminal window, and enter the following commands one at a time:&lt;br /&gt;
## &amp;lt;code&amp;gt;watch lsblk&amp;lt;/code&amp;gt;&lt;br /&gt;
##* After running this command, re-insert the SD card into your computer.. The terminal window should now show a new partition of some kind. &#039;&#039;&#039;This is the SD card&#039;s partition&#039;&#039;&#039;. For example, &amp;lt;code&amp;gt;sda -&amp;gt; sda1&amp;lt;/code&amp;gt; may have appeared after re-inserting the SD card. Keep this in mind, as you&#039;ll need it later.&lt;br /&gt;
##* Once you see what partition the SD card is, press &amp;lt;kbd&amp;gt;&amp;lt;kbd&amp;gt;Ctrl&amp;lt;/kbd&amp;gt; + &amp;lt;kbd&amp;gt;C&amp;lt;/kbd&amp;gt;&amp;lt;/kbd&amp;gt; to stop monitoring the output of &amp;lt;code&amp;gt;lsblk&amp;lt;/code&amp;gt;&lt;br /&gt;
## &amp;lt;code&amp;gt;fsck /dev/[partition]&amp;lt;/code&amp;gt;&lt;br /&gt;
##* &amp;lt;code&amp;gt;[partition]&amp;lt;/code&amp;gt; is the partition that showed up in the terminal, when you inserted the SD card into your computer. (e.g. &amp;lt;code&amp;gt;fsck /dev/sda1&amp;lt;code&amp;gt; if the SD card showed up under &amp;lt;code&amp;gt;sda -&amp;gt; sda1&amp;lt;/code&amp;gt;)&lt;br /&gt;
##* If you see &amp;lt;code&amp;gt;fsck: command not found&amp;lt;/code&amp;gt;, run the command with &amp;lt;code&amp;gt;sudo&amp;lt;/code&amp;gt; (e.g. &amp;lt;code&amp;gt;sudo fsck ...&amp;lt;/code&amp;gt;)&lt;br /&gt;
# If your SD card&#039;s FAT32 partition was corrupted, you should be prompted with a few choices by &amp;lt;code&amp;gt;fsck&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Here is a list of some choices you may need to give input to:&lt;br /&gt;
* There are differences between boot sector and its backup.&lt;br /&gt;
** Choose option &amp;lt;kbd&amp;gt;2&amp;lt;/kbd&amp;gt; for &amp;quot;&amp;lt;code&amp;gt;copy backup to original&amp;lt;/code&amp;gt;&amp;quot;.&lt;br /&gt;
* Orphaned long file name part &amp;quot;[folder name]&amp;quot;&lt;br /&gt;
** Choose option &amp;lt;kbd&amp;gt;2&amp;lt;/kbd&amp;gt; for &amp;quot;&amp;lt;code&amp;gt;leave it&amp;lt;/code&amp;gt;&amp;quot;.&lt;br /&gt;
* Free cluster summary wrong &amp;lt;nowiki&amp;gt;(####### vs. really #######)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
** Choose option &amp;lt;kbd&amp;gt;1&amp;lt;/kbd&amp;gt; for &amp;quot;&amp;lt;code&amp;gt;correct&amp;lt;/code&amp;gt;&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Eventually, you will see the following:&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
*** Filesystem was changed ***&lt;br /&gt;
The changes have not yet been written, you can still choose to leave the&lt;br /&gt;
filesystem unmodified:&lt;br /&gt;
1) Write changes&lt;br /&gt;
2) Leave filesystem unchanged&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you are happy with the options you chose, and aren&#039;t scared something will break, choose option &amp;lt;kbd&amp;gt;1&amp;lt;/kbd&amp;gt; to write changes. After the changes have been written, try re-running the fourth command in Section II and continuing on from there.&lt;br /&gt;
&lt;br /&gt;
[[Category:Nintendo 3DS guides]]&lt;/div&gt;</summary>
		<author><name>StupidRepo</name></author>
	</entry>
</feed>