Thread: / is full
View Single Post
  #2   (View Single Post)  
Old 4th August 2022
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,983
Default

  • I will guess that this is OpenBSD, not FreeBSD. You posted this in the FreeBSD General sub-forum.
  • The most common reason for a full root partition is having a typo in the of= parameter of a dd(1) command.
If you accidentally make a mistake in the name of a device special file, the dd(1) command will create a new, normal file in /dev, and that will consume freespace. Depending on what you were copying, perhaps all available freespace.

The easiest way to find normal files in /dev is with find(1). The only normal files should be the MAKEDEV(8) script, which is about 12 KB, and you might also have several daemon lock files, which are 0 bytes. Here is an example:
Code:
$ find /dev -type f -ls
 77964   24 -r-xr-xr-x    1 root     wheel       12142 Jul 28 11:47 /dev/MAKEDEV
 79276    0 -rw-------    1 root     wheel           0 Mar 10 07:50 /dev/slaacd.lock
 79285    0 -rw-------    1 root     wheel           0 Mar 10 07:50 /dev/dhcpleased.lock
 79291    0 -rw-------    1 root     wheel           0 Mar 10 07:50 /dev/resolvd.lock
Any extra files that consume space will be from a mis-typed dd(1) command, and can be deleted. I should probably delete those .lock files, they've been there since March.

Last edited by jggimi; 4th August 2022 at 03:21 AM. Reason: clarity
Reply With Quote