You are not logged in.

#26 2021-12-29 16:24:10

FlatEarthGary
Member
Registered: 2021-01-16
Posts: 36

Re: Increase storage on Arch with dualboot

Trilby wrote:

When you install new packages, they replace old ones.  That was the whole point: 30G should be more than enough for system files.  If your root partition is getting anywhere even remotely close to that (or even half that) I'd suspect something would be wrong and you should track down the problem rather than just giving the problem more space to fill.

How much space actually is used on the root partition?  What's the output of `df -h`?

I have done a little clean up so now it's not as filled as before.

The output is:

Filesystem      Size  Used Avail Use% Mounted on
dev             7.7G     0  7.7G   0% /dev
run             7.7G  1.2M  7.7G   1% /run
/dev/nvme0n1p6   30G   20G  8.1G  71% /
tmpfs           7.7G     0  7.7G   0% /dev/shm
tmpfs           7.7G  8.0K  7.7G   1% /tmp
/dev/nvme0n1p8  137G  7.8G  122G   7% /home
/dev/nvme0n1p4  511M   66M  446M  13% /boot
tmpfs           1.6G   12K  1.6G   1% /run/user/1001

And here's the list of installed pacakges:

abook 0.6.1-7
arandr 0.1.10-7
atool 0.39.0-7
base 2-2
bc 1.07.1-4
brave-bin 1:1.33.106-1
cmatrix 2.0-2
discord 0.0.16-1
dotnet-runtime 6.0.0.sdk100-2
dotnet-sdk 6.0.0.sdk100-2
exfat-utils 1.3.0-2
ffmpeg 2:4.4.1-1
firefox 95.0.2-1
fsarchiver 0.8.6-1
fzf 0.29.0-1
gnome-keyring 1:40.0-1
gparted 1.3.1-1
grsync 1.3.0-1
gtk-theme-arc-gruvbox-git r12.e5ea0ff-2
highlight 4.1-1
htop-vim-git 1:3.1.1.2.g604744f6-1
lf-git 25.r0.g1b71c33-1
libxft-bgra-git 2.3.4.r113.98b121f-1
linux 5.15.11.arch2-1
linux-firmware 20211027.1d00989-1
lynx 2.8.9-4
maim 5.7.4-2
mediainfo 21.09-1
mono 6.12.0.122-1
mono-basic 4.8-1
mopidy 3.2.0-2
mopidy-spotify 4.1.1-1
moreutils 0.67-1
mpc 0.34-1
mpd 0.23.5-1
mpv 1:0.34.0-4
mutt-wizard-git 3.2.1.r99.g85c5d01-1
mymonero 1.2.1-1
ncmpcpp 0.9.2-5
neofetch 7.1.0-2
neovim 0.6.0-1
newsboat 2.25-1
noto-fonts-emoji 20211101-1
ntp 4.2.8.p15-1
onionshare 2.4-3
pamixer 1.5-3
poppler 21.11.0-1
pulseaudio-alsa 1:1.2.6-1
pulsemixer 1.5.1-3
rider 1:2021.3.1-1
sc-im 0.8.2-1
scrcpy 1.21-2
simple-mtpfs 0.4.0-1
slock 1.4-5
socat 1.7.4.1-1
spotify 1:1.1.72.439-3
sxiv 26-1
task-spooler 1.0.1-4
thunar 4.16.10-1
tor-browser 11.0.3-1
ttf-linux-libertine 5.3.0-7
unclutter 1:1.6-1
unrar 1:6.1.3-1
unzip 6.0-16
xcape 1.2-4
xclip 0.13-3
xcompmgr 1.1.8-2
xdotool 3.20211022.1-1
xmrig 6.15.3-1
xwallpaper 0.7.3-1
yay-bin 11.0.1-1
youtube-dl 2021.12.17-1
zathura 0.4.8-1
zathura-pdf-mupdf 0.3.7-1
zsh-fast-syntax-highlighting 1.55-2

Offline

#27 2021-12-29 16:36:24

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

Re: Increase storage on Arch with dualboot

So what's taking up all the space on your root partition?  I'm guessing you copied rather than moved the contents of the home partition, but still that'd leave 13G which is quite a lot.

All of your installed packages along with the cached download package files would only take up 2.65G; even with 4 cached versions stored it'd only go up to about 4.5G.  Your logs / journal will take up some space, but if they are taking anywhere close to 15G then there is a problem that should be fixed.

Last edited by Trilby (2021-12-29 16:47:10)


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

Offline

#28 2021-12-29 16:51:29

FlatEarthGary
Member
Registered: 2021-01-16
Posts: 36

Re: Increase storage on Arch with dualboot

Trilby wrote:

So what's taking up all the space on your root partition?  I'm guessing you copied rather than moved the contents of the home partition, but still that'd leave 13G which is quite a lot.

That was the case. Before the size was almost full to the brim and I deleted the past /home directory and thereby freeing a lot of the storage. Going through the different directories I found that the /usr and /var are the biggest ones, 8,9GB and 9,9GB respectively. I have no idea if they are abnormally big.

Offline

#29 2021-12-29 17:01:25

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

Re: Increase storage on Arch with dualboot

Yes, for the packages you have installed /usr/ should be less than 2.6G.  It's harder to predict the size of /var as most of its contents are not owned by packages, but 9.9G is extremely large.  Again, what's actually using that space?  Particularly under /usr.  Is most of it in /usr/local?  Are you installing system software outside of pacman?

