FreeBSD 5, chroot and /dev

Hanspeter Roth hampi at rootshell.be
Wed Aug 11 08:15:44 PDT 2004


Hello,

I have built a new kernel on a FreeBSD 5.2 system which doesn't boot
anymore. So I took a Freesbee and mounted the filesystems from the
harddisk and changed root to the harddisk's one. But there were no
devices in /dev. I tried some of /etc/rc.d/dev*. This only created a
/dev/null.
Trying to build the kernel (with a different configuration) fails.
A regular file /dev/stdout has been created.

What is the recommended way to create the device nodes in /dev in a
chroot environment?

-Hanspeter


More information about the freebsd-questions mailing list