How to rebuild /dev/
on an Ubuntu lucid where everything in /dev/
were accidentally deleted?
MAKEDEV std
and MAKEDEV pty
aren't enough, which isn't surprising on a system using udev
.
I haven't rebooted yet because I fear I would lose access to my system.
I believe the contents of
/dev
are automatically rebuilt when you reboot.To quote someone else:
When rebooting is NOT an option (you are working remotely on a machine in usa and you are on safari) this should do the trick:
/dev is on a RAM disk so it gets destroyed and recreated on any reboot