Perhaps the following would help to find unowned files under /usr:

find /usr/ -type f | pacman -Qo - >/dev/null

Although a lot of mimetype generated files will be expected, so this would be a bit cleaner:

find /usr/ -type f | pacman -Qo - 2>&1 >/dev/null | grep -v mime

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

Offline

#30 2021-12-29 18:37:43

FlatEarthGary
Member
Registered: 2021-01-16
Posts: 36

Re: Increase storage on Arch with dualboot

Trilby wrote:

Yes, for the packages you have installed /usr/ should be less than 2.6G.  It's harder to predict the size of /var as most of its contents are not owned by packages, but 9.9G is extremely large.  Again, what's actually using that space?  Particularly under /usr.  Is most of it in /usr/local?  Are you installing system software outside of pacman?

Perhaps the following would help to find unowned files under /usr:

find /usr/ -type f | pacman -Qo - >/dev/null

Although a lot of mimetype generated files will be expected, so this would be a bit cleaner:

find /usr/ -type f | pacman -Qo - 2>&1 >/dev/null | grep -v mime

In the /usr directory the lib folder is taking up roughly 4,3GB and the share folder 3,9GB. I can't seem to figure out how to see which directory/file is taking up the most space within those folders however. /usr/local is very small, is only about 350 KiB. Yes, I do on occasion install packages from the AUR using Paru.

In /var the cache folder is 9,4GB.

Running the first command you specified;

 find /usr/ -type f | pacman -Qo - >/dev/null 

Spits out a ton of "error: No package owns PATH".

Running the second command also spits out a ton of stuff but here is everything, at least as I can tell, owned by something.

Offline

#31 2021-12-29 18:46:52

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

Re: Increase storage on Arch with dualboot

FlatEarthGary wrote:

Yes, I do on occasion install packages from the AUR using Paru.

That still installs with pacman.

FlatEarthGary wrote:

In /var the cache folder is 9,4GB.

And what in that directory is taking up the space - don't make me ask about each level along the way, do some work of your own here.  If it's the pacman cache, you may want to run paccache occasionally.

FlatEarthGary wrote:

Spits out a ton of "error: No package owns PATH"...

Running the second command also spits out a ton of stuff but here is everything, at least as I can tell, owned by something.

Knowing what is unowned is the point.  How do you infer that this "ton of stuff" is "owned by something"?  That command only prints the errors from the pacman command which should only be files *not* owned by any package.  But if you don't provide any of the output, this is all just guesswork.   I'm tired of guessing and of pulling teeth (one at a time).

Something appears wrong with your system.  But I'm not willing to put more effort into figuring out what that is than you are.

Last edited by Trilby (2021-12-29 18:48:12)


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

Offline

#32 2021-12-29 19:09:53

FlatEarthGary
Member
Registered: 2021-01-16
Posts: 36

Re: Increase storage on Arch with dualboot

Trilby wrote:
FlatEarthGary wrote:

Yes, I do on occasion install packages from the AUR using Paru.

That still installs with pacman.

FlatEarthGary wrote:

In /var the cache folder is 9,4GB.

And what in that directory is taking up the space - don't make me ask about each level along the way, do some work of your own here.  If it's the pacman cache, you may want to run paccache occasionally.

FlatEarthGary wrote:

Spits out a ton of "error: No package owns PATH"...

Running the second command also spits out a ton of stuff but here is everything, at least as I can tell, owned by something.

Knowing what is unowned is the point.  How do you infer that this "ton of stuff" is "owned by something"?  That command only prints the errors from the pacman command which should only be files *not* owned by any package.  But if you don't provide any of the output, this is all just guesswork.   I'm tired of guessing and of pulling teeth (one at a time).

Something appears wrong with your system.  But I'm not willing to put more effort into figuring out what that is than you are.

I am truly sorry if I make you feel like you're wasting your time, that is not my intent. I'm rather new to Arch and therefore not entirely comfortable.

It was pacman's cache that took up all the space in /var. I have trimmed it down to roughly 3,6GB

By running the second command I get PATH is owned by file . For example:

 /usr/include/libdbusmenu-glib-0.4/libdbusmenu-glib/client.h is owned by libdbusmenu-glib 16.04.0-4 

I now at least have roughly 14GB of free space and I'm happy with that.

Once again I want to apologize if I've been being disrespectful regarding your time.

Thank you so much for helping me. I have learned a ton and I really do appreciate you taking your time to help me. Have a great day!

Offline

#33 2021-12-29 19:19:16

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

Re: Increase storage on Arch with dualboot

FlatEarthGary wrote:

Once again I want to apologize if I've been being disrespectful regarding your time.

Perhaps I was just cranky.  I do feel like you were giving the most minimal possible responses to many questions and not being forthcoming with relevant information - but perhaps that feeling was not justified.  I can say that the amount of space used in /usr is drastically out of proprotion to the packages that you listed as being installed.  I don't know what would account for that discrepancy - you'd have to find the files under /usr that are not owned by any package.  The commands I gave should have done just that - I'm not sure how / why you'd get listings of files saying they were owned by a package.  These lines get sent to pacman's stdout, which was redirected to /dev/null in the command I provided.


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

Offline

Board footer

Powered by FluxBB