1745795 Members
3996 Online
108722 Solutions
New Discussion юеВ

/dev/null

 
SOLVED
Go to solution
Rambo_1
Regular Advisor

/dev/null

Hi,
The / is 100% now. I used command as below:

#find / -mount -size +500k -exec ls -g {} \;

-rw-r--r-- 1 system 326707680 Aug 6 12:11 /dev/null

How to remove the /dev/null ,Is there any advise ?
Thanks
2 REPLIES 2
Hein van den Heuvel
Honored Contributor
Solution

Re: /dev/null


Hmmm,

Looks like some rambo blasted the device /dev/null and eventually it got replaced with a file called /dev/null when an innocent bystander executed a copy (cp, dd, whatever...) to /dev/null (thinking it woudl be the bit bucket).

/dev/null _should_ look like:

crw-rw-rw- 1 root system 2, 2 Aug 6 01:46 /dev/null


So... try something like this:

rm /dev/null
mknod /dev/null c 2 2
chmod 666 /dev/null


Good luck!

Hein.
Ravi_8
Honored Contributor

Re: /dev/null

Hi,

/dev/null is a character deivice file and also soft linked to dtremote.

so all writes to be made to null(usually console) are getting written on to /dev/null file hence filling the space.

recreate the /dev/null as told in first post by Hein, it should solve your problem
never give up