dev-resources.site
for different kinds of informations.
Install Debian in Different Location -WSL Windows
Published at
5/14/2024
Categories
windows
linux
debian
wsl
Author
krschap
Author
7 person written this
krschap
open
I was trying to install Debian in different location rather than the C drive . Sharing the steps I took .
OS : Windows 11
WSL Version : Wsl 2
1) First install Debian as by default in C
wsl --install -d Debian
2) Shut down wsl
wsl --shutdown
3) Export Debian to your desired location
In my case its E :
wsl --export Debian E:\wsl_export\debian-ex.tar
4) Now unregister your old Debian from wsl
wsl --unregister Debian
5) Now import Debian to the Disk
wsl --import Debian "E:\wsl\Debian" "E:\wsl_export\debian-ex.tar"
6) Cleanup
You can remove your backup now and set Debian as default
wsl --set-default Debian
Extra tips
- To make your user in debian superuser : After migrating you might loose your default login using username you created before .
Login to Debian , By default you will be logged in as root and hit following
sudo usermod -aG sudo username
- Change default user
nano /etc/wsl.conf
Replace username with your username
[user]
default=username
Now wsl --shutdown
and login debian again you should be logged in as your default user with sudo access
wsl Article's
30 articles in total
Update WSL Ubuntu password
read article
Building OpenCV 4.10.0 with GUI Support in WSL
read article
Video: Install Ubuntu using WSL 2
read article
Install Zellij on WSL
read article
Work from anywhere with VSCode Remote Tunnels
read article
SSL verification error at depth 2 - Zscaler | WSL
read article
Accelerate 1-bit LLM Inference with BitNet on WSL2 (Ubuntu)
read article
Just start using WSL
read article
Change WSL/Docker files to another disk
read article
Setup your laravel 11 in windows
read article
Install Ubuntu on WSL 2
read article
How to Install WSL from PowerShell on Windows 10 and 11
read article
WSL in AWS Windows Server 2022 Core instance
read article
Docker Installation Log for WSL 2 on Windows
read article
Enable WSL shell in GitHub Desktop
read article
Installing Ruby using rbenv on your WSL Ubuntu system
read article
How to Install Redis on Windows Using WSL2
read article
PowerShell Development in Neovim
read article
WSL: Gerenciando o disco da distro
read article
Docker
read article
Share Postgresql from Windows to WSL Linux
read article
Add Manjaro into WSL 2
read article
Using WSL2 as primary driver for 3 months with Fedora
read article
Wsl installation error
read article
Install Debian in Different Location -WSL Windows
currently reading
Monitor GPU Usage in WSL debian
read article
Dicas e configurações para seu sistema linux
read article
Instalando de maneira rápida e eficiente suas ferramentas no WSL. Pt-3
read article
Arch install azure cli
read article
Melhorando e configurando seu novo Shell linux. Pt-2
read article
Featured ones: