/lib in rescue mode
Hi,
I accidentally deleted /lib in the / directory. There was no indication that this was a serious situation until I rebooted my computer; most essential drivers are gone - so Ethernet, removable h-disk, CD etc cannot be initiated. Is there a way to restore the lib file from the rescue disk? Thanks |
Please fill in your distro details in your profile. That may help us give better answers.
If you're still running Fedora 8 (http://www.linuxquestions.org/questi...-found-687475/) then if you still have your RPM database (/var/lib/rpm) you could list the packages contents, see what uses /lib and reinstall those. Since RPM provides you with usable package management tools you can use the "verify" command. Boot your rescue CD, mount the root and /var partition if not mounted already, run rpm in verify mode, pipe it through awk or grep to find only missing entities, then query the RPMDB to find the corresponding packages. To get the list of packages to install you could do something like: Code:
rpm -qVa --noscripts --nodeps --nomd5 --nosignature --nouser --nosize --nogroup --nomode --nomtime --nordev \ Good luck! |
Thanks UnSpawn, this is a hard lesson. I'll try to run through the exercise. On the other hand, is it possible to re-install Fedora 8 with minimal impact on existing files? Could you run me through the process? I have the following partitions
/boot 100 MB ext3 partition swap 2 GB swap LVM / 3 GB ext3 /usr 8 GB ext3 /usr/local 2 GB ext3 /var 4 GB ext3 /home 25 GB ext3 10 GB Free Thanks |
Quote:
I get no output after running the above. |
Quote:
Content of /RESCUEDISKMOUNTPOINT/... Packages _db.001 _db.002 _db.003 What does this mean? Thanks |
Quote:
Quote:
Quote:
|
Quote:
Quote:
Quote:
Thanks |
Do you mean the LVM partitions don't get mounted? What does 'lvmdiskscan' return?
|
lvmdiskscan returns all partitions
|
If I upgrade from Core 8 to 9 or 10, will it fix the problem?
Thanx |
Quote:
Quote:
|
All times are GMT -5. The time now is 06:13 AM. |