From: Stuart Henderson Subject: Re: /usr size needed for upgrade To: Amit Kulkarni Cc: Theo de Raadt , Adriano Barbosa , tech@openbsd.org Date: Fri, 24 Oct 2025 17:52:53 +0100 On 2025/10/24 11:44, Amit Kulkarni wrote: > > On Fri, Oct 24, 2025 at 10:15 AM Theo de Raadt wrote: > > Adriano Barbosa 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.