I’m running Debian… And, I accidentally ran “rm /*” as root (hurray!) – luckily I didn’t use -r, so the dirs are still intact. However, when trying to boot, I get…
run-init: /sbin/init: No such file or directory
Kernel panic - not syncing: Attempted to kill init!
…however, after checking the drive from another machine, I can confirm that /sbin/init
exists. The only things missing were the files in the root, and I’ve replaced the sym links (initrd.img and vmzlinuz)…
Perhaps there’s some more links I need to replace?
Did you really run
# rm /
or
# rm /*
Because if you ran the former, you shouldn’t have deleted any files, because rm won’t delete a directory unless you add -r
.
I would suggest running:
# update-initramfs -c -k all
# update-grub
but I don’t think this will fix your problem. You probably also want to check your /boot/grub/menu.lst to make sure it is referring to the right kernel and initramfs images.
Check more discussion of this question.