/usr/lib/* files had been deleted, how to restore these files

1.4k views Asked by At

I accidently deleted all files in /usr/lib/, how to resotre the files!! My OS is centos 6.6. several command cannot be used,such as:yum,rpm. what should i do, my boss will kill me~~ Thanks for your help.

1

There are 1 answers

2
hymie On

Step 1: remove the disk from the machine

Step 2: add the disk to another machine as a non-primary disk

Step 3: boot the other machine, and mount the non-primary disk and (if they are separate) its /usr and /usr/lib as /mnt/usr/lib

Step 4: recover from your most recent backup