I'm new to the linux file system and need help. I have four partitions on my disk:
- /boot is 1GB (/dev/sdb1)
- /swap is 2GB (/dev/sdb2)
- / is 10GB (/dev/sdb3)
- /home is 227GB (/dev/sdb4)
My root folder is almost full and I keep getting a warning message. I have two questions regarding this file system:
- Is the root partition supposed to keep filling up past 10GB?
- Is the way my disk partitioned correct?
I've seen suggestions of using the command apt-get autoremove --purge
to clean up some space in the root folder. It removed 76MB and my root folder is still 90% full. I saw this post: What do I do when my root filesystem is full? but I didn't understand what the person who answered was trying to accomplish with the other commands. I ran them and had no idea what I was looking for or doing.
Note: I have windows installed on a separate hard drive. I don't know if that has anything to do with it, but I have the option of running ubuntu or windows when I start up my computer.
OS: Ubuntu 20.04
Update: Alright I'm not sure why I had a separate partition for my /home folder but that's what was recommended on some article's tutorial when I first installed ubuntu. That's also where I was recommended 10GB for the root ( / ) folder, which is nowhere near enough. I've since installed a fresh image of ubuntu and left the drive allocation on default. Now, everything is in the root ( / ) folder except for a Microsoft reserved partition and the EFI system partition (since I have windows installed on another disk and use dual boot). Thanks for the feedback
/
? – Rinzwind Mar 12 '21 at 17:25/root
, right? You meant/
instead, right? The commandlsblk -e 7
could clarify this. Please edit your question and include the command's output in the text body. – Levente Mar 12 '21 at 17:25/
, as in root filesystem and not the root user's home directory, then the answer is yes, 10GB for the root filesystem is definitely too small. The actually used space in my/
(root filesystem) is now 14GB. I see that the disk is small overall and you are trying to save space, but I still would say anything below 30GB (still considered extremely tight space) for the root filesystem is just postponing a similar overfill in the future. – Levente Mar 12 '21 at 17:54