Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

SDCard Cleanup for MacOS Switch: Difference between revisions

From GameBrew
No edit summary
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Infobox Switch Homebrews
{{Infobox Switch Homebrews
|title=SDCard cleanup
|title=SDCard cleanup for MacOS
|image=Switch-logo.png
|image=Switch-logo.png
|description=SDCard cleanup script for for MacOS users.
|description=SDCard cleanup script for for MacOS users.
|author=rrocha
|author=rrocha
|lastupdated=2018/12/17
|lastupdated=2018/12/20
|type=PC Utilities
|type=PC Utilities
|version=1.3
|version=1.3
|license=Mixed
|license=Mixed
|download=https://dlhb.gamebrew.org/switchhomebrews/sdcardcleanupswitch.7z
|download=https://dlhb.gamebrew.org/switchhomebrews/sdcardcleanupnx.7z
|website=https://gbatemp.net/threads/sdcard-cleanup-script-for-for-macos-users.521177/
|website=https://gbatemp.net/threads/sdcard-cleanup-script-for-for-macos-users.521177/
|source=
|source=
Line 31: Line 31:
After you finish all your operations in your card, run it either by double clicking or via terminal (prior to ejecting). First run will ask for your volume name. Your sdcard label, basically. After this, it will remember it and will be able to find it.  
After you finish all your operations in your card, run it either by double clicking or via terminal (prior to ejecting). First run will ask for your volume name. Your sdcard label, basically. After this, it will remember it and will be able to find it.  


If you need to reset this setting because you changed the label, either delete the <code>.switch-eject.conf</code> file that will be created in your HOME dir or run the script via terminal using the <code>-c</code> flag.
If you need to reset this setting because you changed the label, either delete the <code>.switch-eject.conf</code> file that will be created in your HOME dir or run the script via terminal using the <code>-c</code> flag.  


You can also use the <code>-e</code> flag via terminal for auto-eject when finished.
You can also use the <code>-e</code> flag via terminal for auto-eject when finished. If you want the script to always perform the auto-eject, change "line 71" from <code>[ ! -z "${e}" ] && echo "Ejecting ${VOL}" && sudo umount ${VOL}</code> to <code>echo "Ejecting ${VOL}" && sudo umount ${VOL}</code>


If you want the script to always perform the auto-eject, change "line 71" from <code>[ ! -z "${e}" ] && echo "Ejecting ${VOL}" && sudo umount ${VOL}</code> to <code>echo "Ejecting ${VOL}" && sudo umount ${VOL}</code>
==Changelog==
'''v1.2 2018/12/17'''
*Updated to v1.2 to support SXOS Emutendo folder.


== External links ==
== External links ==
* GBAtemp - https://gbatemp.net/threads/sdcard-cleanup-script-for-for-macos-users.521177/
* GBAtemp - https://gbatemp.net/threads/sdcard-cleanup-script-for-for-macos-users.521177/

Latest revision as of 02:49, 11 July 2023

SDCard cleanup for MacOS
Switch-logo.png
General
Authorrrocha
TypePC Utilities
Version1.3
LicenseMixed
Last Updated2018/12/20
Links
Download
Website

For MacOS users who find themselves in need of executing multiple commands in the terminal but occasionally forget to do so, which can be inconvenient and require removing the card and rebooting, this script eliminates all the hassle and performs all the necessary tasks for you.

Features

  • Disable and remove Spotlight indexing.
  • Remove dot files.
  • Remove dot underbar files.
  • Remove fsevents traces.
  • Fix flags on all sdcard directories except Nintendo and Emutendo dir (as it might mess up installation files and cause corruption on installed titles/tickets).
  • Optionally ejects the sdcard when finished.

Installation

Drop it in your favorite directory.

It is suggested using /usr/local/bin as it will be in system path automatically.

User guide

After you finish all your operations in your card, run it either by double clicking or via terminal (prior to ejecting). First run will ask for your volume name. Your sdcard label, basically. After this, it will remember it and will be able to find it.

If you need to reset this setting because you changed the label, either delete the .switch-eject.conf file that will be created in your HOME dir or run the script via terminal using the -c flag.

You can also use the -e flag via terminal for auto-eject when finished. If you want the script to always perform the auto-eject, change "line 71" from [ ! -z "${e}" ] && echo "Ejecting ${VOL}" && sudo umount ${VOL} to echo "Ejecting ${VOL}" && sudo umount ${VOL}

Changelog

v1.2 2018/12/17

  • Updated to v1.2 to support SXOS Emutendo folder.

External links

Advertising: