Bug 23402 - sysinstall(8): upgrade ought to check partition sizes
Summary: sysinstall(8): upgrade ought to check partition sizes
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 4.2-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-sysinstall (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-12-09 15:50 UTC by Sean Kelly
Modified: 2015-11-10 09:12 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sean Kelly 2000-12-09 15:50:01 UTC
        Back in my SunOS 3.5 and 4.1 days, I partitioned systems with
        a small root.  I've done the same with FreeBSD.  Back in the
        2.0 days, 32MB was more than generous.  I could give 64MB to
        /var and have plenty of space for logs and email.  192MB for
        /usr, which was mounted read-only, was sufficient.  /usr/local
        and /home would be where all the action took place.

        32MB under / was generous.  But now it barely fits the kernel
        and the loadable modules.

        It'd sure be nice if sysinstall could check your partition
        sizes against your chosen distributions and say "Your /usr
        partition isn't large enough to hold the selected packages" or
        "Your root partition needs to be at least 58MB".

Fix: 

Realize that things are only going to get bigger and
        repartition before you upgrade.  Blow away /sbin/mount_* for
        unsupported/buggy filesystems.  Move /stand to /usr and
        symlink it.  Remove loadable modules you won't need.  Drop
        kernel.GENERIC.  Config a small kernel.  Scratch and scrape
        for every last bit of space and hope there's enough room for
        kernel.old in case the new one doesn't work.
How-To-Repeat: 
        Make a FreeBSD 3.1 system with a 32MB root partition.
        Run the 4.2 sysinstall and choose upgrade.  Read the scary
        stuff, proceed with the upgrade.  Mark the mountpoints for the
        previous filesystems.  Choose distributions.  Proceed.  Wait
        for the File System Full messages to appear.

        This has happened before, too, when my /usr was too small.  I
        now have a /usr of 300MB, and a 4.2 system with man, catman,
        info, and doc is 94% full.
Comment 1 Murray Stokely freebsd_committer freebsd_triage 2002-03-27 12:50:11 UTC
State Changed
From-To: open->analyzed

The defaults have been bumped up generously, but sysinstall still does 
not intelligently warn users about disk space requirements. 



Comment 2 Murray Stokely freebsd_committer freebsd_triage 2002-03-27 12:50:11 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-qa

The defaults have been bumped up generously, but sysinstall still does 
not intelligently warn users about disk space requirements.
Comment 3 Bruce Cran freebsd_committer freebsd_triage 2010-04-25 12:38:11 UTC
Responsible Changed
From-To: freebsd-bugs->brucec

Take.
Comment 4 Garrett Cooper 2010-04-26 01:01:34 UTC
    This is (IMO) an impossible requirement to chase (as-is) as this
amount can change varying upon how packages are distributed; you would
need to `taste' the contents in the packages to determine the unpacked
size and calculate whether or not the user should or should not be
warned about having too small or two large a partition size. That kind
of data isn't really available today [in pkg_install] as they're just
dumb compressed tarballs with a little bit of extra data. The
enhancement would have to be first made to pkg_install, then
sysinstall would need to `taste' that information to ensure that the
calculated sizes were less than the proposed partition amounts. That
introduces a potentially large amount of complexity though because
sysinstall would need to copy the data to a temporary location to
avoid downloading packages twice (tmpfs, etc... which might not have
enough space), then sysinstall would need to track where ALL of the
files are being installed to and thus determine whether or not the
user was doing the right thing or was being a foolish and the install
would fail, etc.
    I think that the issue that really needs to be resolved is to make
the installation revertable so that if the user does make a mistake
with the sizes he/she specifies for partitions and slices, they can go
back and fix their issues before they get too locked down with system
configuration, etc after install.
Thanks,
-Garrett
Comment 5 Bruce Cran freebsd_committer freebsd_triage 2011-01-23 21:16:56 UTC
Responsible Changed
From-To: brucec->freebsd-sysinstall

Back to the pool.
Comment 6 Enji Cooper freebsd_committer freebsd_triage 2015-11-10 09:08:00 UTC
sysinstall has been replaced by bsdinstall in FreeBSD 9.x. Closing.
Comment 7 Enji Cooper freebsd_committer freebsd_triage 2015-11-10 09:12:09 UTC
sysinstall has been replaced by bsdinstall in FreeBSD 9.x. Closing.