!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

351 Members
https://github.com/nix-community/NixOS-WSL63 Servers

Load older messages


SenderMessageTime
13 Feb 2023
@k900:0upti.meK900 The only consistent way to do it that I know of is to basically wsl --export | wsl --import 18:38:13
@k900:0upti.meK900Which is what I'm doing right now, very, very slowly18:38:39
@nzbr:nzbr.deArson Copperflame You can fill the image with dd if=/dev/zero of=<file> and then run the optimize command 18:44:13
@k900:0upti.meK900 That also doesn't work, funnily enough 18:45:25
@k900:0upti.meK900Because WSL lies about the rootfs capacity18:45:33
@k900:0upti.meK900And will just fail writes if the underlying disk is out of space18:45:42
@nzbr:nzbr.deArson CopperflameWhy would they LIE ABOUT THAT??18:47:07
@k900:0upti.meK900¯\_(ツ)_/¯18:47:18
@k900:0upti.meK900Anyway found a script that automates the dance: https://github.com/okibcn/wslcompact18:47:26
@k900:0upti.meK900Running that now18:47:35
@k900:0upti.meK900How the fuck is it this slow19:06:23
@k900:0upti.meK900What is it even doing19:06:26
@k900:0upti.meK900Gonna write my own script that makes a new vhdx, mounts it natively as ext4, then rsyncs the whole system over19:06:44
@k900:0upti.meK900Sheesh20:10:32
@k900:0upti.meK900It's still going20:10:34
@k900:0upti.meK900Copied 75GB supposedly20:10:41
@k900:0upti.meK900Of ~150 reported by df20:10:51
@k900:0upti.meK900OK I'm pretty sure it's dead20:17:32
@k900:0upti.meK900Or dying20:17:32
@k900:0upti.meK900OK, doing the rsync thing is definitely way faster20:26:26
@k900:0upti.meK900Also if I make my own vhdx, I can set a size cap that's reasonable, yay20:27:11
@k900:0upti.meK900So yeah, the rsync thing is at 120GB copied in 15 minutes20:40:27
@k900:0upti.meK900Probably should have done that from the start20:40:33
@k900:0upti.meK900Aaaand it's done20:41:40
@k900:0upti.meK900Now I just need to swap the VHDX files20:42:26
@k900:0upti.meK900 /dev/sdc 216G 125G 81G 61% / 20:45:20
@k900:0upti.meK900Eyy20:45:21
@k900:0upti.meK900Worked20:45:23
14 Feb 2023
@JoelMcCracken:matrix.orgJoelMcCracken joined the room.19:48:52
@JoelMcCracken:matrix.orgJoelMcCrackenhey yay! there is a community for this19:48:59

Show newer messages


Back to Room ListRoom Version: 9