Tutorial  Updated

Tutorial: RedNAND - How to have 64K Allocation Units (Sector Size) with RedNAND on Windows

EDIT: Guide is depreciated : Later releases of EmuNAND9 support 64K formatting of SD cards 16GB and larger.
Feel free to use this guide for 64K on SD cards smaller than 16GB if you want, although getting a larger SD card is the better solution.
NOTE: windows 7 will still show the size on disk as 32K, thanks @d0k3 for pointing this out

For this guide, I am going to have you Hex Edit the SD Card for 64K Allocation Units (Sector Size)

If you have Windows, this is necessary as RedNAND uses some MBR "tricks" to get the SD Card to show up with RedNAND being on the first partition.
when you format the partition EmuNAND9 created, it breaks the ability to copy files to the SD Card and will show up as unformatted. When you format, you have a little over a gigabyte available as you just formatted your RedNAND partition. (DO NOT EVER DO THIS, the guide makes sure you do not do this)

This guide will get Windows to be able to read your SD Card again and have 64k Allocation Units (Sector Size) while keeping a working RedNAND.


If you use Linux or a Mac, you do not need follow this guide unless you are going to use a Windows computer at any time to access your files.
-------------------------------------------
What you need
1. a Windows computer (XP or Higher)
2. HxD Hex Editor https://mh-nexus.de/en/downloads.php
3. An SD Card with A RedNAND created with EmuNAND9
4. EaseUs Partition Manager http://www.partition-tool.com/personal.htm
------------------------------------------

Right now, Your SD Card has a RedNAND on it alongside a working FAT32 Partition where you can put your files.

First, Make sure to download and install HxD Hex Editor and EaseUS Partiton Manager. feel free to uninstall these when you are done with the guide if you want.

