Chromebook Linux Container Out of Space? How to Expand
Short answer: When the Linux container on your Chromebook runs out of space, open Settings, go to About ChromeOS, then Developers, and use the Disk size control under Linux development environment to enlarge the container. You can also check usage from the Terminal with df -h and delete unused packages or large files. If you plan to grow into Linux work, choose a Chromebook with more internal storage.
Why the Linux container runs out of space
The Linux development environment, often called the Linux container, is a separate environment built into ChromeOS. Google's setup documentation says that when you turn on Linux, a terminal opens and you get a Debian environment, and you can install more tools using the APT package manager. If you are starting a coding setup, see set up a Linux programming environment.
That Linux environment stores its apps and files inside an allocated space on the Chromebook's internal storage. It shares the same physical drive that ChromeOS, Android apps, and your downloaded files use. When the Linux container reaches the size it was given, or when the drive itself is nearly full, you may see a warning that the container is out of space.
Linux packages, code libraries, build outputs, and project files accumulate quickly. This is especially true if you install editors, compilers, containers, or use package managers on a regular basis. The result can be a Chromebook that still looks roomy in ChromeOS but has a cramped Linux container.
Check Linux disk usage first
Before you resize, see how much space the container is actually using. Open the Terminal app from your app launcher. If Linux has not been set up, see enable Linux on your Chromebook first.
In Terminal, run df -h to display the mounted file systems and how much space is available in each one. The Linux container will be listed as one of those mounted file systems, so this command is the fastest way to learn the current allocation.
Use du commands when you want to identify the largest folders. You can also open the Files app and look at the Linux files location to browse projects and media that live inside the container.
Useful commands to start with:
df -h: overview of space on mounted file systems
du -sh ~: total size of your Linux home folder
du -h --max-depth=1 ~ 2>/dev/null | sort -h: largest folders inside your home folder, largest last
- df -h: overview of space on mounted file systems
- du -sh ~: total size of your Linux home folder
- du -h --max-depth=1 ~ 2>/dev/null | sort -h: largest folders inside your home folder, largest last
Expand the Linux container
Start by making sure ChromeOS is current. To see the operating system version and check for updates, open Settings, choose About ChromeOS, and use the available update controls. Google's Chromebook update page says your Chromebook automatically checks for updates when it connects to the internet, and a restart finishes any downloaded update.
After updating, open Settings, choose About ChromeOS, then Developers. Next to Linux development environment, open its settings and look for the Disk size control. Increase the size with the slider or field, then close the settings window. If Linux apps or the Terminal are still running, restart them so the new size takes effect.
On a managed Chromebook, your administrator may have disabled Linux or locked these settings. Google's Linux setup page says to contact your administrator if you cannot use Linux on a work or school device.
Once the size is changed, run df -h again in Terminal to confirm that free space grew. If the container still shows little free space, you may also need to free up storage on your Chromebook at the system level.
Free up space without deleting your work
The safest cleanup starts with package data. In Terminal, run sudo apt-get update && sudo apt-get dist-upgrade to refresh package lists and upgrade what you have installed. Google's Linux setup page suggests this command when you need to fix problems with Linux.
Remove software you no longer use with sudo apt-get remove, and let APT clean up unused dependencies with sudo apt-get autoremove. Then run sudo apt-get clean to delete downloaded package files. These steps remove some of the easiest space to reclaim.
For project files, use du -h --max-depth=1 ~ to find the largest folders, then move or delete anything you no longer need. Empty the Trash in Linux, remove old build outputs, and delete downloaded archives you have already unpacked. For more general storage tips, see how to free up storage on a Chromebook.
Back up and move large files
Before deleting anything important, back up your Linux files. Google's Linux documentation says you can back up and restore Linux files and apps, and you can use ChromeOS Files to copy a project from Linux files to Google Drive, an external drive, or another machine. See how to back up Linux files for the full workflow.
Copy the project to a destination outside the Linux container first, such as Google Drive or an external drive. Then delete the copy inside Linux. A file copied to ChromeOS Downloads does not increase the amount of space available to the whole internal drive, but it can free room inside the container itself.
If you prefer a clean start, you can remove the Linux development environment from Settings and create a new one later, but that removes Linux apps and files. Read delete the Linux container on your Chromebook before doing that.
After moving or deleting files, run df -h once more to see the new free space total.
Choose enough storage next time
When you buy a Chromebook for Linux work, storage capacity matters as much as processor performance. The Linux container shares the internal drive with ChromeOS, so more internal storage means more room to expand the container later.
Google's Chromebook Plus page says Chromebook Plus models include at least 8GB of RAM and 128GB of storage. That is a solid baseline for running development tools, but large projects and container images can make you want a higher capacity tier.
ChromeOS devices receive automatic updates for 10 years under Google's Auto Update policy. Because the device will stay useful for a long time, choosing storage you can grow into is a worthwhile part of the decision.
For buying guidance, start with the best 128GB Chromebooks, then look at the high-capacity Chromebooks guide or the very large capacity guide if you expect to keep many projects. You can also consider Chromebook Plus models.
What to pick for your use
| If you | Pick | Buying guide |
|---|---|---|
| You only run occasional Linux scripts or small tools | Entry-level storage Chromebook | Best 64 GB Chromebooks in 2026: 15 Picks Compared on Specs |
| You use a few code editors and keep projects in Linux | 128GB Chromebook | Best 128GB Chromebooks 2026: 13 Picks |
| You build software, run containers, or keep multiple projects | Higher-capacity Chromebook | Best 256 GB Chromebooks in 2026: 11 Picks Compared on Specs |
| You need the most headroom for large Linux projects | Very high-capacity Chromebook | Best 512 GB or More Chromebooks in 2026: 4 Picks |
| You want a Chromebook Plus baseline of 8GB RAM and 128GB storage | Chromebook Plus model | Best Chromebook Plus 2026: 15 Picks Compared on Specs |
Questions
What does Chromebook Linux container out of space mean?
The Linux development environment stores its apps and files in a disk image on your Chromebook's internal storage. When that image reaches its allocated size, ChromeOS warns you that the container is out of space, even if the rest of ChromeOS still has free room.
How do I resize the Linux container on a Chromebook?
Open Settings, choose About ChromeOS, then Developers. In Linux development environment settings, find the Disk size control, increase the size, and close the window. Restart the Terminal or Linux apps so the new size takes effect.
How do I check how much space Linux is using?
Open Terminal and run df -h. You can also run du -sh ~ to see the total size of your Linux home folder and du -h --max-depth=1 ~ to see which folders are largest.
Can I move the Linux container to an SD card or external drive?
No. The Linux container remains on the Chromebook's internal storage. You can store project files on an external drive, but the environment itself still needs space on the internal drive.
Why can't I resize the Linux container?
The option may be hidden if ChromeOS is outdated, if your device does not support Linux, or if your work or school administrator manages the device and disabled Linux. Contact your administrator for managed devices.
Is more RAM better than more storage for Linux?
They serve different purposes. More RAM helps with demanding apps and many open tasks, while more internal storage gives the Linux container room to grow. If you keep hitting space warnings, storage is the part to address.
What changed
- : First published.