Engineering Software, Linux, and Operations. The website of Jack Neely.    

Recreating /dev

So, in my infinate wisdom I got mock to delete everything in /dev on my workstation.  So, the task became, how do I get /dev back?  Easy, if you’re running udev like in RHEL or Fedora.

You need to recreate /dev/null and dev/console

/sbin/MAKEDEV -d /dev -c /etc/makedev.d/ -a null
/sbin/MAKEDEV -d /dev -c /etc/makedev.d/ -a console

Actually, probably calling /sbin/MAKEDEV with out most of those arguments would be sufficiant.

Skip step #2.

Reboot your machine.

UDEV will recreate the needed devices on boot and life should return to normal.

 Previous  Up  Next

comments powered by Disqus