ihaveamac / ninfs

FUSE filesystem Python scripts for Nintendo console files
MIT License
436 stars 18 forks source link

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

Open RayyanAnsari opened 3 years ago

RayyanAnsari commented 3 years ago

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.

ihaveamac commented 3 years ago

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 commented 3 years ago

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

mariomadproductions commented 3 years ago

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

ihaveamac commented 3 years ago

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

mariomadproductions commented 3 years ago

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

ihaveamac commented 3 years ago

Can you explain "didn't work"?

mariomadproductions commented 3 years ago

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