Monday, May 13, 2024
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 2102  / 2 Years ago, fri, march 4, 2022, 9:56:14

I accidently removed my entire /usr directory thanks to RVM. I can still use the terminal prompt with Ctrl+Alt+F6, but I don't have any sudo (I guess it's because of the missing /usr).



Is there any way to recover my files?, I didn't reboot yet. If not how can I make sudo and the other things work again without completly reinstalling the OS? I'm runnig Ubuntu 12.04.


More From » data-recovery

 Answers
5

If you have backups => Yes



If you haven't made backups, start making them while you remember why it is important.



I think the easiest solution is to make a copy of your home directory and /etc onto an external disk, then detach the external disk and do a reinstall of the system.
If you have enough storage space on an external disk:




  • start a liveCD

  • copy all files to external disk or at least /home and /etc

  • reïnstall

  • copy the files from your backup to the new install

  • compare the config files in /etc with the ones in your backup


[#38746] Saturday, March 5, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
eaderitable

Total Points: 368
Total Questions: 117
Total Answers: 111

Location: Tuvalu
Member since Sat, Feb 11, 2023
1 Year ago
eaderitable questions
Tue, May 24, 22, 07:37, 2 Years ago
Mon, Aug 23, 21, 02:31, 3 Years ago
Thu, Mar 2, 23, 23:23, 1 Year ago
Wed, Apr 6, 22, 13:20, 2 Years ago
Tue, Dec 14, 21, 16:57, 2 Years ago
;