Homebrew RELEASE SDCard cleanup script for for MacOS users

rrocha

Developer
OP
Developer
Joined
Nov 21, 2016
Messages
137
Trophies
0
XP
1,841
Country
Portugal
For all the mac users that need to run multiple commands in the terminal, sometimes forget to do so and have to take the card out again and reboot, yada, yada, yada... Here's a script to do everything for you.

Features:
- disable and remove Spotlight indexing
- remove dot files
- remove dot underbar files
- remove fsevents traces
- fixes 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. I suggest /usr/local/bin as it will be in system path automatically

Usage:
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}

Enjoy
 

Attachments

  • switch-eject-script-v1.3.zip
    1.4 KB · Views: 1,015
Last edited by rrocha,

alucardx2

Active Member
Newcomer
Joined
Oct 27, 2020
Messages
34
Trophies
0
Age
36
XP
180
Country
Chile
For anyone trying this in 2022, after using this script whenever I try to launch a game I get this error: "Could not start the software. Please try again from the HOME Menu."

EDIT: Now I realize I should have changed "emutendo" for emuMMC in the script so that it didn't mess with flags on that directory :(
@rrocha any way to easily fix this? now not even re-installing the games will make it work
 
Last edited by alucardx2,

hippy dave

BBMB
Member
Joined
Apr 30, 2012
Messages
10,057
Trophies
2
XP
31,830
Country
United Kingdom
For anyone trying this in 2022, after using this script whenever I try to launch a game I get this error: "Could not start the software. Please try again from the HOME Menu."

EDIT: Now I realize I should have changed "emutendo" for emuMMC in the script so that it didn't mess with flags on that directory :(
@rrocha any way to easily fix this? now not even re-installing the games will make it work
Have you tried the archive bit fix in Hekate tools menu?
 
  • Like
Reactions: alucardx2

alucardx2

Active Member
Newcomer
Joined
Oct 27, 2020
Messages
34
Trophies
0
Age
36
XP
180
Country
Chile
That worked! Thanks so much man
By the way are directories case sensitive in the script? For example, if the folder is Nintendo but in the script it says nintendo, would the directory be considered?

EDIT: Nevermind, I figured out the -i makes it case insensitive, so it should be fine as it is
 
Last edited by alucardx2,
  • Like
Reactions: hippy dave

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Veho @ Veho:
    I'm paying €3 per 450ml bottle, not sure how much that is in flooz.
  • Veho @ Veho:
    15 flooz.
  • Veho @ Veho:
    Apparently.
  • K3Nv2 @ K3Nv2:
    I like VineRipe ketchup
  • Veho @ Veho:
    Yeah, some store brand and off-brand ketchups are better than brand name and for waay less money.
  • K3Nv2 @ K3Nv2:
    If it takes a year off it takes a year off
  • Veho @ Veho:
    I buy this, they pretend to be American but they're made in Poland.
  • Veho @ Veho:
    Slippery Poles.
  • K3Nv2 @ K3Nv2:
    I been in the BBQ sauce/sweet potato gang lately
  • Veho @ Veho:
    I've rediscovered BBQ sauce recently. Good shit.
  • Veho @ Veho:
    And I got a can of chipotle adobo or adobo'd chipotle or whatever, waiting.
  • Veho @ Veho:
    Need something to eat it with .
  • K3Nv2 @ K3Nv2:
    Stores been selling these throw in the microwave whole potatoes for like $1.50 saves time
  • Veho @ Veho:
    Can't just eat it right out of the can like I do dried tomatoes.
  • K3Nv2 @ K3Nv2:
    Sweet potato mash with cheese sour cream and BBQ sauce so good
  • Veho @ Veho:
    I don't like mash :(
  • Veho @ Veho:
    I'm a picky little bitch.
  • K3Nv2 @ K3Nv2:
    Wanna mash
  • Veho @ Veho:
    I don't like 'em limp.
  • Veho @ Veho:
    Give it to me good and hard, not limp and soggy.
  • K3Nv2 @ K3Nv2:
    Hard hot potato
  • Veho @ Veho:
    She got scared of a little bush.
    Veho @ Veho: She got scared of a little bush.