You are not logged in.

#1 2021-05-07 17:56:58

WeeDram
Member
From: Vancouver, B.C., Canada
Registered: 2016-04-14
Posts: 91

What to do: Partition / too full Unable to upgrade.

I got the following message when trying to upgrade (something I do every week):
    error: Partition / too full: 190109 blocks needed, 182904 blocks free
    error: failed to commit transaction (not enough free disk space)
I have two installations on the computer with the partitions (as indicated by gparted) below.
The installation which is not upgrading is at /dev/sda1.
The installation at /dev/sda2 upgraded fine.
Partition    File              Mount       Size            Used           Unused  Flags
                  System         point
/dev/sda1  extended                      156.80 GiB 
  /dev/sda5  ext4            /boot        300.00 MiB  80.34 MiB  219.66 MiB   boot
  /dev/sda6  ext4            /                 12.25 GiB   10.92 GiB       1.33 GiB
  /dev/sda7  ext4            /home      140.25 GiB     7.71 GiB    135.55 GiB
  /dev/sda8  linux-swap                      4.00 Gib     0.00 B            4.00 GiB
/dev/sda2    ext4                            141.29 Gib    11.72 GiB  1  29.59 GiB

I regularly do the following cleanup after an upgrade.
   sudo journalctl --vacuum-time=30d
   sudo paccache -rk2

Can anybody suggest what I can do next to remedy this problem?
Ross

Offline

#2 2021-05-07 18:01:26

mpan
Member
Registered: 2012-08-01
Posts: 1,200
Website

Re: What to do: Partition / too full Unable to upgrade.

Make a larger partition. Why have you limited the root partition to 13GB? In particular on a 320GB HDD?

You may also remove not installed package files using paccache -ruk0. But with such a tiny partition this is like mending a dam, where water is simply flowing over it. big_smile

Last edited by mpan (2021-05-07 18:05:45)


Sometimes I seem a bit harsh — don’t get offended too easily!

Online

#3 2021-05-07 18:55:44

WeeDram
Member
From: Vancouver, B.C., Canada
Registered: 2016-04-14
Posts: 91

Re: What to do: Partition / too full Unable to upgrade.

I like the simile! As to why the root partition is the size it is goes back 6 or 7 years when I set up the partitions. I am guessing that at that time, I figured the sizes I chose would be fine. And they were, up until today. How would you suggest I make a larger partition. I haven't partitioned a drive for ages and I seem to remember doing so was fraught with difficulties.

Edit: Oops, sorry. It looks as though I should use Gparted. I am busy re-reading this but if you or anyone else has suggestions or warnings, please let me know.

Last edited by WeeDram (2021-05-07 19:08:46)

Offline

#4 2021-05-08 05:50:25

Fixxer
Member
From: Poland
Registered: 2011-08-29
Posts: 217

Re: What to do: Partition / too full Unable to upgrade.

Consider to add permamently use pacman hooks to reduce pacman cache. Theese are mine, slightly modified hoooks:
pacman-install.hook

[Trigger]
Operation = Upgrade
Type = Package
Target = *

[Action]
Description = Cleaning upgraded packages...
When = PostTransaction
Depends = pacman-contrib
Exec = /usr/bin/paccache -qrk2

pacman-remove.hook

[Trigger]
Operation = Remove
Type = Package
Target = *

[Action]
Description = Cleaning removed packages...
When = PostTransaction
Depends = pacman-contrib
Exec = /usr/bin/paccache -qruk0

Consider to tune journald settings:
https://wiki.archlinux.org/title/System … size_limit .
If you are the only non root system user, it would be justified turn off journald split, for example + other options;

cat /etc/systemd/journald.conf.d/custom.conf
[Journal]
Storage=persistent
SplitMode=none
MaxLevelStore=info
SystemMaxUse=256M

Remeber you can limit journal on several ways, time, size, etc. See to wiki.

Offline

#5 2021-05-08 08:52:06

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,565

Re: What to do: Partition / too full Unable to upgrade.

How would you suggest I make a larger partition.

I suggest just making a backup copy of the partition, repartition to make bigger partition and copy the backup back to the bigger partition.
There are many ways to do this. I have done this with rsync successfully many times.
And ALWAYS have a backup of your most important files if you're doing these kinds of operation.

Offline

Board footer

Powered by FluxBB