1 頁 (共 1 頁)

wsl home 目錄

發表於 : 2019-02-18 20:42:06
yehlu
至於子系統的檔案、還有 Home 目錄,則是放在「c:\Users\Heresy\AppData\Local\lxss\」(使用者名稱請自行更換)這個資料夾下;由於他是隱藏資料夾,底下也有不少隱藏的資料夾,所以建議調整一下檔案總管的設定,會比較好找。

Re: wsl home 目錄

發表於 : 2019-02-22 21:56:14
yehlu
https://stackoverflow.com/questions/387 ... hard-drive

https://github.com/DDoSolitary/LxRunOffline/releases

You can move the distribution to another drive using lxRunOffline.

1. Set permissions to the target folder. First, I think you must set some permissions to the folder where the distribution will be moved. You may use icacls <dir> /grant "<user>:(OI)(CI)(F)" to set the proper permissions.

C:\> whoami
test\jaime

C:\> icacls D:\wsl /grant "jaime:(OI)(CI)(F)"
NOTE: In addition to the above permissions, I have activated the long path names in Windows.

2. Move the distribution. Using lxrunoffline move.

C:\wsl> lxrunoffline move -n Ubuntu-18.04 -d d:\wsl\installed\Ubuntu-18.04
You may check the installation folder using

C:\wsl> lxrunoffline get-dir -n Ubuntu-18.04
d:\wsl\installed\Ubuntu-18.04
3. Run the distribution. after moving the distribution, you can run the distribution using wsl or the same lxrunoffline

C:\wsl> lxrunoffline run -n Ubuntu-18.04 -w
user@test:~$ exit
logout

C:\wsl> wsl
user@test:/mnt/c/wsl$ exit
logout