You are not logged in.
Pages: 1
Hello guys
I am new at using arch, recently i tried to install some software but ran into a problem. It says that my root partition is full.
Doing df -h Shows me the following :
Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur
dev 7,4G 0 7,4G 0% /dev
run 7,5G 1,6M 7,5G 1% /run
efivarfs 148K 57K 87K 40% /sys/firmware/efi/efivars
/dev/nvme0n1p2 49G 39G 8,2G 83% /
tmpfs 7,5G 55M 7,4G 1% /dev/shm
tmpfs 1,0M 0 1,0M 0% /run/credentials/systemd-journald.service
tmpfs 1,0M 0 1,0M 0% /run/credentials/systemd-resolved.service
tmpfs 1,0M 0 1,0M 0% /run/credentials/systemd-networkd.service
tmpfs 7,5G 189M 7,3G 3% /tmp
/dev/nvme0n1p1 1022M 180M 843M 18% /boot
/dev/nvme0n1p3 866G 26G 796G 4% /home
tmpfs 1,5G 48K 1,5G 1% /run/user/1000
I seems that when i install something it goes directly into the root, and not the large /dev/nvme0n1p3
My root has 49gb of storage and is almost full, but my /home isn't.
It must be full because I am using sudo for installing many different things.
Where did I mess up, and is it fixable by any other way than starting from scratch.
Offline
Ah, the usual archinstall error. Everyone that uses it makes that mistake once (but only once!).
Why I run Arch? To "BTW I run Arch" the guy one grade younger.
And to let my siblings and cousins laugh at Arsch Linux...
Offline
I guess this mean I have to reinstall arch
Offline
I guess this mean I have to reinstall arch
No. Where do you get this info ?
Did you actually read the link provided by jl2 ?
Offline
for future reference:
For non-English locale users: Prepend LC_ALL=C.UTF-8 to posted commands so that the output will be in English.
Offline
I read the link, i have freed about 7gb of storage from root. And i did learn some useful information about Symlink and Pacman cache. But it doesn't answer my root problem. As i continue using my machine i will reach the 49gb of root storage anyway (even if i try to minimizing the use of sudo and yay).
That is why i though if i wanted do to it correctly i need to reinstall arch.
Thank you mackin_cheese i will be more careful in the future
Offline
How does it looks now after pacman cache clear ?
LC_ALL=C.UTF-8 df -h
If you do this cleanup periodically, put your stuff into /home, and don't use big containers under / it could work several years. Arch is normally not polluting/eating up your space like MS windows.
You could install "ncdu" package, then run
LC_ALL=C.UTF-8 sudo ncdu /
to inspect, which folder is eating the most space. navigate with keys up/down and enter.
Also have a look at https://wiki.archlinux.org/title/System_maintenance --> Clean the filesystem
P.S. Which file-system do you use on / ?
Last edited by ua4000 (2025-04-15 16:51:56)
Offline
Here is the new df -h
Filesystem Size Used Avail Use% Mounted on
dev 7.4G 0 7.4G 0% /dev
run 7.5G 1.6M 7.5G 1% /run
efivarfs 148K 57K 87K 40% /sys/firmware/efi/efivars
/dev/nvme0n1p2 49G 34G 13G 73% /
tmpfs 7.5G 36M 7.4G 1% /dev/shm
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-netw
tmpfs 7.5G 293M 7.2G 4% /tmp
/dev/nvme0n1p1 1022M 181M 842M 18% /boot
/dev/nvme0n1p3 866G 23G 800G 3% /home
tmpfs 1.5G 48K 1.5G 1% /run/user/1000
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-reso
tmpfs 1.0M 0 1.0M 0% /run/credentials/systemd-journ
running NCDU :
22.5 GiB [###################] /home
12.9 GiB [########## ] /usr
12.8 GiB [########## ] /var
5.8 GiB [#### ] /opt
1.9 GiB [# ] /root
180.3 MiB [ ] /boot
93.1 MiB [ ] /tmp
26.0 MiB [ ] /dev
10.2 MiB [ ] /etc
. 1.6 MiB [ ] /run
e 16.0 KiB [ ] /lost+found
12.0 KiB [ ] /srv
8.0 KiB [ ] /mnt
0.0 B [ ] /proc
0.0 B [ ] /sys
@ 0.0 B [ ] sbin
@ 0.0 B [ ] lib64
@ 0.0 B [ ] lib
@ 0.0 B [ ] bin
Inside the home .cache is taking 10.5 Gib
P.S: i am using : ext4 filesystem. (should've used nfts ( I heard it can resize a partition))
Last edited by AlexIsMe (2025-04-15 17:20:29)
Offline
/root with 1.9 GiB is suspicious - what stuff do you have there ? mine is 2.2 MiB.
5.8 GiB in /opt is much too - mine is empty.
Best way to start cleaning is also de-installing unused programs with pacman - also in the my link above, including recursive dependencies.
Do you use many software from AUR ?
Following all the tips from the link + periodically re-checking will most probably give you no issue on / with your current setup for some time.
Offline
5.8 GiB in /opt is much too - mine is empty.
No that's normal, I have all the ROCm stuff there, that keeps it at ~25GB. I also have some other apps there. Totally OK.
P.S: i am using : ext4 filesystem. (should've used nfts ( I heard it can resize a partition))
WTF OFC you can also resize ext4: https://unix.stackexchange.com/question … mmand-line
IDK, but it probably is easier if you boot up a live USB with a GUI (ubuntu, garuda, whatever) and use gparted or a other partition editor to move it around. Way easier and the way I do it.
BACK UP YOUR IMPORTANT FILES!!!
What you can also do is move the contents of /home onto the / disk, then delete the /home partition (and delete the entry from /etc/fstab). Separating it is useless (if not worse) for non-distrohoppers.
Why I run Arch? To "BTW I run Arch" the guy one grade younger.
And to let my siblings and cousins laugh at Arsch Linux...
Offline
ALso
LC_ALL=C pacman -Qi | awk '/^Name/ {name=$3} /^Installed Size/ {print $4 $5 " " name}' | sort -hr | head -n32
Offline
In my root i have wine that takes up 1.7gb,
Thank you for all your answers I will try to use a live usb to reformate my partiton, hopefully not loosing too much data.
I will just get read of the home partition, i am the only user.
Do you have any advice for the future, some preventable/common mistakes ?
LC_ALL=C pacman -Qi | awk '/^Name/ {name=$3} /^Installed Size/ {print $4 $5 " " name}' | sort -hr | head -n32
2046.69KiB smartmontools
2037.61KiB raptor
2032.01KiB curl
1996.19KiB libsoup3
1985.73KiB tzdata
1976.51KiB libcap
1933.92KiB polkit
1932.49KiB python-trimesh
1920.31KiB avahi
1909.12KiB adobe-source-code-pro-fonts
1886.54KiB libgcrypt
1862.00KiB libyuv
1852.25KiB libzmf
1845.99KiB lib32-pcre2
1838.86KiB intel-gmmlib
1834.07KiB i3-wm
1830.10KiB libpipewire
1821.82KiB libtiff
1810.96KiB dav1d
1810.20KiB libodfgen
1807.53KiB python-jinja
1792.15KiB xdg-desktop-portal
1747.66KiB findutils
1738.97MiB intellij-idea-community-edition
1733.91KiB python-pycparser
1721.12KiB redland
1719.62KiB libtheora
1718.99KiB alsa-lib
1716.84KiB archlinux-keyring
1713.22KiB libheif
1708.60KiB make
1708.58KiB lpsolve
Offline
Something is not right with your last output, it contains only the small packages, the big ones, e.g. kernel with ~100 MiB is missing, as well as browser or linux-firmware ...
Offline
Something is not right with your last output, it contains only the small packages, the big ones, e.g. kernel with ~100 MiB is missing, as well as browser or linux-firmware ...
K sorts before M
Offline
no, not with the option from seth:
from manpage sort
-h, --human-numeric-sort - compare human readable numbers (e.g., 2K 1G)
Offline
type -a sort
pacman -Qo sort
LC_ALL=C pacman -Qi | awk '/^Name/ {name=$3} /^Installed Size/ {print $4 $5 " " name}' > /tmp/bfl
cat /tmp/bfl | curl -F 'file=@-' 0x0.st
Back on topic:
In my root i have wine that takes up 1.7gb,
DO NOT RUN SHIT AS ROOT. Espe… sorry, forgot to yell: ESPECIALLY NOT WINE!
Your /root can contain some shell configs/history files but is ideally mostly empty.
Offline
Hello guys
I am new at using arch, recently i tried to install some software but ran into a problem. It says that my root partition is full.
Doing df -h Shows me the following :
Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur dev 7,4G 0 7,4G 0% /dev run 7,5G 1,6M 7,5G 1% /run efivarfs 148K 57K 87K 40% /sys/firmware/efi/efivars /dev/nvme0n1p2 49G 39G 8,2G 83% / tmpfs 7,5G 55M 7,4G 1% /dev/shm tmpfs 1,0M 0 1,0M 0% /run/credentials/systemd-journald.service tmpfs 1,0M 0 1,0M 0% /run/credentials/systemd-resolved.service tmpfs 1,0M 0 1,0M 0% /run/credentials/systemd-networkd.service tmpfs 7,5G 189M 7,3G 3% /tmp /dev/nvme0n1p1 1022M 180M 843M 18% /boot /dev/nvme0n1p3 866G 26G 796G 4% /home tmpfs 1,5G 48K 1,5G 1% /run/user/1000
I seems that when i install something it goes directly into the root, and not the large /dev/nvme0n1p3
My root has 49gb of storage and is almost full, but my /home isn't.It must be full because I am using sudo for installing many different things.
Where did I mess up, and is it fixable by any other way than starting from scratch.
Likely you used sudo to install everything including things you shouldn't be using sudo for (pip,cargo,npm..) and packages installed using those package managers are usually gigantic compared to pacman, so you are basically filling your root with things that should be in /home so at this point I would reconmmend just reinstalling your system because it's broken beyond repair.
Offline
I will remove wine from the root.
Yes, i didn't realize that using sudo for everything would pose this problem. I will be way more careful from now on.
PS: i am a bit confused about ua4000 answer about missing kernel and firmware
Offline
The command in #11 would have posted the 32 biggest packages on your system to maybe spot where you're squandering space.
For some reason sorting failed (ignored the units) and you just posted 32 packges with big numbers.
The commands in #16 would analyze that and also just upload the entire package list (along sizes)
Offline
For some reason sorting failed (ignored the units) and you just posted 32 packges with big numbers.
I'm wondering why it failed, maybe because of using pipe and LC_ALL not considered in the following sub-processes ?
Maybe this works, in 2 lines/commands ?
export LC_ALL=C
pacman -Qi | awk '/^Name/ {name=$3} /^Installed Size/ {print $4 $5 " " name}' | sort -hr | head -n32
Offline
sort probably checks LC_COLLATE, yes - didn't consider that those units might be somehow localized…
Offline
Hi. You could just resize the root partition, using Gparted or fdisk
Offline
Pages: 1