On Sun, 5 Apr 2020 10:32:02 +0200
Martijn van Duren <[email protected]> wrote:
> On 4/5/20 10:19 AM, Olivier wrote:
> > Hi,
> >
> > I am running OpenBSD from a long time(T410 / Amd64) ; and 6.6 from the
> > release. I did not monitor the size of / in the past...
> > Until today :(
> >
> > Please, how to identify junk to remove in /dev below :
> >
> > +---< oliv@snow >---< / >
> > +---> df -h
> > Filesystem Size Used Avail Capacity Mounted on
> > /dev/sd0a 1008M 1003M -44.9M 105% /
> > /dev/sd0m 37.4G 3.7G 31.8G 10% /home
> > /dev/sd0d 3.9G 1.6M 3.7G 0% /tmp
> > /dev/sd0f 3.9G 975M 2.8G 25% /usr
> > /dev/sd0g 1008M 258M 700M 27% /usr/X11R6
> > /dev/sd0h 15.7G 4.5G 10.5G 30% /usr/local
> > /dev/sd0l 2.0G 2.0K 1.9G 0% /usr/obj
> > /dev/sd0k 2.0G 2.0K 1.9G 0% /usr/src
> > /dev/sd0e 7.9G 971M 6.5G 13% /var
> > +---< oliv@snow >---< / >
> > +---> doas find -x / -size +10000 -exec du -h {} \;
> > 17.9M /bsd
> > 9.8M /bsd.rd
> > 848K /dev/sdXc
> > 884M /dev/sd3
> > 17.8M /bsd.sp
> > 17.9M /bsd.booted
> > +---< oliv@snow >---< / >
> > +---> doas du -d1 -h -x /
> > 2.0K /home
> > 2.0K /tmp
> > 2.0K /usr
> > 2.0K /var
> > 16.0K /net
> > 2.0K /altroot
> > 10.1M /bin
> > 885M /dev
> > 16.2M /etc
> > 2.0K /mnt
> > 4.6M /root
> > 23.4M /sbin
> > 1003M /
> > +---< oliv@snow >---< / >
> > +---> doas du -d1 -h -x /dev
> > 2.0K /dev/fd
> > 885M /dev
> > +---< oliv@snow >---< / >
> > +--->
> >
> >
> >
> >
> > Thanks in advance.
> >
> Most likely one of your device nodes turned into a regular file.
> Considering what I've seen over the years the most likely culprit is
> /dev/null.
> Probably the easiest way to find it is with:
> find /dev/ -type f -a ! -name MAKEDEV
> Once you've find it you can just delete it and recreate it with
> cd /dev; sh ./MAKEDEV <devname>
>
> martijn@
Hi martijn,
Thank you. i found it was 2 file from a bad use of dd :)
I deleted 2 file : /dev/sd3 & /dev/sdXc !
Oliv.
--
burelli.fr <[email protected]>