(SOLVED) Root directory is full

Forum rules
Before you post please read this
Post Reply
Hakase Hamdani
Level 1
Level 1
Posts: 14
Joined: Fri Sep 06, 2019 10:06 pm

(SOLVED) Root directory is full

Post by Hakase Hamdani » Sat Sep 07, 2019 12:34 pm

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).
Last edited by Hakase Hamdani on Sat Sep 07, 2019 11:26 pm, edited 1 time in total.
Sorry for my engrish, since it's not my first nor second language.

gm10
Level 19
Level 19
Posts: 9215
Joined: Thu Jun 21, 2018 5:11 pm

Re: Root directory is full

Post by gm10 » Sat Sep 07, 2019 1:25 pm

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.
Tune up your LM 19.x: ppa:gm10/linuxmint-tools

User avatar
Spearmint2
Level 16
Level 16
Posts: 6760
Joined: Sat May 04, 2013 1:41 pm
Location: Maryland, USA

Re: Root directory is full

Post by Spearmint2 » Sat Sep 07, 2019 3:25 pm

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.
All things go better with Mint. Mint julep, mint jelly, mint gum, candy mints, pillow mints, peppermint, chocolate mints, spearmint,....

Hakase Hamdani
Level 1
Level 1
Posts: 14
Joined: Fri Sep 06, 2019 10:06 pm

Re: Root directory is full

Post by Hakase Hamdani » Sat Sep 07, 2019 8:21 pm

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
Sorry for my engrish, since it's not my first nor second language.

gm10
Level 19
Level 19
Posts: 9215
Joined: Thu Jun 21, 2018 5:11 pm

Re: Root directory is full

Post by gm10 » Sat Sep 07, 2019 8:52 pm

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.
Tune up your LM 19.x: ppa:gm10/linuxmint-tools

Hakase Hamdani
Level 1
Level 1
Posts: 14
Joined: Fri Sep 06, 2019 10:06 pm

Re: Root directory is full

Post by Hakase Hamdani » Sat Sep 07, 2019 9:39 pm

Live environment? Using Linux Mint Live CD, or Gparted Live CD? Sorry, I'm real beginner in this kind of thing.
Sorry for my engrish, since it's not my first nor second language.

Hakase Hamdani
Level 1
Level 1
Posts: 14
Joined: Fri Sep 06, 2019 10:06 pm

Re: Root directory is full

Post by Hakase Hamdani » Sat Sep 07, 2019 11:25 pm

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.
Sorry for my engrish, since it's not my first nor second language.

gm10
Level 19
Level 19
Posts: 9215
Joined: Thu Jun 21, 2018 5:11 pm

Re: (SOLVED) Root directory is full

Post by gm10 » Sun Sep 08, 2019 3:44 am

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.
Tune up your LM 19.x: ppa:gm10/linuxmint-tools

User avatar
Spearmint2
Level 16
Level 16
Posts: 6760
Joined: Sat May 04, 2013 1:41 pm
Location: Maryland, USA

Re: (SOLVED) Root directory is full

Post by Spearmint2 » Sun Sep 08, 2019 9:25 am

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.
All things go better with Mint. Mint julep, mint jelly, mint gum, candy mints, pillow mints, peppermint, chocolate mints, spearmint,....

gm10
Level 19
Level 19
Posts: 9215
Joined: Thu Jun 21, 2018 5:11 pm

Re: (SOLVED) Root directory is full

Post by gm10 » Sun Sep 08, 2019 9:31 am

I'm not a flatpak user but AFAIK the runtimes get installed system-wide.
Last edited by gm10 on Sun Sep 08, 2019 9:41 am, edited 1 time in total.
Tune up your LM 19.x: ppa:gm10/linuxmint-tools

rene
Level 12
Level 12
Posts: 4167
Joined: Sun Mar 27, 2016 6:58 pm

Re: (SOLVED) Root directory is full

Post by rene » Sun Sep 08, 2019 9:38 am

Yes, certainly when installing through Software Manager. Both apps and runtimes are under /var/lib/flatpak.

User avatar
Spearmint2
Level 16
Level 16
Posts: 6760
Joined: Sat May 04, 2013 1:41 pm
Location: Maryland, USA

Re: (SOLVED) Root directory is full

Post by Spearmint2 » Sun Sep 08, 2019 9:52 am

Thanks. I'd not researched that yet.
All things go better with Mint. Mint julep, mint jelly, mint gum, candy mints, pillow mints, peppermint, chocolate mints, spearmint,....

Janni
Level 1
Level 1
Posts: 18
Joined: Fri Sep 11, 2015 4:36 pm
Location: Norway

Re: (SOLVED) Root directory is full

Post by Janni » 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

User avatar
Pjotr
Level 21
Level 21
Posts: 13507
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: (SOLVED) Root directory is full

Post by Pjotr » 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).
Tip: 10 things to do after installing Linux Mint 19.2 Tina
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

Janni
Level 1
Level 1
Posts: 18
Joined: Fri Sep 11, 2015 4:36 pm
Location: Norway

Re: (SOLVED) Root directory is full

Post by Janni » Wed Sep 11, 2019 6:01 pm

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.

Post Reply

Return to “Mounting Partitions”