Re: [GLLUG] Any ideas? (Fw: exim paniclog on ladon has non-zero size)

Benjamin Cathey benjamincathey at catheycompany.com
Wed Jun 13 11:39:14 EDT 2007


>->> Somehow, /dev/null got removed.  (And eventually, some process tried  
>->> to stick some output there and created it as a regular file.)
>->> 
>->> You should be able to fix this by:
>->> 
>->> mknod /dev/null.tmp c 1 3
>->> chmod 666 /dev/null.tmp
>->> mv /dev/null.tmp /dev/null
>->> 
>->> (I suggesting doing the work on a tmp file and moving it over to  
>->> avoid races -- if you deleted the current /dev/null and then mknod'ed  
>->> a new one, something else might write to it in the meantime.)
>->> 
>->> -Ed

You know, I read somewhere in a linux magazine a year or so ago about this happening to someone.  Seems to have changed the file.  Wonder how it got removed initially?

Anyway,

Here is the output now:

ladon:~# ls -Flasd /dev /dev/null
28 drwxr-xr-x 12 root root 28672 2007-06-13 11:38 /dev/
 0 crw-rw-rw-  1 root root  1, 3 2007-06-13 11:38 /dev/null
ladon:~#

Thanks again,

Benjamin Cathey
System Administrator
Cathey Company
4917 Tranter St.
Lansing, MI 48910 USA
Phone:     517.393.4720
Fax:       517.393.4225
Toll Free: 800.333.1972
"Service is Our Profession"

**********************
** LEGAL DISCLAIMER **
**********************

This E-mail message and any attachments may contain legally privileged, confidential or proprietary information. If you are not the intended recipient(s), or the employee or agent responsible for delivery of this message to the intended recipient(s), you are hereby notified that any dissemination, distribution or copying of this E-mail message is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete this E-mail message from your computer. 




More information about the linux-user mailing list