How To Fix Archive Bit For All SD Files And Folders

Discussion in 'Switch - Tutorials' started by Myron49485, Aug 17, 2018.

  1. Myron49485
    OP

    Myron49485 Advanced Member

    Newcomer
    2
    Aug 23, 2015
    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 at 9:53 AM
    Zer0w, bahamut17, novalkun and 3 others like this.
  2. lovelypotato

    lovelypotato Newbie

    Newcomer
    1
    Aug 13, 2016
    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
    2
    Aug 23, 2015
    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
    5
    Apr 28, 2013
    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
    8
    Nov 8, 2008
    United States
    Vana'diel
    Could dual boot linux. (or Windows)
     
    Myron49485 and Hmed like this.
  6. novalkun

    novalkun Advanced Member

    Newcomer
    2
    Jan 21, 2017
    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
    3
    Jun 30, 2016
    United States
    thank you
     
    Myron49485 likes this.
  8. Zer0w

    Zer0w Member

    Newcomer
    2
    Jul 14, 2018
    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.
Loading...