ninfs icon indicating copy to clipboard operation
ninfs copied to clipboard

ninfs 2.0 doesn't mount any image files for the DSi NAND

Open RayyanAnsari opened this issue 3 years ago • 7 comments

With ninfs 2.0a5, the files mounted are:

-rw-r--r-- 1 me None   1024 Jan  7 17:25 diag_area.bin
-rw-r--r-- 1 me None     64 Jan  7 17:25 nocash_blk.bin
-rw-r--r-- 1 me None 318464 Jan  7 17:25 stage2_bootldr.bin
-rw-r--r-- 1 me None   1024 Jan  7 17:25 stage2_footer.bin
-rw-r--r-- 1 me None    512 Jan  7 17:25 stage2_infoblk1.bin
-rw-r--r-- 1 me None    512 Jan  7 17:25 stage2_infoblk2.bin
-rw-r--r-- 1 me None    512 Jan  7 17:25 stage2_infoblk3.bin

However (with the same NAND) on ninfs 1.6.1, this is:

-rw-r--r-- 1 me None      1024 Jan 25 16:25 diag_area.bin
-rw-r--r-- 1 me None        64 Jan 25 16:25 nocash_blk.bin
-rw-r--r-- 1 me None    318464 Jan 25 16:25 stage2_bootldr.bin
-rw-r--r-- 1 me None      1024 Jan 25 16:25 stage2_footer.bin
-rw-r--r-- 1 me None       512 Jan 25 16:25 stage2_infoblk1.bin
-rw-r--r-- 1 me None       512 Jan 25 16:25 stage2_infoblk2.bin
-rw-r--r-- 1 me None       512 Jan 25 16:25 stage2_infoblk3.bin
-rw-r--r-- 1 me None 215945728 Jan 25 16:25 twl_main.img
-rw-r--r-- 1 me None  34301440 Jan 25 16:25 twl_photo.img
-rw-r--r-- 1 me None    214528 Jan 25 16:25 twl_unk1.img

You can see that it is missing the twl_main, twl_photo, and twl_unk1 image files.

RayyanAnsari avatar May 23 '21 12:05 RayyanAnsari

The reason this happens is because newer commits removed the separate partition files, with the intention of having just one that contains all the partitions. With the 3DS nand mount this means it would have ctrnand_full.img and twlnand_full.img, unlike GodMode9 (which ninfs bases most of its filenames on). Keeping both around means weird things can happen if both the "full" and "separate" files are written to at the same time. What I forgot though is that the TWL nand mount never had a similar file.

I think for TWL I will just re-add the partition files. Unless there is a better solution for this. I'm not really involved in DSi hacking currently.

ihaveamac avatar May 23 '21 12:05 ihaveamac

Re-added in 8b94147bf8915f11d500ceea0599f59e67845ce8, leaving this open though as a reminder just in case.

ihaveamac avatar May 23 '21 12:05 ihaveamac

I still get this issue after updating with python3 -m pip install --upgrade --user https://github.com/ihaveamac/ninfs/archive/2.0.zip.

mariomadproductions avatar Jun 18 '21 14:06 mariomadproductions

Can you try cloning the repo and running it from there?

ihaveamac avatar Jun 19 '21 10:06 ihaveamac

That worked. Although running setup.py install then running ninfs in the path didn't work.

mariomadproductions avatar Jun 19 '21 17:06 mariomadproductions

Can you explain "didn't work"?

ihaveamac avatar Jun 19 '21 17:06 ihaveamac

It behaved as it did before - I guess it didn't update.

mariomadproductions avatar Jun 20 '21 21:06 mariomadproductions