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 .. please help to solve this issue .. thanx alot |
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. |
You found out a reason why it isn't a good idea running as root.
You can enter a pseudo terminal by entering [CTRL]-[ALT]-F2. Then use the find command to locate the /usr directory: find / -type d -name "usr" |
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.
|
Resolved
Thanx all,
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 thanks for posting Abdullah Ali |
All times are GMT -5. The time now is 12:33 AM. |