Once they are installed, you will want to open HxD. (right click on the icon and Run As Administrator (if on Windows Vista,7,8,8.1,or 10) [Needed to directly access the SD Card]

Once HxD is open, go to the Extras bar and click "Open disk..."
Click on the disk your SD Card is at under Physcial disks and uncheck Readonly
The physical disks listing is in the same order as the logical disks if you need help finding the the SD Card.
DiskSelect.jpg

Now press OK
You will now see your SD Card, a good way to tell is that the first part says "GATEWAYNAND", if not, you selected the wrong disk.
First, copy all data until you see NCSD (should be length: 300 according the the bottom bar)
Copythis.jpg
Press CTRL+C to copy this info
Now press CTRL+N to create a New File (you will switch to the blank file after pressing this)
Now press CTRL+V to paste. Press yes to the file size change popup
you should notice all the data is red, this is because the info was pasted but not saved
Now press CTRL+S to save the file. save this where you want and name it whatever you want.
The data will turn black now.

go back to the Removable Disk tab and press CTRL+F4 to close it. only the new tab with the pasted data will remain.
----------------------------
Open EaseUS Partition Manager now
right click in on the SD Card partition now and click format partition
FormatPart.jpg


Make sure the Cluster Size is set to 64KB. Press OK to format.
FormatPart2.jpg

this is then added to a queue to process. Press the apply checkmark at the upper left to apply the changes.

Once this is done, close EaseUS Partition Manager.
If you get any prompts from Windows to format afterward, DO NOT FORMAT

Go back to HxD and Open the SD Card again as you did earlier and select the same physical disk as before
NOTE: IF the drive does not show up, close HxD and open it again. to reopen the tab we had open before, click file and go to recent files, it will be there.

go the the tab we left open earlier and press Press CTRL+A to select all the data, now press CTRL+C to copy the data

it should look like this right now
Copythis2.jpg


Now go back to the Removable Disk Tab and click the blank space before 47 at the top, it should be flashing before the 4 in 47

Press CTRL+V to paste Data, the window should look like this now
Pastethis.jpg


Now press CTRL+S to save, you will get this warning, press "Yes" anyway
warning.jpg


Afterward, you will notice that you can access your SD Card again. to confirm that you are 64k, create a blank text file and save one letter in it (I chose "a"). right click on the text file and click properties, it should look like this.
Yes-it-worked.jpg


Size on disk is now 64.0KB, this confirms you are now 64K!

You are done now, congratulations
mk64_congrats_us.jpg
 
Last edited by driverdis,

driverdis

I am Justice
OP
Member
Joined
Sep 21, 2011
Messages
2,867
Trophies
2
Age
31
Location
1.048596β
XP
2,838
Country
United States
Yeah, sorry for implementing this shortly after the guide came up. BTW, I did notice, Win 7 still has slight trouble with FAT32 64k (it's not standard, you know). If you create a 1 byte file, Win 7 will still display it as using 32k on the disk.

if you create a 1 byte file on linux and windows 10 using an SD card formatted as 64k by EmuNAND9, does that file still show as 32k on disk on both OSes?
 
Last edited by driverdis,

driverdis

I am Justice
OP
Member
Joined
Sep 21, 2011
Messages
2,867
Trophies
2
Age
31
Location
1.048596β
XP
2,838
Country
United States
I actually did use EmuNAND9 to format to 64k clusters and it die show properly on Win7.
not to be rude, but pic or it didn't happen
(as in post a screenshot of the properties box showing 64k on a Windows 7 machine)
I will also try reading my 64k formatted SD Card on a Windows 7 laptop also when I get home to see if mine matches yours or if it matches what @d0k3 mentioned about Windows 7 (shows 32k)
 

Zan'

2F88744FEED717856386400A44BBA4B9CA62E76A32C715D4F
Member
Joined
Oct 8, 2015
Messages
387
Trophies
0
Age
32
XP
271
Country
No idea what's up with that. Create a 1 byte textfile, right click -> properties. What does it say for "size on drive"?
64kb that's why I said it was showing properly.

--------------------- MERGED ---------------------------

not to be rude, but pic or it didn't happen
(as in post a screenshot of the properties box showing 64k on a Windows 7 machine)
I will also try reading my 64k formatted SD Card on a Windows 7 laptop also when I get home to see if mine matches yours or if it matches what @d0k3 mentioned about Windows 7 (shows 32k)
I would, but I am not home.
Not sure if that makes any difference but I built EmuNAND9 myself before the version was released. (Just about 3h before the release)
 

d0k3

3DS Homebrew Legend
Member
Joined
Dec 3, 2004
Messages
2,786
Trophies
1
XP
3,896
Country
Germany
not to be rude, but pic or it didn't happen
(as in post a screenshot of the properties box showing 64k on a Windows 7 machine)
I will also try reading my 64k formatted SD Card on a Windows 7 laptop also when I get home to see if mine matches yours or if it matches what @d0k3 mentioned about Windows 7 (shows 32k)
64kb that's why I said it was showing properly.

--------------------- MERGED ---------------------------


I would, but I am not home.
Not sure if that makes any difference but I built EmuNAND9 myself before the version was released. (Just about 3h before the release)
Okay, I would have written earlier, but there was this outage.

I wanted to do a screenshot to show you it is 32kB for me. Thing is, it is 64kB, too, on WIndows 7. No idea how that misconception happened. Maybe I was too tired and swapped SD cards the day before yesterday. For the actual code to work I needed several attempts, with several tedious formats in between, so that may have lead to me not paying enough attention.
 
Last edited by d0k3,
  • Like
Reactions: Zan'

Zan'

2F88744FEED717856386400A44BBA4B9CA62E76A32C715D4F
Member
Joined
Oct 8, 2015
Messages
387
Trophies
0
Age
32
XP
271
Country
Okay, I would have written earlier, but there was this outage.

I wanted to do a screenshot to show you it is 32kB for me. Thing is, it is 64kB, too, on WIndows 7. No idea how that misconception happened. Maybe I was too tired and swapped SD cards the day before yesterday. For the actual code to work I needed several attempts, with several tedious formats in between, so that may have lead to me not paying enough attention.

Or maybe it was just another Windows Glitch. Just like the 101% completed or the "remaining time" which counts up instead of down. (I know the remaining time stuff can make sense after recalculating and stuff).
But in that case it doesn't require me to upload an image then. 64kb Clusters saved me about 2s of boot time.
o3DS (8~9s | 64kb) is now about 2 seconds faster than my n3DS (10~11s | 32kb) on boot. Before they were about the same speed (n3DS was even a tiny bit faster).
Both are booting emuNAND.
 
  • Like
Reactions: d0k3

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    Sonic Angel Knight @ Sonic Angel Knight: :ninja: