On 12/11/05, Andreas Bartelt <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> according to http://www.openbsd.org/faq/faq4.html#SpaceNeeded 250 MB for
> /usr is sufficient, in case X isn't installed on an OpenBSD system. My
> /usr partition (located on a 512 MB CompactFlash drive) recently has
> reached its limits after living through multiple releases (3.4 - 3.8).
>
> du -h:
> ...
> /dev/wd0e      359M    311M   30.3M    91%    /usr
>
> folders in my /usr partition:
> bin 19.9M
> games 1.4M
> include 16.8M
> lib 100M
> libdata 76.8M
> libexec 2.6M
> lkm 2.0K
> local 10.8M
> mdec 220K
> obj -> /home/obj
> ports -> /home/ports
> sbin 15.9M
> share 62.6M
> src -> /home/src
>
> My goal is to savely remove all files from older releases, which aren't
> needed anymore.
>
> At least in /usr/lib, there seem to be some directories, which
> exclusively contain files from older releases, namely
> /usr/lib/gcc-lib/i386-unknown-openbsd[release number]. Is it save to
> remove them after upgrading to a newer release? The content of
> /usr/libdata seems to be growing with each release, too. Which
> directories/files may be removed from /usr without risking too much?
>
> Is it better to wipe /usr and do a complete reinstall of all /usr
> content from a fresh OpenBSD system?
>

You might want to try something like having find search / and show any
files with a creation or modification time that would be before 3.8
release files, and redirecting the output to a file. I think that
would be one way to at least get started, but any files needed for 3.8
would have been created or modified at the same time as specified in
the installation sets. Or you could do a mix of creating a 3.8 file
list via the installation sets and the find output, making sure that
none of the files in your 3.8 file list are listed in the find output,
then starting to remove. I would strongly suggest though, that you
test them on another system that you purposefully install older
versions and upgrade on before doing it on your production system. The
best option though, if possible, is a reformat and reinstall, as you
run no risk of breaking dependencies and only use space needed.

Jason

Reply via email to