Bash install hangs at "Extracting Filesystem"
It's been sitting on this for over 30 minutes

It sat there for a few hours the other day, and via this post I restarted and ran lxrun /uninstall /full before running bash again, which has repeated.
Could you try to run this command and share the output?
bash.exe -c "ps auxf"
21 minutes after typing the command ...

Even running it as an admin this time, in case it helped.
Bash is apparently trying to do something, but not much?

Would a dump file of either bash or bash.exe be helpful?
Build 14367

Something looks hung, could you try the command I suggested?
bash.exe -c "ps auxf"
Also, I noticed you're not using cmd.exe. Which terminal are you using? It's possible something is going wrong because of that. I can give it a try locally and see if I can reproduce your issue.
I did run the command if you check the screenshot.
It's also cmd.exe, it's just in a terminal wrapper to give it tabs (ConEmu) with an extension for line-completion (Clink)

Could Cygwin conflict?
@tigerhawkvok I don't think Cygwin is conflicting. I'd like to try to reproduce your issue using the terminal wrapper, what is it called? Have you tried installing without the wrapper?
What would be useful is a trace of the install. Tracing instructions below
- Download the below two .txt files and rename them .cmd
- Run start_lxcore_trace.cmd from an admin command prompt
- Launch the install
- Wait ~10 minutes.
- Run stop_lxcore_trace.cmd from an admin command prompt
- You should now see three .etl files in the directory you ran the script from.
- Email the logs to: [email protected]. Include in the subject / message to forward to the WSL team. In the body of the email mention it is for russalex.
https://github.com/Microsoft/BashOnWindows/files/288621/start_lxcore_trace.txt https://github.com/Microsoft/BashOnWindows/files/288622/stop_lxcore_trace.txt
Also attaching here for ease of tracking. I use the ConEmu terminal wrapper: https://conemu.github.io/
I doubt there's anything I'd consider sensitive in there that I haven't put in a public profile. Email has been sent!
I haven't tried without the wrapper, but I can disable auto-attach (eg, spawned windows are brought into the wrapper) and try again.
@tigerhawkvok Thanks I'll take a look. Agreed our tracing is unlikely to have anything personally identifiable in it, it's really more of a chain of custody precaution which applies much more to full memory dumps.
@tigerhawkvok Thanks for providing the traces. Unfortunately the only thing I've been able to determine is the following:
- Our service is successfully creating an instance and our init process is launching.
- The init process successfully forks and execs /bin/bash
After this there are no breadcrumbs, /bin/bash is clearly hanging on something but I'm at a loss as to what. I will check with some other developers on the team to see if they have any ideas how we can further diagnose this.
FWIW, on 14371 I renamed my Cygwin folders (to break their paths) then tried this again, to the same result.
I ran into this same problem today (build 14366) and after waiting 30 minutes I pressed ENTER in desperation. 😄 That immediately caused what appeared to unflushed output to print and everything was installed successfully.
After much effort I was able to debug this. We have a bug in our driver if you have more than 2 NT pagefiles on your system. Any of you that are experiencing this issue could you please try disabling all but one of your pagefiles and trying to launch bash?
See #358 and #538 for more info.
That worked, but creating a user initially threw an error:

This was fixed by renaming F:/TempFolder/temp to F:/TempFolder/Temp. The creation script should check for the case of the actual temp folder before trying to write to it in a case-sensitive manner.
WSL is in kind of a strange place because it's case sensitive and the rest of NT sometimes doesn't play nicely. I have a change locally that will fix this.
I confirm this issue installing Bash on build 14388, and disabling all pagefiles but one, fixed the problem.
I just encountered this but only have a single pagefile. In fact, I have 'Automatically manage paging file size for all drives' checked. Build 14393.10.
Pressing Enter like @carolynvs suggested had no effect.
@sysrage, please double check that the page file is set to 'none' on all drives except one and reboot. Leaving it as 'Managed by the system' one more than 1 drive caused this issue on my pc.
I seem to have the same problem with version 14393, only have one drive and one pagefile.
I've noticed however that if I close the windows and run bash for windows it seems to work fine, however the default user is root and has no defined password.

Could this be related with the creation of users after install?
Are you running Avast? I had the same problem, uninstalled Avast (disabling wont work) and now everything works perfectly.
