Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I delete the folder under %LOCALAPPDATA% after moving a distro? #79

Closed
Line40 opened this issue Feb 14, 2019 · 4 comments
Closed

Can I delete the folder under %LOCALAPPDATA% after moving a distro? #79

Line40 opened this issue Feb 14, 2019 · 4 comments

Comments

@Line40
Copy link

Line40 commented Feb 14, 2019

Hi,

I just used your tool for the first time, to move a distribution to a different drive, it worked great, thanks for this awesome tool!
However I noticed that the files that the original installation created under %LOCALAPPDATA% (Ubuntu in my case) are still present. I would like to delete them, since my system drive is rather small. Is it safe to do so?
Whichever the answer should be, I think it would be good to mention it somewhere. I imagine I'm not the only one wanting to save the space after moving the distro.

Cheers

Line40

@DDoSolitary
Copy link
Owner

DDoSolitary commented Feb 17, 2019

Please provide names of the subdirectories in the installation directory so that I can tell if they are important.

In theory, "rootfs" should have been moved to target location while other auxillary directory should remain. If it's not the case, then I think some errors might have occurred when you were moving the distro.

@Biswa96
Copy link

Biswa96 commented Feb 21, 2019

DO NOT delete the old WSL/Linux distro installation with 'Delete key' or any Windows tools. Use wslconfig.exe /u <distro_name> command and wait some time to finish it.

Cause: There are many files (like socket, symbolic link etc.) Windows don't know about it's metadata. So sometimes when I tried to delete that rootfs folder rd /s (Windows command) shows many error. At last, I have to use The A-Bomb, rm -rf ./rootfs 🌋

@DDoSolitary
Copy link
Owner

@Biswa96 I don't think it's a good idea to use wslconfig /u because this will delete the distro which has been moved to the desired location instead of the files left behind, which OP actually wants to delete and is most likely to be some subtle auxiliary files like temp, .ico, etc.

@DDoSolitary
Copy link
Owner

DDoSolitary commented Feb 24, 2019

I just notice that I forgot to delete the source directory after moving in some cases. So I think it's safe to delete the files you mentioned manually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants