This may be heresy on the list, but I do not agree with the auto-
partitioning one-size-fits-all approach.

I've had a full /usr cause an unbootable system via a failed relink.

There was a thread on bugs@ not too long ago, it may or may not
have been fixed in 7.8, but you'll want to fix this situation ASAP.

As you can see /usr/obj and /usr/src are simply wasting space if you
are not building packages. I encounter this on micro-VMs where I build
on a dedicated build host and live on binary packages alone.

Your filesystems are empty so I assume this is the case.

My suggestion (if you are *very* careful):

1. Delete the slices for /usr/obj and /usr/src
2. Create a new /usr filesystem in the unallocated space
3. Clone the old /usr to the new /usr
4. Once you reboot into the new filesystem layout, you can repurpose 
   the free space of the old /usr (e.g. /var/log or something).

Regards
Lloyd

Martin Schröder wrote:

> Hi,
> I just had an upgrade 7.6 -> 7.7 fail due to not enough free space on /usr.
> 
> I had to manually delete /usr/share/relink/kernel/GENERIC.MP/ to free space.
> System is an apu2, so amd64.
> 
> The system now seems to run o.k., only kernel relinking fails because of 
> missing
> /usr/share/relink/kernel/GENERIC.MP/ (of course)
> 
> The disk setup is now:
> 
> > df -h
> 
> Filesystem Size Used Avail Capacity Mounted on
> /dev/sd0a 1005M 290M 665M 31% /
> /dev/sd0k 7.2G 7.2M 6.9G 1% /home
> /dev/sd0d 1.5G 10.0K 1.4G 1% /tmp
> /dev/sd0f 2.0G 871M 1.0G 46% /usr
> /dev/sd0g 909M 435M 429M 51% /usr/X11R6
> /dev/sd0h 3.6G 1.2G 2.2G 36% /usr/local
> /dev/sd0j 5.6G 2.0K 5.3G 1% /usr/obj
> /dev/sd0i 1.6G 2.0K 1.5G 1% /usr/src
> /dev/sd0e 2.3G 68.6M 2.1G 4% /var
> 
> Seeing that an unpacked GENERIC.MP for amd64 takes up 623MB and the
> kernel has a size of 224 MB, I doubt that this system will be able to relink a
> kernel with 1GB free space.
> So I will eventually have to move /usr to a larger partition (sigh).
> 
> But the upgrade guide says
> "Verify that the /usr partition has a size of at least 1.1G."
> This system has a /usr with 2G, but see above.
> 
> Should that minimum size be increased or how is the upgrade supposed to
> succeed on my system?
> 
> Best
> Martin
> 
> PS: Of course thanks to the devs for the system!

Reply via email to