Sunday, February 28, 2021

Re: Default partitions allocate only 1GB to /

On Sat, Feb 27, 2021 at 11:52:39PM +0000, James Cook wrote:
>If you have a lot more space used, you could try to figure out what's
>using it. My go-to command is "du -xah /|sort -h|less"

That's a neat command, and amazingly enough it did the trick: there was
a 20MB file, INS@yjf(...) located in the root directory. It looked like
a copy of the kernel binary which had been saved while I was messing
about with kernel configuration options.

I deleted the file and `pkg_add libreoffice` worked as expected.

Post-install I still have 746MB free in /, according to `df -h`.

This makes little sense to me. Why should deleting a 20MB file on a
filesystem with >700MB free space be sufficient for the install to go
through? Especially when the install obviously doesn't need that much
space on the filesystem in question?

(space available in /usr/local went from 11.4G, pre-install, to 10.8G,
post-install... was `pkg_add` trying to stage files in /, even though
/tmp is a separate filesystem?)

No comments:

Post a Comment