Any endeavor to opened upward LINUX files using Windows tools may read-lock the opened files/folders, thereby stopping updates for your file contents. This invariably tin resultant inwards files in addition to folders becoming corrupted. As such, Windows experts suggest its customers to practise extreme caution spell attempting to do Linux files using Windows apps, tools, scripts in addition to consoles.
Creating or changing Linux files from Windows
If nosotros dig a chip deeper into this champaign of report in addition to uncovering why this phenomenon occurs inwards the get-go place, we'll bring our questions answered. Every Operating System has its ain file meta information which differ from i OS to another. As a result, Windows file metadata is dissimilar from Linux file metadata, non recognized past times Windows.
As a natural trial of this, whatever drive to add together or update Linux file metadata using Windows files would impose an unnecessary overhead on virtually Windows users who volition non run WSL.
If you lot are non aware, WSL or Windows Subsystem for Linux (WSL) is a compatibility layer for running Linux binary executables natively on Windows 10. So, It's the sole responsibleness of WSL to write/update Linux file metadata for all the files nether your Linux filesystem source (i.e. /), storing the Linux metadata inwards each file's NTFS extended attributes. In add-on to the above, WSL also synthesizes pseudo metadata for virtually of the files inwards your Windows filesystem.
The occupation occurs when, a user uses a Windows app/tool to open, do or modify a file nether your distro source (Linux filesystem containing Linux files or whatever of the files in addition to folders nether %localappdata%\lxss). Since Windows application/program was used to do the file, it won’t bring whatever Linux file metadata (e.g. permissions, owner, access/update timestamps, etc.). Therefore, for a Linux organisation which is configured exclusively to have Linux file metadata, the file may bring roughly metadata only volition look every bit empty, corrupting contents inwards the file.
To avoid such instances of misfortune, follow these ii rules to avoid losing files or corrupting your data,
- First, never bear witness to shop files inwards your Windows filesystem you lot desire to modify using Windows tools AND Linux tools
- Second, DO NOT endeavor to create/modify Linux files from Windows apps, tools, scripts or consoles.
For to a greater extent than information, watch MSDN Blog.
Source: https://www.thewindowsclub.com/
comment 0 Comments
more_vert