You are not logged in.

#1 2022-11-15 02:08:33

Jetson
Member
Registered: 2022-11-15
Posts: 7

[SOLVED]Root directory out of space

I opened my pc and this is what i found after running df -h

Filesystem                  Size  Used Avail Use% Mounted on
dev                         3.8G     0  3.8G   0% /dev
run                         3.8G  1.7M  3.8G   1% /run
/dev/nvme0n1p2               20G   19G     0 100% /
tmpfs                       3.8G     0  3.8G   0% /dev/shm
tmpfs                       3.8G   16K  3.8G   1% /tmp
/dev/nvme0n1p1              510M   80M  431M  16% /boot
/dev/mapper/ainstnvme0n1p3  449G  106G  321G  25% /home
tmpfs                       768M   72K  768M   1% /run/user/1000

how can i make all of the files go to the partition that has more space instead of the full partition?

I need help bc i am new here and a big linux newb
Moderator edit, added code tags so I could read the output

Last edited by Jetson (2022-11-20 04:21:20)

Offline

#2 2022-11-15 02:41:50

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

Re: [SOLVED]Root directory out of space

For starters, get a little headroom and clear your pacman cache (not something I generally recommend)

Then, mount a volume with some space at /var/cache.
Were it my system, I would probably find a way to arrange for a larger root partition.


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

#3 2022-11-15 02:43:15

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,480
Website

Re: [SOLVED]Root directory out of space

You can't make files go to different partitions.  You can resize partitions, and / or reoganize your partitioning scheme.  But either of those would be jumping before looking.  First, what's taking up all the space and is all of that supposed to be there as is described in several related previous threads.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2022-11-15 07:58:30

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [SOLVED]Root directory out of space

Try paccache, I find that very useful for limiting the size of the package cache.


Jin, Jîyan, Azadî

Offline

#5 2022-11-15 08:02:13

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,731
Website

Re: [SOLVED]Root directory out of space

All good suggestions.  It is mentioned in the thread Trilby linked, but ncdu is a good way to quickly scan your filesystem.  Just be careful with it particularly if invoking as root.

Offline

#6 2022-11-16 01:20:02

xPrzybyLx
Member
From: Poland
Registered: 2015-09-30
Posts: 20

Re: [SOLVED]Root directory out of space

If You have a swapfile on root partition You can just move it to some other partition. Just a thought.


Newbie

Offline

#7 2022-11-16 22:00:38

torors
Member
Registered: 2012-09-28
Posts: 107

Re: [SOLVED]Root directory out of space

As you have plenty of space in your /home, you can move the content of /var/cache/pacman/pkg to a folder in ~. Then you can bind mount this folder to /var/cache/pacman/pkg.

Offline

#8 2022-11-19 21:14:40

Jetson
Member
Registered: 2022-11-15
Posts: 7

Re: [SOLVED]Root directory out of space

ok i have read what you guys wrote but i was thinking of resizing the partition by taking some space by the big partition. how do i do that?

Offline

#9 2022-11-20 04:22:17

Jetson
Member
Registered: 2022-11-15
Posts: 7

Re: [SOLVED]Root directory out of space

just deleted the mingw compiler i had downloaded months ago and now everything works

Offline

Board footer

Powered by FluxBB