Homebrew RELEASE SDCard cleanup script for for MacOS users

rrocha

Developer
OP
Developer
Joined
Nov 21, 2016
Messages
137
Trophies
0
XP
1,818
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: 988
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
9,917
Trophies
2
XP
29,878
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
  • SylverReZ @ SylverReZ:
    @mthrnite, Cheetah Girls, the sequel to Action 52's Cheetah Men.
    +2
  • Psionic Roshambo @ Psionic Roshambo:
    Pokemon Black I played that one a lot
  • K3Nv2 @ K3Nv2:
    Honestly never messed with Pokémon on ds much
  • mthrnite @ mthrnite:
    I played pokemon once, was bored, never tried again
  • Psionic Roshambo @ Psionic Roshambo:
    Oh Dragon Quest IX
  • K3Nv2 @ K3Nv2:
    Spent like 5 hours on switch one never touched it again
  • Psionic Roshambo @ Psionic Roshambo:
    Sentinel of the stary skies
  • K3Nv2 @ K3Nv2:
    Ds is 20 years old this year
  • Psionic Roshambo @ Psionic Roshambo:
    So MJ no longer wants to play with it?
  • K3Nv2 @ K3Nv2:
    He put it down when the 3ds came out
  • SylverReZ @ SylverReZ:
    @K3Nv2, RIP Felix does great videos on the PS3 yellow-light-of-death.
  • Jayro @ Jayro:
    Eventhough the New 3DS XL is more powerful, I still feel like the DS Lite was a more polished system. It's a real shame that it never got an XL variant keeping the GBA slot. You'd have to go on AliExpress and buy an ML shell to give a DS phat the unofficial "DS Lite" treatment, and that's the best we'll ever get I'm afraid.
    +1
  • Jayro @ Jayro:
    The phat model had amazingly loud speakers tho.
    +1
  • SylverReZ @ SylverReZ:
    @Jayro, I don't see whats so special about the DS ML, its just a DS lite in a phat shell. At least the phat model had louder speakers, whereas the lite has a much better screen.
    +1
  • SylverReZ @ SylverReZ:
    They probably said "Hey, why not we combine the two together and make a 'new' DS to sell".
  • Veho @ Veho:
    It's a DS Lite in a slightly bigger DS Lite shell.
    +1
  • Veho @ Veho:
    It's not a Nintendo / iQue official product, it's a 3rd party custom.
    +1
  • Veho @ Veho:
    Nothing special about it other than it's more comfortable than the Lite
    for people with beefy hands.
    +1
  • Jayro @ Jayro:
    I have yaoi anime hands, very lorge but slender.
  • Jayro @ Jayro:
    I'm Slenderman.
  • Veho @ Veho:
    I have hands.
    Veho @ Veho: