unintentionally, usr folder is missing what to do?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
unintentionally, usr folder is missing what to do?
hi all,
i was browsing the / folder and unintentionally i dragged the "usr" folder into somewhere .. propably the var folder ..
>>
the gui now is not working correctly
and i cant use th "find" command to look for the "usr" folder because it is in it!
i tried to search for it manually ,,, but with no use ..
i didnt find it
i need to find so that the system works good..
besides i need the kernel source code folder (/usr/src/linux-version) to install the driver of the nic card ..
What distribution where you using?
Also, Linux was designed to make mistakes like this impossible. If you were able to delete/move your usr folder, you were most likely logged as root. You should never login as root, use sudo or su.
If you can't find it back, maybe you can browse every folder and use "ls | grep usr" to retrieve it. Good luck!
If you can't find, you can better just reinstall your system. It seems to me that you haven't got it that long installed anyways.
An alternative method would be to boot using a live cd, mount the partitions of your installation and then use find to search for where you put usr and then move it to the right place.
this issue was resolved by copying the contents of the bin and sbin folder which are inside the usr folder from another linux system into the defected one and using the find command ..
i found the lost folder in the .Trash folder .. i moved it into its place..
restart ..
everything went back fine
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.