Subject: install/24003: sysinst partition size handling should be more careful
To: None <firstname.lastname@example.org>
From: Ken Raeburn <email@example.com>
Date: 01/06/2004 10:26:22
>Synopsis: sysinst partition size handling should be more careful
>Arrival-Date: Tue Jan 06 15:27:00 UTC 2004
>Originator: Ken Raeburn
>Release: NetBSD 1.6.1
System: NetBSD fwoosh.raeburn.org 1.6.1 NetBSD 1.6.1 (GENERIC) #0: Wed Apr 9 03:
02:04 UTC 2003 firstname.lastname@example.org:/autobuild/netbsd-1-6/sparc/OBJ/autobuil
I'm installing a sparcstation 5 from cdrom. I gave it the "standard
with X" configuration, "full installation", told it to create all the
optional file systems (/var, /home, and mfs /tmp).
It created the following label for the disk:
total sectors: 2134305
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
# size offset fstype [fsize bsize cpg/sgs]
a: 65608 0 4.2BSD 1024 8192 152 # (Cyl. 0 - 117)
b: 788408 65608 swap # (Cyl. 118 - 1535)
c: 2134305 0 unused 0 0 # (Cyl. 0 - 3838*)
d: 65608 854016 4.2BSD 1024 8192 152 # (Cyl. 1536 - 1653)
e: 937793 1196512 4.2BSD 1024 8192 148 # (Cyl. 2152 - 3838*)
g: 276888 919624 4.2BSD 1024 8192 152 # (Cyl. 1654 - 2151)
During the unpacking of one of the sets, /usr filled.
I tried again, leaving out the optional file systems. This time, it
unpacked okay, though at the very end I got:
At a minimum, you should edit /etc/rc.conf to match your needs. See
/etc/defaults/rc.conf for the default values.
uid 0 comm sysinst on /instfs: file system full
Back in microroot; halting machine...
But the system does come up, and appears to be working.
The /usr file system needed somewhat more space than had been
# df /usr
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/sd0g 620415 173737 415657 29% /usr
That's nearly 350K sectors. The g partition (which I assume is where
/usr was in the lots-of-partitions install as well) wasn't that big,
before, but there was space to spare.
Install with all the extra partitions.
sysinst should know the platform's size requirements for / and /usr
and /var when the full installation is done, and should create those
partitions at least that large, cutting down /home as necessary to
make them big enough. Or, the list of sets to install should be
chosen before automatically computed partition sizes are chosen, so
that they can be taken into account.