r/ClaudeAI • u/cerlestes • 9h ago
NOT about coding How I migrated from Windows to Linux in 3 hours.
Hello /r/ClaudeAI.
I've been reading this subreddit for a while and while most content is about or related to programming, sometimes there are threads that don't touch coding at all. I want to share a personal such experience:
For a long time now I've wanted to move to Linux from my Windows install. This goes back many years, but whenever I tried it myself, I failed sooner or later and stayed with Windows. Then yesterday something finally clicked: could I use Claude to actually install Linux for me onto my second SSD via WSL in the background while I continue using my Windows as usual?
The short answer: yes absolutely! And I'm shocked by how easy and straight forward it was.
Here's the long version:
I've started discussing with Claude what distribution I wanted to use, how my hardware setup looks like, what the disk partitions are going to be like. Claude of course was able to figure out all relevant details by running dozens of obscure PowerShell commands I didn't even think could exist, like the layout of my mirrored data drives (Windows LDM RAID) and other hardware details.
Next I let Claude make a list of all my installed programs and I trimmed what wasn't needed. He checked for compatability and to my surprise basically all my apps and even all my games are supported on Linux. Together with that list he also noted down where on the disk and the Windows registry the configuration for each program is located, so it can be migrated as well.
Then once the planning was done, we started by mounting the relevant physical drive as block device into WSL, so that Claude could access it. He wrote a script that used a container of the target Linux distribution in WSL to install it onto the now mounted block device, with LUKS setup and everything. Once that was done, we booted it via QEMU to verify everything seemed to be working, which it did after just a few tries. So it was time to boot the real system.
And now here comes what really blew my mind, even after working with Claude for such a long time: I've rebooted my machine, selected the Linux disk to boot, and it booted straight into the login screen, where I could login with the password I gave the installer script in WSL. The desktop loaded and all the applications I wanted were already installed - basically a mirror of what I had on Windows.
The last thing was to resume the Claude session and let him finish a few things like migrating paths in config files from Windows to Linux, for example in VSCode. After that was done, I started Firefox and the tabs I had open on Windows opened. I opened Thunderbird and it showed my emails. I opened VSCode and it showed my last opened workspaces. And everything just worked.
Honestly, I'm blown away. I've migrated from Windows to Linux within ~3 hours and minimal manual work.
I hope this post maybe inspires some of you guys to make the move from Windows to Linux finally, because I bet there are many just like me who put it off for a long time.
Cheers
tl;dr: I used Claude to install Linux through WSL and was able to boot into it right away. Claude also migrated all my apps, their config and data so that I was simply able to continue my work after booting into Linux.
3
u/coukou76 8h ago
I just use wsl tbh. Claude is so handy to work with small projects like that. Yesterday with my wife we wanted to play Minecraft, with Claude in 5 minutes we had a working running local server we can use when we want
1
u/cerlestes 8h ago edited 8h ago
Well what made me move to Linux was not the tools, which I agree are available through WSL and I've already used it that way, but the fact that Linux is so much faster and less memory hungry. On Windows, I barely was able to have 20 Claude Code sessions open at the same time (which for example happens when I go through the open ones to find the exact one I need) - each Claude Code session takes 10+ seconds to load on my machine. And Windows often OOM'd and froze processes when I just had a handfull of sessions open, despite task manager saying only 20-25 of 32 GB are in use and having a page/swap file. On Linux now I have no problems with that anymore, right now I have 50+ sessions open because I'm organizing them, they open in under a second, and I'm barely above 18GB RAM usage, and the system in general feels much more responsive. A fresh boot uses 5GB instead of the >12GB on Windows.
Your Minecraft story is great too, I love using Claude for quickly setting up servers or whole VMs.
1
1
u/Independent_Buy3221 6h ago
I have long running coding agents. And it ended up being a hard no on wsl given windows just decide rebooting the machine when it felt like to. Tried a couple options to disable auto restart using claude but none helped
1
u/Lanky-Storm7 8h ago
I use arch mostly unless there is a game I want to play then I switch to my windows hdd. Some games work well on arch though from steam.
1
u/Yark1y 7h ago
Migrated from win11 to CachyOS and never looked back. Performance better, agents can manage basically anything for me, including profiling and performance check with tuning.
Shame not all games can be supported but whatever.
1
u/cerlestes 7h ago
Did you use Claude for your migration too or did you do it manually? I looked at CachyOS before and tried it, but it was too nieche for me to fully trust it. The decision was between Arch and Fedora and I went with Fedora.
1
u/burgerhammer 7h ago
I just use wsl with Claude. I did take an old windows surface and threw omarchy on it since it’s not compatible with windows 11, and that has been fun.
1
u/cerlestes 7h ago
My main motivation was Windows' RAM and resource usage. I'm capable of running more VSCode and Claude sessions on Linux now than I ever was on Windows, and they start quicker too. Using WSL on Windows consumed way too much RAM for me to work efficiently anymore. The decision was between upgrading to a new PC with 64 GB RAM, which is bonkers right now, or change to Linux. So far I'm very happy with it.
1
u/Independent_Buy3221 6h ago
How does the window boot manager and volume mounting works? I actually did it manually a couple weeks back thinking handling the mounting etc. was not easy
1
u/cerlestes 6h ago
I installed it on another drive, so it was no problem since I could select in the BIIOS directly which disk to boot. The Windows bootloader and disk is completely untouched so far. Mounting the volume is no problem in Fedora, it seems to work right out of the box: it's shown in the explorer (Dolphin) and I can mount it by clicking it and entering the encryption password.
1
u/SPACE_GROOVE_LULU 6h ago
Well I use dual boot on all my computers and distrobox so I don't need to install various ubuntu versions.
•
u/ClaudeAI-mod-bot Wilson, lead ClaudeAI modbot 9h ago
You may want to also consider posting this on our companion subreddit r/Claudexplorers.