Recover from sudo strip * in /usr/bin

3

I stupidly did sudo strip * in /usr/bin. Now my computer can’t boot (X fails to load).

What should I do?

Demi

Posted 2014-02-26T01:44:53.163

Reputation: 718

X not loading and failing to boot are very different, can you Ctrl+Alt+F2 to TTY? – None – 2014-02-26T01:55:45.500

nope. I wound up reinstalling the box (/home is on separate partition, so lost no data). – Demi – 2014-02-26T02:15:30.460

1This question should be closed because the OP has solved the issue by reinstalling (probably the only solution anyway) and so the question is unlikely to help future visitors. – terdon – 2014-02-26T02:51:09.967

1Others may want to know that reinstalling is the only answer. – Demi – 2014-02-26T03:48:09.490

What's wrong with stripped binaries? Why it does not work? – andrej – 2014-03-13T12:42:23.100

Some of the program were actually shared libraries, and stripping them made them useless – Demi – 2014-03-13T18:17:23.527

Answers

5

The best way for you to recover would be to reinstall. Although you could copy the rest of your data (excluding /usr/bin/) by booting onto a rescue disk like System Rescue CD, and mounting your drive to copy the data.

Good Luck!

Questionmark

Posted 2014-02-26T01:44:53.163

Reputation: 421

Did just that. Reinstalling programs now. – Demi – 2014-02-26T03:47:40.143