Applying a WIM with duplicated file entries












1















I wanted to cleanup the partition table on my drive, so I grabbed another drive and made a Windows To Go workspace. In that WTG system, I backed up my exising Windows 10 with DISM. Then I cleaned the disk and re-partitioned before I attempt to apply the WIM image back.



Now however I attempt to apply or mount the image, both DISM and ImageX get stuck and quit at file UsersiBugAppDataLocallxssrootfslibxtableslibip6t_HL.so. Both are reporting "Error 5: Access denied." I know it's a file from Windows Subsystem for Linux.



I set up 7-Zip and opened the WIM file and it seems OK. I navigated to that folder and was surprised to see 2 files with the same name there, only differing by cases. That is, I have libip6t_HL.so AND libip6t_hl.so in the same place. I think that's the problem because NTFS doesn't have its case sensitivity support enabled by default (it does have support, though).



So how can I apply the WIM correctly? I am eager to destroy those files (or even the whole WSL setup if required).










share|improve this question



























    1















    I wanted to cleanup the partition table on my drive, so I grabbed another drive and made a Windows To Go workspace. In that WTG system, I backed up my exising Windows 10 with DISM. Then I cleaned the disk and re-partitioned before I attempt to apply the WIM image back.



    Now however I attempt to apply or mount the image, both DISM and ImageX get stuck and quit at file UsersiBugAppDataLocallxssrootfslibxtableslibip6t_HL.so. Both are reporting "Error 5: Access denied." I know it's a file from Windows Subsystem for Linux.



    I set up 7-Zip and opened the WIM file and it seems OK. I navigated to that folder and was surprised to see 2 files with the same name there, only differing by cases. That is, I have libip6t_HL.so AND libip6t_hl.so in the same place. I think that's the problem because NTFS doesn't have its case sensitivity support enabled by default (it does have support, though).



    So how can I apply the WIM correctly? I am eager to destroy those files (or even the whole WSL setup if required).










    share|improve this question

























      1












      1








      1


      1






      I wanted to cleanup the partition table on my drive, so I grabbed another drive and made a Windows To Go workspace. In that WTG system, I backed up my exising Windows 10 with DISM. Then I cleaned the disk and re-partitioned before I attempt to apply the WIM image back.



      Now however I attempt to apply or mount the image, both DISM and ImageX get stuck and quit at file UsersiBugAppDataLocallxssrootfslibxtableslibip6t_HL.so. Both are reporting "Error 5: Access denied." I know it's a file from Windows Subsystem for Linux.



      I set up 7-Zip and opened the WIM file and it seems OK. I navigated to that folder and was surprised to see 2 files with the same name there, only differing by cases. That is, I have libip6t_HL.so AND libip6t_hl.so in the same place. I think that's the problem because NTFS doesn't have its case sensitivity support enabled by default (it does have support, though).



      So how can I apply the WIM correctly? I am eager to destroy those files (or even the whole WSL setup if required).










      share|improve this question














      I wanted to cleanup the partition table on my drive, so I grabbed another drive and made a Windows To Go workspace. In that WTG system, I backed up my exising Windows 10 with DISM. Then I cleaned the disk and re-partitioned before I attempt to apply the WIM image back.



      Now however I attempt to apply or mount the image, both DISM and ImageX get stuck and quit at file UsersiBugAppDataLocallxssrootfslibxtableslibip6t_HL.so. Both are reporting "Error 5: Access denied." I know it's a file from Windows Subsystem for Linux.



      I set up 7-Zip and opened the WIM file and it seems OK. I navigated to that folder and was surprised to see 2 files with the same name there, only differing by cases. That is, I have libip6t_HL.so AND libip6t_hl.so in the same place. I think that's the problem because NTFS doesn't have its case sensitivity support enabled by default (it does have support, though).



      So how can I apply the WIM correctly? I am eager to destroy those files (or even the whole WSL setup if required).







      windows-10 windows-subsystem-for-linux dism wim imagex






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jul 23 '17 at 8:24









      iBugiBug

      2,56341839




      2,56341839






















          3 Answers
          3






          active

          oldest

          votes


















          1














          Finally restored my Windows 10 installation from backup!!!



          I used a Chinese utility called WimTool. In its main UI there's a "Edit Configuration" button. I added UsersiBugAppDataLocallxss to [ExclusionList] section, then applied the WIM. As expected, the folder was ignored and no more errors popped up. After restoring Windows 10 setup, simply reinstall WSL.



          According to my experience, non-Chinese users should be able to do this without that tool, but ImageX. Microsoft provided a tutorial on creating ImageX configuration file, and in the tutorial they disclosed the Default Exclusion List for ImageX (same for DISM). All you need to do is copy down the default list and add the desired line to it. Then when applying the image, supply /Config yourfile.ini to ImageX and it'll ignore your specified directories.






          share|improve this answer































            1














            FYI...



            This is a known problem with imagex in Windows 10 1607. There's a Microsoft KB article on it. The article doesn't say if Windows 10 1703 fixes it.



            Microsoft's "solution" is to not install WSL before capturing the image. Your solution of excluding the lxss directory is better :-). Still a Pain In The ASCII to have to reinstall WSL.






            share|improve this answer
























            • The problem is, I didn't know the bug before capturing, and all I have is the WIM file after formatting the drive and attempting to restore (and noticed the error).

              – iBug
              Aug 12 '17 at 3:08



















            0














            You can use the wimupdate in wimlib to remove the WSL, and then you will be able to successfully restore the image.



            The specific command is as follows:



            cat > update_commands.txt << EOF
            delete --recursive /Users/{your_username}/AppData/Local/Packages/CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc
            EOF

            wimupdate {your_backup}.wim 1 < update_commands.txt





            share|improve this answer























              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "3"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1233549%2fapplying-a-wim-with-duplicated-file-entries%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              1














              Finally restored my Windows 10 installation from backup!!!



              I used a Chinese utility called WimTool. In its main UI there's a "Edit Configuration" button. I added UsersiBugAppDataLocallxss to [ExclusionList] section, then applied the WIM. As expected, the folder was ignored and no more errors popped up. After restoring Windows 10 setup, simply reinstall WSL.



              According to my experience, non-Chinese users should be able to do this without that tool, but ImageX. Microsoft provided a tutorial on creating ImageX configuration file, and in the tutorial they disclosed the Default Exclusion List for ImageX (same for DISM). All you need to do is copy down the default list and add the desired line to it. Then when applying the image, supply /Config yourfile.ini to ImageX and it'll ignore your specified directories.






              share|improve this answer




























                1














                Finally restored my Windows 10 installation from backup!!!



                I used a Chinese utility called WimTool. In its main UI there's a "Edit Configuration" button. I added UsersiBugAppDataLocallxss to [ExclusionList] section, then applied the WIM. As expected, the folder was ignored and no more errors popped up. After restoring Windows 10 setup, simply reinstall WSL.



                According to my experience, non-Chinese users should be able to do this without that tool, but ImageX. Microsoft provided a tutorial on creating ImageX configuration file, and in the tutorial they disclosed the Default Exclusion List for ImageX (same for DISM). All you need to do is copy down the default list and add the desired line to it. Then when applying the image, supply /Config yourfile.ini to ImageX and it'll ignore your specified directories.






                share|improve this answer


























                  1












                  1








                  1







                  Finally restored my Windows 10 installation from backup!!!



                  I used a Chinese utility called WimTool. In its main UI there's a "Edit Configuration" button. I added UsersiBugAppDataLocallxss to [ExclusionList] section, then applied the WIM. As expected, the folder was ignored and no more errors popped up. After restoring Windows 10 setup, simply reinstall WSL.



                  According to my experience, non-Chinese users should be able to do this without that tool, but ImageX. Microsoft provided a tutorial on creating ImageX configuration file, and in the tutorial they disclosed the Default Exclusion List for ImageX (same for DISM). All you need to do is copy down the default list and add the desired line to it. Then when applying the image, supply /Config yourfile.ini to ImageX and it'll ignore your specified directories.






                  share|improve this answer













                  Finally restored my Windows 10 installation from backup!!!



                  I used a Chinese utility called WimTool. In its main UI there's a "Edit Configuration" button. I added UsersiBugAppDataLocallxss to [ExclusionList] section, then applied the WIM. As expected, the folder was ignored and no more errors popped up. After restoring Windows 10 setup, simply reinstall WSL.



                  According to my experience, non-Chinese users should be able to do this without that tool, but ImageX. Microsoft provided a tutorial on creating ImageX configuration file, and in the tutorial they disclosed the Default Exclusion List for ImageX (same for DISM). All you need to do is copy down the default list and add the desired line to it. Then when applying the image, supply /Config yourfile.ini to ImageX and it'll ignore your specified directories.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Aug 1 '17 at 4:24









                  iBugiBug

                  2,56341839




                  2,56341839

























                      1














                      FYI...



                      This is a known problem with imagex in Windows 10 1607. There's a Microsoft KB article on it. The article doesn't say if Windows 10 1703 fixes it.



                      Microsoft's "solution" is to not install WSL before capturing the image. Your solution of excluding the lxss directory is better :-). Still a Pain In The ASCII to have to reinstall WSL.






                      share|improve this answer
























                      • The problem is, I didn't know the bug before capturing, and all I have is the WIM file after formatting the drive and attempting to restore (and noticed the error).

                        – iBug
                        Aug 12 '17 at 3:08
















                      1














                      FYI...



                      This is a known problem with imagex in Windows 10 1607. There's a Microsoft KB article on it. The article doesn't say if Windows 10 1703 fixes it.



                      Microsoft's "solution" is to not install WSL before capturing the image. Your solution of excluding the lxss directory is better :-). Still a Pain In The ASCII to have to reinstall WSL.






                      share|improve this answer
























                      • The problem is, I didn't know the bug before capturing, and all I have is the WIM file after formatting the drive and attempting to restore (and noticed the error).

                        – iBug
                        Aug 12 '17 at 3:08














                      1












                      1








                      1







                      FYI...



                      This is a known problem with imagex in Windows 10 1607. There's a Microsoft KB article on it. The article doesn't say if Windows 10 1703 fixes it.



                      Microsoft's "solution" is to not install WSL before capturing the image. Your solution of excluding the lxss directory is better :-). Still a Pain In The ASCII to have to reinstall WSL.






                      share|improve this answer













                      FYI...



                      This is a known problem with imagex in Windows 10 1607. There's a Microsoft KB article on it. The article doesn't say if Windows 10 1703 fixes it.



                      Microsoft's "solution" is to not install WSL before capturing the image. Your solution of excluding the lxss directory is better :-). Still a Pain In The ASCII to have to reinstall WSL.







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Aug 11 '17 at 18:19









                      John Q. PublicJohn Q. Public

                      111




                      111













                      • The problem is, I didn't know the bug before capturing, and all I have is the WIM file after formatting the drive and attempting to restore (and noticed the error).

                        – iBug
                        Aug 12 '17 at 3:08



















                      • The problem is, I didn't know the bug before capturing, and all I have is the WIM file after formatting the drive and attempting to restore (and noticed the error).

                        – iBug
                        Aug 12 '17 at 3:08

















                      The problem is, I didn't know the bug before capturing, and all I have is the WIM file after formatting the drive and attempting to restore (and noticed the error).

                      – iBug
                      Aug 12 '17 at 3:08





                      The problem is, I didn't know the bug before capturing, and all I have is the WIM file after formatting the drive and attempting to restore (and noticed the error).

                      – iBug
                      Aug 12 '17 at 3:08











                      0














                      You can use the wimupdate in wimlib to remove the WSL, and then you will be able to successfully restore the image.



                      The specific command is as follows:



                      cat > update_commands.txt << EOF
                      delete --recursive /Users/{your_username}/AppData/Local/Packages/CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc
                      EOF

                      wimupdate {your_backup}.wim 1 < update_commands.txt





                      share|improve this answer




























                        0














                        You can use the wimupdate in wimlib to remove the WSL, and then you will be able to successfully restore the image.



                        The specific command is as follows:



                        cat > update_commands.txt << EOF
                        delete --recursive /Users/{your_username}/AppData/Local/Packages/CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc
                        EOF

                        wimupdate {your_backup}.wim 1 < update_commands.txt





                        share|improve this answer


























                          0












                          0








                          0







                          You can use the wimupdate in wimlib to remove the WSL, and then you will be able to successfully restore the image.



                          The specific command is as follows:



                          cat > update_commands.txt << EOF
                          delete --recursive /Users/{your_username}/AppData/Local/Packages/CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc
                          EOF

                          wimupdate {your_backup}.wim 1 < update_commands.txt





                          share|improve this answer













                          You can use the wimupdate in wimlib to remove the WSL, and then you will be able to successfully restore the image.



                          The specific command is as follows:



                          cat > update_commands.txt << EOF
                          delete --recursive /Users/{your_username}/AppData/Local/Packages/CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc
                          EOF

                          wimupdate {your_backup}.wim 1 < update_commands.txt






                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Jan 28 at 14:34









                          于国瑞于国瑞

                          1




                          1






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Super User!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1233549%2fapplying-a-wim-with-duplicated-file-entries%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              How to make a Squid Proxy server?

                              Is this a new Fibonacci Identity?

                              19世紀