Index | Thread | Search

From:
Adriano Barbosa <barbosa.aob@gmail.com>
Subject:
Re: /usr size needed for upgrade
To:
Theo de Raadt <deraadt@openbsd.org>
Cc:
jasites <jas@jasites.com>, tech@openbsd.org
Date:
Sat, 25 Oct 2025 08:21:12 -0400

Download raw body.

Thread

> Em 24 de out. de 2025, à(s) 14:52, Theo de Raadt <deraadt@openbsd.org> escreveu:
> 
> jasites <jas@jasites.com> wrote:
> 
>>> On Oct 24, 2025, at 09:39, 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
>>> 
>>> Should the instructions be updated, or do they refer to *free* space?
>>> 
>> 
>> Since others have been helpfully answering how you might go about cleaning up space, or what to look for in that partition, but not answering this question directly, I hope to correctly answer based on reading previous messages on these lists. If I’m wrong, then you’ll have another justification for updating the instructions, at least for clarity.
>> 
>> According to https://openbsd.org/faq/upgrade78.html, where it says “Verify that the /usr partition has a size of at least 1.1G”, the line is prefaced with “Check available disk space in /usr”, which I read to mean that the /usr partition should have at least that much free space available.
> 
> Your interpretation is incorrect.
> 
> It is presuming a few things:
> 
> 1) that /usr/local and other sub-directories are seperate partitions
> 
> 2) that you don't have a massive pile of junk from old releases, in particular
>   shared libraries, which we cannot delete because we don't know if there is
>   some binary somewhere relying upo that library
> 
> But it is a general rule.  If you want to read specific details into it which
> we didn't write, you get all the pieces because there's no warranty or
> refunds.

Thank you all for all the helpful advices!
After removing old stuff, /usr free space increased from 205M to 394M. I
ran upgrade once more to make sure I didn't delete anything important.
This free space was enough to complete the upgrade without any issues.

Obrigado!
-- 
Adriano