You are not logged in.

#1 2023-07-11 16:28:41

Anony324
Member
Registered: 2023-07-11
Posts: 17

How to increase the / parition space from /home parition space

I get this error when i am trying to download some packages from pacman

error: Partition / too full: 179301 blocks needed, 162286 blocks free
error: not enough free disk space
error: failed to commit transaction (not enough free disk space)
Errors occurred, no packages were upgraded.

df -h
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        4.0M     0  4.0M   0% /dev
tmpfs           3.8G   21M  3.7G   1% /dev/shm
tmpfs           1.5G  9.6M  1.5G   1% /run
/dev/nvme0n1p2   20G   18G  634M  97% /
/dev/nvme0n1p1  510M   80M  431M  16% /boot
/dev/nvme0n1p3  214G   85G  119G  42% /home
tmpfs           3.8G  1.5M  3.8G   1% /tmp
tmpfs           760M  116K  760M   1% /run/user/1000

Last edited by Anony324 (2023-07-11 16:29:25)

Offline

#2 2023-07-11 17:36:00

teckk
Member
Registered: 2013-02-21
Posts: 585

Re: How to increase the / parition space from /home parition space

Back up everything in /home nvme0n1p3. When you move the start of a partition you likely will have problems.

Shrink the file system where you want it, move the start of the partition to the file system. Of simply reformat that partition after you have resized it.

Expand the end of / partition nvme0n1p2  to the start of /home, expand the file system.

Or, don't have separate /boot, / and home partitions. Then you can use the drive until it is full.

Offline

#3 2023-07-11 17:45:18

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,648

Re: How to increase the / parition space from /home parition space

As a work around, try clearing you pacman cache of things you don't use anymore with pacman -Sc, then try your upgrade.
If that does not work, try pacman -Scc, but be advised that removes old versions in addition to unused packages so it will limit your ability to easily downgrade packages.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#4 2023-07-14 13:30:25

RandomRanger
Member
Registered: 2023-06-26
Posts: 42

Re: How to increase the / parition space from /home parition space

teckk wrote:

Or, don't have separate /boot, / and home partitions. Then you can use the drive until it is full.

I was under the impression that you had to have separate /boot and / partitions so that the boot partition could be properly identified. Am I mistaken? I.e. the

/boot

must be

EFI system partition

while the root must be

Linux x86-64 root (/)

Any sufficiently advanced magic is indistinguishable from science.

Offline

#5 2023-07-14 13:40:28

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,727

Re: How to increase the / parition space from /home parition space

You need an ESP, but it does not need to be at /boot.

Offline

Board footer

Powered by FluxBB