sshd: fatal: daemon() failed:

October 23, 2006

I had a few systems crash over the weekend, and one in particular had some filesystem corruption. It also happened that the file corruption was on the root filesystem, and it was a SAN boot machine. Anyhow, after booting up into a rescue disk (using pxe boot), I was able to fsck the root filesystem.

Then, ssh and portmap would not start. I found out the /dev/null was recreated as a normal file:

# ls -l /dev/null
-rw-r–r– 1 root root 0 Oct 23 12:04 /dev/null

It should have looked like this:

# ls -l /dev/null
crw-rw-rw- 1 root root 1, 3 Oct 23 15:07 /dev/null

So, to solve the problem

# rm /dev/null
# mknod /dev/null c 1 3

Comments

Got something to say?