惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Microsoft Azure Blog
Microsoft Azure Blog
有赞技术团队
有赞技术团队
IT之家
IT之家
博客园 - 聂微东
Jina AI
Jina AI
Hugging Face - Blog
Hugging Face - Blog
Last Week in AI
Last Week in AI
Apple Machine Learning Research
Apple Machine Learning Research
WordPress大学
WordPress大学
小众软件
小众软件
爱范儿
爱范儿
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
V
Visual Studio Blog
雷峰网
雷峰网
酷 壳 – CoolShell
酷 壳 – CoolShell
阮一峰的网络日志
阮一峰的网络日志
宝玉的分享
宝玉的分享
博客园 - 三生石上(FineUI控件)
大猫的无限游戏
大猫的无限游戏
博客园 - Franky
量子位
月光博客
月光博客
博客园 - 【当耐特】
博客园 - 叶小钗

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
WSL Ubuntu Storage Issue & Migration: C Drive to F Drive
Anik Deb Nath · 2026-06-22 · via DEV Community
Cover image for WSL Ubuntu Storage Issue & Migration: C Drive to F Drive

Anik Deb Nath

WSL (Windows Subsystem for Linux) ব্যবহার করা ডেভেলপারদের জন্য খুবই জনপ্রিয়

কারণ এতে Windows-এর ভিতরেই Linux environment পাওয়া যায়। কিন্তু অনেক সময় একটা সমস্যা ধীরে ধীরে বড় হয়ে ওঠে — C drive-এর storage কমে যাওয়া

আমি এখানে আমার নিজের WSL Ubuntu-কে C drive থেকে F drive-এ migrate করার পুরো অভিজ্ঞতা এবং সমাধানটা সাজিয়ে লিখছি, যাতে অন্যরাও সহজে করতে পারে।


সমস্যা কী ছিল?

WSL Ubuntu ব্যবহার করার সময় আমি লক্ষ্য করলাম C drive ধীরে ধীরে কমে যাচ্ছে

আমার Linux home directory-তে ছিল:

  • Projects: ~3.3 GB
  • npm cache: ~940 MB
  • cache: ~720 MB
  • vscode-server: ~1.1 GB

👉 শুধু home directory-তেই প্রায় 6 GB+

এর বাইরে থাকে:

  • system packages
  • node_modules
  • future project builds
  • Docker (থাকলে আরও বেশি)

সব মিলিয়ে WSL খুব সহজেই 10–50 GB+ হয়ে যায়।

👉 সমস্যা: সবকিছু C drive-এ জমা হচ্ছিল।


আসল কারণ

WSL2 পুরো Linux filesystem একটি virtual disk file-এ রাখে:

ext4.vhdx

এই ফাইল সাধারণত থাকে:
C:\Users\AppData\Local\Packages

অর্থাৎ Linux-এ কাজ করলেও data আসলে C drive-এ জমে


কেন এটা সমস্যা?

কারণ ব্যাখ্যার
C drive সাধারণত system SSD হয় limited space
Windows update, apps, cache সব মিলিয়ে space কমে যায়
WSL data grow করলে system slow বা low storage issue হতে পারে

সমাধান: WSL কে অন্য drive-এ migrate করা

আমি সিদ্ধান্ত নি了一样 Ubuntu-কে F drive-এ সরাবো


Step 1: Available Drive চেক করা

PowerShell দিয়ে দেখলাম:

  • C: 32 GB free
  • F: 128 GB free

👉 সিদ্ধান্ত: F drive best option


Step 2: F drive-এ folder তৈরি

mkdir F:\WSL


Step 3: Ubuntu export করা

wsl --shutdown
wsl --export Ubuntu-24.04 F:\WSL\ubuntu-24.04-backup.tar

এটি পুরো Linux system-এর backup তৈরি করে (~8.9 GB)


Step 4: Old Ubuntu remove করা

wsl --unregister Ubuntu-24.04

👉 এতে C drive থেকে Ubuntu completely remove হয়


Step 5: F drive-এ import করা

wsl --import Ubuntu-24.04 F:\WSL\Ubuntu-24.04 F:\WSL\ubuntu-24.04-backup.tar --version 2


Step 6: Default distro set করা

wsl --set-default Ubuntu-24.04


Result: কী পরিবর্তন হলো?

আগে এখন
Ubuntu filesystem → C drive Ubuntu filesystem → F drive
WSL growth → C drive fill হচ্ছিল সব future growth → F drive

বাস্তব লাভ

  • C drive অনেক free হলো
  • ভবিষ্যতের project growth F drive-এ যাবে
  • system stability improve হলো
  • large projects নিয়ে চিন্তা কমে গেল

কী পরিবর্তন হয়নি?

  • Node.js faster হয়নি
  • VS Code faster হয়নি
  • Linux performance change হয়নি

কারণ WSL speed depend করে filesystem + disk speed-এর ওপর, drive letter-এর ওপর না।


Final Insight

WSL ব্যবহার করার সময় সবচেয়ে বড় mistake হলো:

"সবকিছু C drive-এ রেখে দেওয়া"

সঠিক approach হলো:

  • OS → C drive
  • Development environment (WSL/Docker/Projects) → separate drive (D/F/E)

Conclusion

WSL migration কোনো risky কাজ না, বরং large-scale development setup-এর জন্য এটা একটা best practice

আমার ক্ষেত্রে শুধু 8–10 GB না, ভবিষ্যতের অনেক GB growth এখন C drive থেকে সরানো গেল।

Result: cleaner system + safer development environment