Score:0

Ubuntu root partition takes too much space

ng flag
osc

I'm using Linux(Ubuntu 20.04) for the first time and using it as dual boot with Windows 10. I researched before I started using it. Found that there are partitions and what they are. I partitioned the SSD between the two operating systems.

I found recommended memories before downloading ubuntu:

root (/): 10-15 GB, I created it as 20 GB,

swap: 2 x RAM, so created it 16 GB,

boot: 1-2 GB, I created it as 3 GB,

home: created it as 40 GB.

But i have a problem. Ubuntu didn't start today because root memory was full!! People said 10-15 GB enough and i created it as 20 GB. I extended it to 30 GB (with GParted and ubuntu on USB) to start ubuntu. How full is it ? What is wrong with my pc or ubuntu ? Why is it filling up so fast ? What can i do to fix it ?

I have already tried:

sudo apt-get clean, sudo apt autoremove, apt-get autoremove, BleachBit..

Thank you for reading, have a nice day!!

guiverc avatar
cn flag
You've not provided many specifics. Given [25GB is the recommended minimum for desktops](https://help.ubuntu.com/community/Installation/SystemRequirements) are you using a server system? or a minimal install not intended for adding apps? Boot? allocated space there makes no sense unless you're taking about ESP? Are you? Swap? Are you talking about swapfile? or swap partition as you didn't say & it matters with space issues (swapfiles mean more space needs to be allocated to /)
guiverc avatar
cn flag
Real life example. I've allocated 27GB for my /, which is above the 25GB recommended minimum. My system has 2.1GB currently available free on / which is plenty for my Ubuntu base to upgrade itself, however my `telegram-desktop` snap is stuck on a older version; as I don't have enough free disk space for it to update... ie. that one app alone I added means by 27GB wasn't enough. Consider what you'll install (`telegram` *has become a pain point for me but I failed to allow for it to grow as that app has and I know I'm not alone seeing another user comment about it only ~2 days ago*)
Score:3
ng flag

You overpartitioned and did not give enough room for your root partition. Whatever research you did was either outdated or bad.

The minimum recommended space for Ubuntu Desktop is 25GB and has been for several years. 20GB is insufficient. Of course, it would be wise to allocate more than the bare minimum.

You do not need a swap partition. Ubuntu has used a swapfile by default, also for several years. There is no need to create a separate partition for swap.

3GB is overkill for a boot partition. You also do not need to explicitly create a separate boot partition.

You do not need a separate /home partition. Ages ago, it was easier to create a separate /home so that you could use the same home partition on different Linux distributions and/or so you could wipe and reinstall the OS and reuse the same /home. Due to the proliferation of Linux software that stores configuration files in the home folders, this is no longer as easy as it used to be. It's not recommended to create a separate /home partition and the default installation does not do this.

The default installation does not install a separate /boot, /home, or /swap because the majority of Ubuntu users do not have any use for it. If you are new to Linux or Ubuntu and you do not have a specific use case for these separate partitions, there's no need to diverge from the default installation options.

Partitions place rigid, inflexible limitations on how your space is used. Creating lots of unnecessary partitions "traps" space on your drive into sectors that are relatively inaccessible to other partitions.

Unfortunately, running out of space on your root file system is often fatal and requires a reinstall when that happens. This is because your system and software effectively "suffocate" and are unable to perform system critical writes when needed, due to lack of space.

If I were you, I would use the "Disks" application in a live session (Try Ubuntu) to delete all of your Ubuntu partitions. This will effectively delete all data on those partitions. Then, with unpartitioned free space, begin the installation and choose the guided "Install alongside Windows" option. You will have plenty of space because you will have nearly 80GB of space for Ubuntu that can be used flexibly instead of locked in a rigid inflexible partition scheme.

osc avatar
ng flag
osc
Thank you for answer.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.