On Fri, 13 Feb 2015 23:28:21 -0500 Jason Hunt <jh...@lynden.on.ca> wrote: > In the midst of setting up my laptop (fresh install of 5.6), I found I was > out of space on root:: > > # df -h > Filesystem Size Used Avail Capacity Mounted on > /dev/sd1a 1005M 1004M -49.2M 105% / > /dev/sd1k 49.2G 1.4G 45.3G 3% /home > /dev/sd1d 3.9G 138K 3.7G 0% /tmp > /dev/sd1f 2.0G 917M 995M 48% /usr > /dev/sd1g 1005M 191M 764M 20% /usr/X11R6 > /dev/sd1h 9.8G 1015M 8.4G 11% /usr/local > /dev/sd1j 2.0G 2.0K 1.9G 0% /usr/obj > /dev/sd1i 2.0G 2.0K 1.9G 0% /usr/src > /dev/sd1e 11.2G 9.2M 10.6G 0% /var > > The culprit: looks to be /dev: > > # du -sh /dev > 938M /dev > > But I don't understand why /dev would be using so much space? Nothing > looks out of place in /dev, but there sure is a lot of files (more than I > expected): > > # ls -l /dev | wc -l > 1173
nothing odd about that. just for starters, each disk has 16 files (one for each partition), and double that with raw devices (so 32 files per disk). ide disks alone [0..7] use 256 files. > > I don't have another OpenBSD system in front of me at the moment for > comparison; is this normal? I never thought I would need more than 1GB for > root? I guess I need to make a new root partition (2GB this time?) and > migrate to that? > that certainly does not seem right. /dev should be almost zero (its not much more than inodes.) this is from my -current: $ du -sh /dev 38.0K /dev $ ls -l /dev | wc -l 1429 to see what is bigger than it should be, try: $ du -sh /dev/* | grep -v ^0 12.0K /dev/MAKEDEV 2.0K /dev/fd and since almost everything in /dev is either a block or char device: $ ls -l /dev/|grep -v ^[cb] total 28 -r-xr-xr-x 1 root wheel 11424 Jan 28 14:22 MAKEDEV lrwxr-xr-x 1 root wheel 6 Oct 24 23:02 audio -> audio0 lrwxr-xr-x 1 root wheel 9 Oct 24 23:02 audioctl -> audioctl0 dr-xr-xr-x 2 root wheel 1024 Oct 24 23:02 fd srw-rw-rw- 1 root wheel 0 Jan 28 07:19 log lrwxr-xr-x 1 root wheel 6 Oct 24 23:02 mixer -> mixer0 lrwxr-xr-x 1 root wheel 4 Oct 24 23:02 pci -> pci0 lrwxr-xr-x 1 root wheel 6 Oct 24 23:02 radio -> radio0 lrwxr-xr-x 1 root wheel 6 Oct 24 23:02 sound -> sound0 lrwxr-xr-x 1 root wheel 6 Oct 24 23:02 video -> video0