hacks-guide / Guide_3DS

A complete guide to 3DS custom firmware, from stock to boot9strap.
https://3ds.hacks.guide/
MIT License
1.56k stars 310 forks source link

Formating SDXC Cards on Linux #2218

Open HartleyAHartley opened 1 year ago

HartleyAHartley commented 1 year ago

Pages with issue(s)

https://3ds.hacks.guide/formatting-sd-(linux)

Description of the issue(s)

sudo mkfs.fat /dev/(device name from above) -s 64 -F 32

Is not always enough. It is likely that an SDXC has it's partition type set as exFAT. While the partition will correctly be a fat32 partition after running the above command the partition type will still be exFAT. This causes the new 3ds to reject card.

To change the partition to the correct type assuming /dev/mmcblk0 as the device and /dev/mmcblk0p1 as the partition.

sudo fdisk /dev/mmcblk0
Type t to change the partition table.
Type 0b to set the type to 'W95 FAT32'
Type w to write the new type to the disk

 sudo fdisk /dev/mmcblk0
doas (alice@bakery) password: 

Welcome to fdisk (util-linux 2.38.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Command (m for help): t
Selected partition 1
Hex code or alias (type L to list all): 0b
Changed type of partition 'W95 FAT32' to 'W95 FAT32'.

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
HartleyAHartley commented 1 year ago

Changing the partition type also does not wipe the partition.