I downloaded pcap source compiled it and got a lib ending in libsomething.so.1.21.1. I tried to find how to install a lib online and in my impatience did the following
sudo .install-sh /lib libsomething.1.21.1
The output was the following
install-sh :250:chmod not found
install-sh : 1: rm :not found
After this I could not launch any program or shell command at the prompt in the terminal(I could use cd but not ls or others). Now when I try to boot into Ubuntu I get a kernel panic after the following line:
run-init:/sbin/init: No such file or directory.
.install-sh is in the pcap folder, source was taken directly from the website.
I don't have a clue as to what the script did, I would be very thankful if somebody could give me any pointers on how to proceed.
/lib
back but/lib/modules
(which contains the drivers that are not essential to booting) is somehow missing or corrupted. What entries do you see in/lib/modules
? What doesdu -s /lib/modules/*
show? The entry corresponding to the kernel you're running (uname -r
) should have about 100MB. If the drivers are missing and don't seem to have been moved elsewhere, reinstall thelinux-image-…
package, something likeapt-get --reinstall install linux-image-2.6.32-37-generic
. – Gilles 'SO- stop being evil' Jan 11 '12 at 18:35