Ubuntu 24.04 has a full filesystem root directory.
Ubuntu 24.04 has a full filesystem root directory.
Hello everyone, I just set up the latest Ubuntu 24.04 yesterday. I made a 50GB root drive, a 10GB swap space, and a 400GB home drive. After installing my apps, I encountered a warning that the root filesystem is full. Upon checking, the "sys" directory on the root partition shows 35GB used. Further inspection reveals files resource1_wc and resource1 under /sys/devices/pci0000:00/... both taking up 17.2GB. Is this typical? If not, what steps should I take to resolve this issue? My system is a Lenovo Thinkpad P1 Gen6 with a dedicated NVIDIA GPU, and Ubuntu is dual-booted with Windows 11.
The /sys directory acts as a virtual folder for the kernel and shouldn’t take up much space. Checking sudo du -hd0 /sys should confirm its size. It’s possible your overall disk usage comes from another location, as 50GB isn’t excessive for the root filesystem. I’d like to see what sudo du -hd0 /var shows too.
The tool displays only a portion of the storage consumption, while the remaining data resides elsewhere in the system. Updated July 19, 2024 by Unstoppable_RTR
The issue centers on /var, where software will be installed and data stored. Determining its size is tricky because it depends on your intended use and package sources. I’d likely target a minimum of 120G, as requirements have grown with container tools like flatpak and snap. The bigger concern, though, is whether a separate home partition is necessary. Beyond keeping personal files portable, other configuration data stored there isn’t always reliable. Running `sudo du -hd1 /var` will show its current size and origin. As for Disk Usage Analyzer (baobab), I’m not sure why it’s giving such a reading.