Tuesday, April 28, 2009

recreate /dev/null

If you've somehow messed up /dev/null, here are procedures you can do to mend it...

1. Recreate the soft link "/dev/null"

You probably have access to root to have messed-up /dev/null so as root re-create the softlink:

#devlinks

2. If you have messed up the original device in /devices

mknod /devices/pseudo/mm@0:null c 13 2
chown root:sys /devices/pseudo/mm@0:null
chmod 666 /devices/pseudo/mm@0:null
cd /dev
ln -s ../devices/pseudo/mm@0:null null

Readers who read this page, also read:




Bookmark and Share My Zimbio http://www.wikio.com

0 comments: