Re: /usr broken, will the machine reboot ?
On Wednesday 07 September 2011 3:33:10 pm jacques wrote:
> by error most of the binaries in /usr are erased (killing rm :-(
> The server is still up.
> Most of the services are restarted either by copying (rsync)
> the binaries from another squeeze server (both are running Squeeze)
> or desinstalling/installing packages. (apt-* dpkg and suite are restored
> and runing ok)
> Now the the question is : will this machine *reboot* properly,
> inclufing the network ?
I know that my suggestion does not answer your question, but:
1. alias "rm" to "rm -i" to add a
rm: remove regular file `filename' ?
to give the user a moment to think for each file.
2. mount /usr as read only
Neither suggestion is 100% foolproof, but they both will help.