-
Notifications
You must be signed in to change notification settings - Fork 7
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
Check default block size #8
Comments
I ended up forking your you repo. My commits can be seen here in my fork: I submit a PR if you want. I ran test with fresh installs with the MiSTer-sd-installer-linux.sh with both your script and my forked script with block size set to 32K here are the results: I also ran the update_all.sh script https://github.com/theypsilon/Update_All_MiSTer to bring the the card up to date and download all of the MAME roms and to organize the _Arcade directory. The -arcade-organizer script creates many symlinks to organize the _Arcade directory. these links 30 to 50 bytes in size. However because of the block size for the file system they end up taking more space. this is show in the examples below. No BS set for 32GB SDCard with MiSTer-sd-installer-linux.sh
BS=32K for 32GB SDcard with MiSTer-sd-installer-linux.sh
There is more than %50 difference in size when block size is set to 32K in the Linux installer script. |
Great work, looks much more efficiënt. I'll gladly merge a PR if you submit one. I'll have to look into how to specify the block size in the macOS version. |
So we need to understand more about block size. exFAT on linux has a defaults: Number of physical sectors per cluster (cluster is an allocation unit in exFAT). Must be a power of 2, i.e. 1, 2, 4, 8, etc. Cluster size can not exceed 32 MB. Default cluster sizes are: 4 KB if volume size is less than 256 MB, 32 KB if volume size is from 256 MB to 32 GB, 128 KB if volume size is 32 GB or larger. What are the trade off in setting BS at 32K? |
See MiSTer-devel/SD-Installer-Win64_MiSTer#10
The text was updated successfully, but these errors were encountered: