Page 1 of 1

(SOLVED) Root directory is full

Posted: Sat Sep 07, 2019 12:34 pm
by Hakase Hamdani
Like the title said, my root directory is full. How i expand the partition so i can add more space. I prefer no rebooting option, but if there's no "no reboot" option, then i'm fine.

df -h, in case you need it for helping me.

Code: Select all

Filesystem      Size  Used Avail Use% Mounted on
udev            1,9G     0  1,9G   0% /dev
tmpfs           389M  1,5M  388M   1% /run
/dev/sda7        12G   11G  134M  99% /
tmpfs           1,9G   36M  1,9G   2% /dev/shm
tmpfs           5,0M  4,0K  5,0M   1% /run/lock
tmpfs           1,9G     0  1,9G   0% /sys/fs/cgroup
/dev/sda12       29G  2,1G   25G   8% /home
/dev/sda2        96M   35M   62M  36% /boot/efi
tmpfs           389M   60K  389M   1% /run/user/1000
/dev/sda9        49G   33G   17G  68% /media/hakase/Film dan Anime
/dev/sda6        89G   64G   26G  72% /media/hakase/Aplikasi dan Game Besar
/dev/sda8        26G  6,1G   20G  24% /media/hakase/Data Kerja Pribadi
/dev/sda10       50G   19G   32G  37% /media/hakase/Tugas & Pelajaran
And anyways, i just a newbie in linux (just install Linux Mint a few days ago).

Re: Root directory is full

Posted: Sat Sep 07, 2019 1:25 pm
by gm10
Yes, 12 GB for root including swap was rather ambitious. ;) You could move swap to /home to gain you 2 GB and maybe uninstall a few unneeded applications but I'd also just increase the partition size if I was you.

To expand a partition, you need to have unallocated on the drive next to the partition. If it's to the right side of it you can expand into it without rebooting. People usually find it easiest to boot to a live environment (just boot the installation medium), fire up GParted and then freely resize their partitions from there. If you need any help with that best post a screenshot of the GParted window showing your drive.

Re: Root directory is full

Posted: Sat Sep 07, 2019 3:25 pm
by Spearmint2
You need a second drive. You could then use GParted to clone your root and home partitions into larger partition areas, and then run Grub Repair on it to make bootable.

Re: Root directory is full

Posted: Sat Sep 07, 2019 8:21 pm
by Hakase Hamdani
There for you, the screenshot.
FYI, I take this after successful login via LM recovery mode. But that's the only thing I do. I get a login loop and a think that is because my root is full. So, better get this things done first.
QK_1567901873550.png

Re: Root directory is full

Posted: Sat Sep 07, 2019 8:52 pm
by gm10
Ah, so you do have a swap partition, Wasn't listed in your OP. Simple thing you can do first is to unmount that (swapoff) and then extend sda7 into that space. Then you can consider shrinking sda12 and/or sda8 to gain additional space for root. The latter is really best done from a live environment because you will have to unmount sda12 for that and you cannot do that while in the graphical environment.

Re: Root directory is full

Posted: Sat Sep 07, 2019 9:39 pm
by Hakase Hamdani
Live environment? Using Linux Mint Live CD, or Gparted Live CD? Sorry, I'm real beginner in this kind of thing.

Re: Root directory is full

Posted: Sat Sep 07, 2019 11:25 pm
by Hakase Hamdani
Okay, it's done. I just boot using my Linux Mint Live DVD and add/shrink partition using Gparted, as you say. Now I have about 13,8 GB of free space. Is it enough? Which one that need to be bigger, home or root?

Anyway, thank you for your time helping a newbie like me.

Re: (SOLVED) Root directory is full

Posted: Sun Sep 08, 2019 3:44 am
by gm10
It depends on what/how many applications you install. For example, flatpak applications are huge due to the several GB runtime they install. I suppose that's how you started running out of space in the first place. Run this just to see if you can recover any space:

Code: Select all

flatpak uninstall --unused
Personally I have a 15 GB root partition and that's always been fine for me, but I don't use flatpaks. If you need more room in the root partition you could just shrink your /home partition sda12 and move it to the right, then extend the root partition sda7 into the space you thus freed. It's up to you at this point. Personally I'd have gone with just a single partition for Linux by the way, makes things simpler.

Note that you do not have any swap configured (you had that partition that you removed but you were not using it, anyway) - depending on how much RAM you've got in that system you may want to add a swap file. The system risks freezing up if it runs out of memory. If you've got enough RAM and don't risk filling it up it's fine though, in particular given the limited space you've made available for Linux.

Re: (SOLVED) Root directory is full

Posted: Sun Sep 08, 2019 9:25 am
by Spearmint2
Where do "flatpaks" get installed or written to? I was under impression they were each user specific, which leads me to believe they'd be installed into the /home area instead of the system area.

Re: (SOLVED) Root directory is full

Posted: Sun Sep 08, 2019 9:31 am
by gm10
I'm not a flatpak user but AFAIK the runtimes get installed system-wide.

Re: (SOLVED) Root directory is full

Posted: Sun Sep 08, 2019 9:38 am
by rene
Yes, certainly when installing through Software Manager. Both apps and runtimes are under /var/lib/flatpak.

Re: (SOLVED) Root directory is full

Posted: Sun Sep 08, 2019 9:52 am
by Spearmint2
Thanks. I'd not researched that yet.

Re: (SOLVED) Root directory is full

Posted: Wed Sep 11, 2019 5:40 pm
by Janni
I have a 50GB root partition (from before Flatpak days) which have been plenty.
Now it is almost full. Overnight 5GB was taken by Flatpak due to the release of Gnome 3.34. :o

Re: (SOLVED) Root directory is full

Posted: Wed Sep 11, 2019 5:45 pm
by Pjotr
Janni wrote:
Wed Sep 11, 2019 5:40 pm
I have a 50GB root partition (from before Flatpak days) which have been plenty.
Now it is almost full. Overnight 5GB was taken by Flatpak due to the release of Gnome 3.34. :o
Yes, Flatpaks (and Snaps) are a mixed blessing.... Personally, I simply remove the entire Flatpak infrastructure from my system. I have no need for Flatpaks (or Snaps).

Re: (SOLVED) Root directory is full

Posted: Wed Sep 11, 2019 6:01 pm
by Janni
Pjotr wrote:
Wed Sep 11, 2019 5:45 pm
Janni wrote:
Wed Sep 11, 2019 5:40 pm
I have a 50GB root partition (from before Flatpak days) which have been plenty.
Now it is almost full. Overnight 5GB was taken by Flatpak due to the release of Gnome 3.34. :o
Yes, Flatpaks (and Snaps) are a mixed blessing.... Personally, I simply remove the entire Flatpak infrastructure from my system. I have no need for Flatpaks (or Snaps).
True Pjotr. Starting to regret it.

My immediate action done for now is to turn off Flatpak updates on system startup. Then if I'm brave and tempted to do Flatpak updates in the future, I will do a Timeshift snapshot before running update manually with:

Code: Select all

sudo mintinstall-update-flatpak
If partition is swallowed by the Flatpak monster, I can just do a Timeshift restore.