Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How to rebuild /dev on an ubuntu lucid where all files in /dev were accidentally deleted ?

MAKEDEV std and MAKEDEV pty aren't enough, which isn't surprising on a system under udev.

I haven't reboot yet because I fear to loose access to my system.

share|improve this question

3 Answers 3

up vote 3 down vote accepted

I believe the contents of /dev are automatically rebuilt when you reboot.

To quote someone else:

When you start the system, the "udev" facility examines the hardware configuration (according to established rules) and dynamically creates the entries in /dev.

share|improve this answer

When rebooting is NOT an option this should do the trick:

udevadm control --reload-rules
udevadm trigger
share|improve this answer

/dev is on a RAM disk so it gets destroyed and recreated on any reboot

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.