| 13 Feb 2023 |
K900 | The only consistent way to do it that I know of is to basically wsl --export | wsl --import | 18:38:13 |
K900 | Which is what I'm doing right now, very, very slowly | 18:38:39 |
Arson Copperflame | You can fill the image with dd if=/dev/zero of=<file> and then run the optimize command | 18:44:13 |
K900 | That also doesn't work, funnily enough | 18:45:25 |
K900 | Because WSL lies about the rootfs capacity | 18:45:33 |
K900 | And will just fail writes if the underlying disk is out of space | 18:45:42 |
Arson Copperflame | Why would they LIE ABOUT THAT?? | 18:47:07 |
K900 | ¯\_(ツ)_/¯ | 18:47:18 |
K900 | Anyway found a script that automates the dance: https://github.com/okibcn/wslcompact | 18:47:26 |
K900 | Running that now | 18:47:35 |
K900 | How the fuck is it this slow | 19:06:23 |
K900 | What is it even doing | 19:06:26 |
K900 | Gonna write my own script that makes a new vhdx, mounts it natively as ext4, then rsyncs the whole system over | 19:06:44 |
K900 | Sheesh | 20:10:32 |
K900 | It's still going | 20:10:34 |
K900 | Copied 75GB supposedly | 20:10:41 |
K900 | Of ~150 reported by df | 20:10:51 |
K900 | OK I'm pretty sure it's dead | 20:17:32 |
K900 | Or dying | 20:17:32 |
K900 | OK, doing the rsync thing is definitely way faster | 20:26:26 |
K900 | Also if I make my own vhdx, I can set a size cap that's reasonable, yay | 20:27:11 |
K900 | So yeah, the rsync thing is at 120GB copied in 15 minutes | 20:40:27 |
K900 | Probably should have done that from the start | 20:40:33 |
K900 | Aaaand it's done | 20:41:40 |
K900 | Now I just need to swap the VHDX files | 20:42:26 |
K900 | /dev/sdc 216G 125G 81G 61% / | 20:45:20 |
K900 | Eyy | 20:45:21 |
K900 | Worked | 20:45:23 |
| 14 Feb 2023 |
| JoelMcCracken joined the room. | 19:48:52 |
JoelMcCracken | hey yay! there is a community for this | 19:48:59 |