Linux - Software This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
03-16-2006, 09:02 PM
|
#1
|
LQ Newbie
Registered: Oct 2005
Posts: 7
Rep:
|
Deleted /bin and more, help me unscrew myself.
So by matter of typo, i managed to basically execute rm -r * as root in /
As far as I can tell /bin and /etc are completely gone.
My important files are in /home/useraccount.
I only have 2 open ssh clients, and if they disconnect, I can't reconnect to the server. The servers too far away to simply go to, and an OS reload costs money. I'd at least like to back up my files before having to reformat.
I can use wget...so I tried copying over some bash files (ls / mkdir) but got permission denied...and chmod is gone do I can't change the permissions...
Anyone have any suggestions or should I just give up?
|
|
|
03-16-2006, 09:08 PM
|
#2
|
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290
|
I'd honestly suggest backing up the home directories and reinstalling. Chances are you've deleted eenouygh critical system libraries that recovery will be difficult without booting to a LiveCD and re-installing the base system packages. If you can't do that, I'd suggest a reinstall.
Sounds like you learned a lesson about being careful with rm and the root account.
|
|
|
03-16-2006, 09:10 PM
|
#3
|
LQ Newbie
Registered: Oct 2005
Posts: 7
Original Poster
Rep:
|
Thats the problem...I can't think of any way to back it up.
|
|
|
03-16-2006, 09:12 PM
|
#4
|
Senior Member
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250
Rep:
|
Try reinstalling with the 'upgrade' option.
|
|
|
03-16-2006, 09:20 PM
|
#5
|
LQ Newbie
Registered: Oct 2005
Posts: 7
Original Poster
Rep:
|
It's a self dedicated server, so os reloads cost money, but I managed to restore /bin by zipping /bin off my home linux box and unzipping it off the server, seems to have retained the permissions, will post here if i run into any problems.
|
|
|
03-16-2006, 09:51 PM
|
#6
|
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290
|
You should check and see if your /lib is still intact (hopefully it is). If you're using a RPM based distro the -V (verify) option to RPM can help quite a lot.
|
|
|
03-17-2006, 02:00 AM
|
#7
|
LQ Veteran
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642
Rep:
|
Assuming that /home is on its own partition, you could simply reinstall. The critical step however would be that during the partitioning step, do NOT reformat /home. Simply leave it as is, then continue the installation normally. What you'd more or less be doing would be to re-install the distro "around" /home.
Note that this approach would also allow you to switch from one distro to another pretty painlessly. Again, the key is just that /home must exist on its own partition.
|
|
|
All times are GMT -5. The time now is 03:22 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|