-
Notifications
You must be signed in to change notification settings - Fork 867
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
bash command not work for me after edit .bashrc using ST3 #904
Comments
Editing files within VolFs from a Windows program is not supported. This means it is not supported to modify files under / (only exception is DrvFs, i.e. /mnt/) from Windows. There are a number of reasons for this. We go into more details on in our filesystem blog post and #403. Please use a Linux / Ubuntu app to modify files these files (vim, emacs, nano, etc...). Editing these files in many Windows applications will make the file disappear from WSL. FYI: you can get into similar issues if you modify your Linux directory structure from within WIndows. |
Thanks, I edit it using nano and save it again fix the problem. |
I ended up in same situation today but with the difference that I can't get rid of error just by editing file in Linux. Is there any way to repair this? Or should I re-install BashOnWindows? But how? |
@sytelus I also got stuck; but deleting the file that I touched with Windows (that seemed to disappear inside WSL/bash) in Explorer allowed me to recreate it inside WSL. |
In my case, nothing got it fixed. I used following command to delete BashOnWindows and then reinstall it:
|
Here is a nice whiteboard-talk about how WSL/LXSS works and why editing/copying files and moving them into the VolFS mounts won't always work. At about 15:15 in the video
There are three VolFS mounts, |
I also needed to start a new bash shell to pick up the fact that .bashrc had been deleted from Explorer. |
I kept getting input/output error whenever I tried to touch,vim,nano, anything the file in Bash, so I successfully fixed my problem by doing the following:
Good to go. |
same question. |
Shouldn't the Linux files exposed in Windows be handled by a reparse point library, so that it knows that the file is part of an area managed by Linux, and that needs at least basic extended attributes, added automatically even if the Windows application modifying it or creating it does not create these attributes themselves (as they don't know how to map Linux attributes from/to Windows attributes). |
That's #1524. |
Hell, I have a problem that when I type bash command I get
bash: /home/<user>/.bashrc: Input/output error
, and when I open my terminal all the time I gotThanks
The text was updated successfully, but these errors were encountered: