On Sat, Aug 08, 2015 at 08:24:53PM -0400, Quartz wrote: > >One man already asked you for disklabel output. > > That WAS the disklabel output (minus sizes and offsets). When I next get a > chance to ssh into it from somewhere else I'll copy the actual output, but > the exact blocks shouldn't really matter for all this.
You've stated you have a 10GB disk, and that this is 4.9. The disklabel(8) man page at 4.9 described the automatic layout at that time: Disks > 6.5 Gigabytes / 5% of disk. 80M - 1G swap 5% of disk. 80M - 2x max physical memory /tmp 8% of disk. 120M - 4G /var 13% of disk. 80M - 2x size of crash dump /usr 2% of disk. 600M - 2G /usr/X11R6 3% of disk. 512M - 1G /usr/local 5% of disk. 2G - 6G /usr/src 3% of disk. 1G - 2G /usr/obj 3% of disk. 1G - 2G /home 53% of disk. 1G - 300G You have stated that /usr/src and /usr/obj are unused, /var is full, and /usr/local (used for packages and some infrastructure components) is nearly empty. If you boot in single-user mode, you can manipulate any partition other than the root partition. For that, you must use the RAMDISK kernel. The disklabel(8) tool is used to delete and create partitions. With it, you can delete the partitions for /usr/src and /usr/obj, as they are unused. That will give you a 2GB empty area which you may repurpose. For example, you could create a new partition in that space, and move /var there. You could continue to move, mix and match, and restructure as needed. For example, you could migrate the contents of /usr/local into /usr, freeing an additional 0.5 GB, and you could do the same with /usr/X11R6 ... assuming there is room in /usr. Eliminating all partitions between /usr/X11R6 and /usr/obj, inclusively, would allow you to grow /usr with growfs(8). However, you can't grow it until the other partitions have been removed, so you may need to do some backup / restore to external media, or perhaps use freespace in /home as a temporary location to store dump(8) output, if it has capacity. The newfs(8) tool is used to format partitions. The best practice for moving of FFS filesystems is through the use of dump(8)/restore(8). FAQ 14 may also be helpful, as it lays out the basics of disk management.