Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add information on how to check current cluster size under Linux #2391

Open
MateusRodCosta opened this issue Nov 4, 2023 · 2 comments
Open

Comments

@MateusRodCosta
Copy link

Pages with issue(s)

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

Description of the issue(s)

It is actually possible to determine what is the current cluster size of a FAT32 partition under Linux, it might be useful to add that information to guide.

The command is:

$ fsck.fat -n -v /dev/<SD card device>

-n here means do a check without changing anything and -v for verbose.

The important part is this section:

Media byte 0xf8 (hard disk)
       512 bytes per logical sector
     32768 bytes per cluster
        64 reserved sectors

So it's possible to see the SD card is formatted with 32 kb cluster size.

@lifehackerhansol
Copy link
Member

Do you think it's worth the double check? i.e. Our given mkdosfs command should have it formatted correctly.

We don't double-check for Windows either, so if this were to be added, it should be applied to the other operating systems as well.

@MateusRodCosta
Copy link
Author

Hi, sorry I forgot about this.

Do you think it's worth the double check?

It might not be useful to immediately check the cluster size after formatting.

However it might be useful to check it if you formatted with some other tool or have an old install and you are considering whether you should re-format the SD card or not (moving all files to a PC and back might be very slow, depending on size of card and speed).
In that case you would check.

We don't double-check for Windows either, so if this were to be added, it should be applied to the other operating systems as well.

I'm not very familiar with how to do this on Windows, but I would guess either the properties window or the Disk management tool could easily show this info.

It's a bit unfortunate that GNOME Disks on Linux kinda hides it (although it might be exposed via udisks)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants