You are not logged in.

#1 2022-03-28 09:45:01

bKP451
Member
Registered: 2022-03-28
Posts: 6

My primary partition is full.

I had assigned primary partition of  18.1 GB on my system during installation. Now for the last few days it has been warning me that primary partition going to be full (147 MB free).
Do I have to really do a clean install ?
How much space should I allocate to primary partition in the next install? I am just a newbie programmer.

Offline

#2 2022-03-28 10:14:13

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,211

Re: My primary partition is full.

bKP451 wrote:

Do I have to really do a clean install ?

No, there are several methods to reduce needed space on / partition.

most linux filesystems reserve an amount of space that is only accesable by root.

login as root to console .

Use df -h to verify how much free space you have.

If very low (like the 148 MiB) run pacman -Sc
this will remove uninstalled packages from pacman cache and increase the amount of free space on the root partition .

In case that is not enough, run pacman -Scc (the second c instructs pacman to clear the entire pacman cache content)

Once you have got some breathing room , install ncdu .
use it to investigate which folders take up the most space.

Last edited by Lone_Wolf (2022-03-28 10:15:42)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2022-03-28 10:23:13

bKP451
Member
Registered: 2022-03-28
Posts: 6

Re: My primary partition is full.

@Lone_Wolf Thanks. pacman -Sc just gave me 4GiB . smile

Last edited by bKP451 (2022-03-28 10:24:11)

Offline

#4 2022-03-28 12:03:24

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,658
Website

Re: My primary partition is full.

Have a look at paccache.timer from pacman-contrib.


Inofficial first vice president of the Rust Evangelism Strike Force

Offline

#5 2022-03-28 13:40:21

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

Re: My primary partition is full.

Does that 18.1 GB partition include your /home directory?  If not, then ~18GB should be plenty, and if you are running out of space it may be indicative of something going wrong (not necessarily, but likely enough to warrant investigation).  In contrast, if the ~18G includes your /home directory, then it's not at all surprising that you'd be filling that up - you will need to run a tight ship in cleaning up your files and being selective about what you save.

Last edited by Trilby (2022-03-28 13:42:26)


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

Offline

#6 2022-03-30 00:11:41

cybi
Member
Registered: 2022-03-29
Posts: 9

Re: My primary partition is full.

bKP451 wrote:

Do I have to really do a clean install ?
How much space should I allocate to primary partition in the next install? I am just a newbie programmer.

you seem to be implying you have more space on your disk. i'm assuming you're dual booting with windows, if so you can shrink your windows partition using the disk manager within windows, then enlarge your root partition with any disk management tool on arch
just don't shrink your windows partition on arch, i learned that lesson the hard way

Offline

Board footer

Powered by FluxBB