1. Myron49485

    OP Myron49485 Advanced Member
    Newcomer

    Joined:
    Aug 23, 2015
    Messages:
    58
    Country:
    Singapore
    This probably only applies to people who use a Mac to manage files to their Switch's SD card. Doing this could change the files' archive bit, causing problems on the Switch OS.

    One way to fix the contents of your SD card, is to use Windows to uncheck the "Folder is ready for archiving" option for every file and folder on the SD card, except for all the files and folders under "/Nintendo/Contents/registered/". After doing this, all of your games and homebrew should work, and your pictures and videos should reappear. (Instructions below.)

    (In other words, the archive bit must be set for items inside the "registered" folder, and unset for everything else (including the "registered" folder itself)).

    SD Card Related Issues:
    - Unlocking the console: "Error Code: 2017-0247 Unable to access microSD card" or
    "Data on this microSD card is corrupted and cannot be used. The corrupted data will be deleted."
    - Launching software: "The software was closed because an error occurred."
    - Missing screenshots and videos / "Could not save".
    - Missing / no homebrew in hbmenu
    - Homebrew not recognising SD files / not working.

    Disclaimer Regarding the Nintendo Folder:
    If all your games are already "corrupted" then this shouldn't affect you, and you can proceed with the guide.
    This should work fine for everyone as it had for me and the others, but something might still happen. If changing the archive bit on the Nintendo folder corrupts games that were previously uncorrupted instead of fixing them (which is unlikely), do make a post below.

    Step-By-Step Instructions:
    - You will need a Windows computer/ VM for this.
    - This guide aims to fix the entire SD card. You may do it differently to fix specific files and folders.
    - You can also use Hekate to fix just the switch folder, or all files (excluding the Nintendo folder).

    1. Select all items at the root of your SD card.
    2. Right click the items and select "Properties".
    3. Select "Advanced...". Untick the "Folder is ready for archiving" checkbox, then click "OK".
    (Note: If the checkbox is already unticked, do steps 3-4 twice, ticking it on the first time and unticking it on the second time.)
    4. Click "Apply". When the confirmation dialog comes up, select "Apply changes to this folder, subfolders and files", and click "OK".

    5. Navigate to "/Nintendo/Contents/registered/".
    6. Select all items inside the "registered" folder.
    (/Nintendo/Contents/registered/<select all items in here>)
    7. Right click the items and select "Properties".
    (Note: Steps 8-9 are the same as above, but this time we want the checkbox to end up being ticked.)
    8. Select "Advanced...". Tick the "Folder is ready for archiving" checkbox, then click "OK".
    (Note: if the checkbox is already ticked, do steps 8-9 twice, unticking it on the first time and ticking it on the second time).
    9. Click "Apply". When the confirmation dialog comes up, select "Apply changes to this folder, subfolders and files", and click "OK".
    10. All your files should now be fixed.

    Using a Mac:

    If you need to use a Mac to manage files on the Switch SD, you can find a compatible file manager program (any suggestions?) or a use Windows VM. If you know how to use Terminal, you might be able to do it with this other tutorial.
    Other:
    Rajkosto mentioned this 2 months prior, but you'll have to change archive bits on the Nintendo folder if you want to fix your games.
     
    Last edited by Myron49485, Dec 18, 2018
    popy, Anonymous456, f0li0 and 8 others like this.
  2. lovelypotato

    lovelypotato Newbie
    Newcomer

    Joined:
    Aug 13, 2016
    Messages:
    5
    Country:
    Malaysia
    Wow thanks a lot for your post!

    I had issues with - Launching software: "The software was closed because an error occurred." and your steps worked for me. I almost formatted my SD card because I couldn't fix my issue for a couple of hours.
     
    Myron49485 and Hmed like this.
  3. Myron49485

    OP Myron49485 Advanced Member
    Newcomer

    Joined:
    Aug 23, 2015
    Messages:
    58
    Country:
    Singapore
    Glad it helped!

    I just used to format my SD card, but I could only reinstall my games that many times.
     
    Hmed likes this.
  4. Akira

    Akira I'm not a SHRIMP!!!!
    Member

    Joined:
    Apr 28, 2013
    Messages:
    1,214
    Country:
    United States
    The only problem when trying to copy data specially big NSPs using VM is takes a lot longer than using MacOS itself. This tutorial will definitely help me though since I have encountered this error twice already. Had to format the sd cards and recopy the files again which is a little bit annoying.
     
    Myron49485 and Hmed like this.
  5. Ericthegreat

    Ericthegreat Not New Member
    Member

    Joined:
    Nov 8, 2008
    Messages:
    3,354
    Country:
    United States
    Could dual boot linux. (or Windows)
     
    Myron49485 and Hmed like this.
  6. novalkun

    novalkun GBAtemp Regular
    Member

    Joined:
    Jan 21, 2017
    Messages:
    127
    Country:
    Indonesia
    I took me two days to find this thread :wacko:.Now my hekate/ReinX n others can load nsp games
    Thanks :bow:
     
    Myron49485 likes this.
  7. focusonme

    focusonme GBAtemp Regular
    Member

    Joined:
    Jun 30, 2016
    Messages:
    223
    Country:
    United States
    thank you
     
    Myron49485 likes this.
  8. Zer0w

    Zer0w Member
    Newcomer

    Joined:
    Jul 14, 2018
    Messages:
    31
    Country:
    Netherlands
    Wanted to thank you, this fixed my issue of not launching into CFW all of a sudden. Also the first sentence didn't seem to apply for me as I was on Windows.
     
    Last edited by Zer0w, Nov 25, 2018
    Myron49485 likes this.
  9. Bilada

    Bilada Newbie
    Newcomer

    Joined:
    Jan 17, 2016
    Messages:
    3
    Country:
    Brazil
    The "advanced" option is not showing for me :(
     
    CrazyRach82 likes this.
  10. SolderJS

    SolderJS Newbie
    Newcomer

    Joined:
    Feb 19, 2019
    Messages:
    7
    Country:
    United States
    Re: macOS

    When you copy a file onto a FAT32 volume the default behavior is to put the files in the "Folder is ready for archiving" (CHECKED) state.

    To mark as "NOT Ready for Archiving" set the "Archived Flag"
    (https://ss64.com/osx/chflags.html)

    Code:
    # set the archived flag
    # This is the same as UNCHECKING "Folder is ready for archiving"
    # (archived != ready to archive)
    sudo chflags -R arch /Volumes/YOUR_NINTENDO_SD/
    ...

    To mark as "Not Archived" create or change the file
    (https://www.win.tue.nl/~aeb/linux/lk/lk-7.html)

    Code:
    # by creating new files, the archived flag will be unset by default
    # This is the same as CHECKING "Folder is ready for archiving"
    # (new or "changed" file == ready to archive)
    rsync -av --perms --progress /YOUR_BACKUPS/Nintendo/Contents/registered/ /Volumes/YOUR_NINTENDO_SD/Nintendo/Contents/registered/
     
    Last edited by SolderJS, Jan 15, 2020
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - Archive, Folders, Files