[CentOS] What broke my box ??

Sat Feb 21 02:04:00 UTC 2009
Michael A. Peters <mpeters at mac.com>

CentOS 5.2 64-bit

I needed some space.

I have a hard drive that had an old Linux install I don't use anymore. 
So I edited /etc/fstab and removed the entries for it (entries I only 
needed so I could get data off it).

Then I edited /boot/grub.conf and removed the lines to boot it.

Then I rebooted.
It booted but a bunch of services failed because libstdc++ could not be 
found.

I logged into a console and tried to verify libstdc++ and that failed, I 
guess rpm depends upon it.

touch /forcefsck && shutdown -r now

After booting - no fsck errors, but libstdc++ error when starting some 
services.

cd /usr/lib64 - the shared library was there.

I looked in /etc/ld.so.conf and /etc/ld.so.conf.d/ just in case for some 
idiotic reason I had added a library path on the other drive - nope.

I then ran /sbin/ldconfig - and then rpm --verify worked.
rebooted and all services started.

So - clearly the library cache got borked and needed to be rebuilt.

The question is what borked it?
Anyone seen this before?