Index | Thread | Search

From:
Stuart Henderson <stu@spacehopper.org>
Subject:
Re: /usr size needed for upgrade
To:
Amit Kulkarni <amitkulz@gmail.com>
Cc:
Theo de Raadt <deraadt@openbsd.org>, Adriano Barbosa <barbosa.aob@gmail.com>, tech@openbsd.org
Date:
Fri, 24 Oct 2025 17:52:53 +0100

Download raw body.

Thread
On 2025/10/24 11:44, Amit Kulkarni wrote:
> 
> On Fri, Oct 24, 2025 at 10:15 AM Theo de Raadt <deraadt@openbsd.org> wrote:
> 
>     Adriano Barbosa <barbosa.aob@gmail.com> wrote:
> 
>     > Hi,
>     >
>     > The upgrade instructions say "Verify that the /usr partition has a
>     > size of at least 1.1G". My upgrade 7.8 failed because there wasn't
>     > enough space in /usr, but my partition size is 2.0G.
>     > /dev/sd1e      2.0G    1.7G    205M    90%    /usr
> 
>     A lot of detritus collects in systems which have been upgraded through
>     many releases, in particular lib*.so libraries
> 
>     The situation is unfortunate, but there is no magic answer to it.
> 
> 
> pkg_add sysclean
> 
> removes all the old libraries and binaries. But use it with caution.

sysclean or no, 2GB is rather tight, and the contents of /usr are not
likely to get smaller.

If you have another larger partition that you don't use (/usr/obj is
possible on some installs) swapping in fstab and booting bsd.rd to do
an 'upgrade' install mightn't be a bad idea.