1. rrocha

    OP rrocha Advanced Member
    Newcomer

    Joined:
    Nov 21, 2016
    Messages:
    93
    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
     

    Attached Files:

    Last edited by rrocha, Dec 17, 2018
  2. dustyranch

    dustyranch Member
    Newcomer

    Joined:
    Sep 21, 2018
    Messages:
    10
    Country:
    Sweden
    This is great, thanks for this!
     
  3. peteruk

    peteruk GBAtemp Addict
    Member

    Joined:
    Jun 26, 2015
    Messages:
    2,382
    Country:
    United Kingdom
    very useful
     
    kop365, Citrus-Hombre and Alex-Kidd like this.
  4. rrocha

    OP rrocha Advanced Member
    Newcomer

    Joined:
    Nov 21, 2016
    Messages:
    93
    Country:
    Portugal
    Updated to v1.2 to support SXOS Emutendo folder
     
    eclectric likes this.
  5. moosethemucha

    moosethemucha Newbie
    Newcomer

    Joined:
    Apr 13, 2011
    Messages:
    5
    Country:
    I wrote one of these ages ago for my use - this is better all mine did was fix the flags and was an alias - thanks bro
     
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - cleanup, SDCard, script