Fedora Linux Support Community & Resources Center
  #1  
Old 30th October 2009, 05:22 PM
hotdox Offline
Registered User
 
Join Date: Oct 2009
Posts: 2
windows_vistaie
recover /bin

I ocasionly enter "rm -rf /bin" instead "rm -rf ./bin" under root. How can I recover /bin directory on my Fedora 10. Or may be reinstall with minimal tesualties?
Reply With Quote
  #2  
Old 30th October 2009, 07:39 PM
maflynn Offline
Registered User
 
Join Date: Oct 2009
Posts: 110
windows_xp_2003firefox
You occasionally delete your /bin directory???

Well if that's the case, then I recommend you use rsync regularly to backup your system.
Reply With Quote
  #3  
Old 30th October 2009, 07:52 PM
forkbomb Offline
Registered User
 
Join Date: May 2007
Location: U.S.
Posts: 4,851
windows_xp_2003firefox
1. Get in the habit of running rm -rf /root/bin (that's harder to misypte than rm -rf ./bin !)
2. Maybe put it in a script if you need to occasionally delete /root/bin


If you need to recover a system now, is it possible to get another Fedora box running, update it, and copy the contents of /bin from the fresh machine over to your other one?
__________________
- Tom
"What is freedom? To have the will to be responsible for one's self." - Stirner
Reply With Quote
  #4  
Old 30th October 2009, 07:55 PM
pete_1967 Online
Clueless in a Cuckooland
 
Join Date: Mar 2006
Location: Here now, elsewhere tomorrow.
Posts: 4,360
linuxfedorafirefox
Just in case: You do know that /root/bin nor any other 'bin' directory are not "Recycle bins" for deleted files?
__________________
A Drink is Not Just For Christmas - SaskyCom :thumb:


“Give a man a fish; you have fed him for today. Teach a man to fish; and you have fed him for a lifetime” so now go and...
RTFM FIRST: http://docs.fedoraproject.org/ & http://rute.2038bug.com/index.html.gz
Reply With Quote
  #5  
Old 30th October 2009, 09:24 PM
Dies Offline
Registered User
 
Join Date: Oct 2006
Posts: 4,754
linuxubuntufirefox
If you 'occasionally' delete /bin, how do you 'occasionally' recover from it?

More importantly though, if this is something that happens to you occasionally, then you'll have to forgive me for being honest when I say that I think you may be better off with an OS which doesn't allow or at least tries hard to prevent it's user from taking such stupid actions.
Reply With Quote
  #6  
Old 30th October 2009, 09:30 PM
Gödel Offline
Registered User
 
Join Date: Jul 2009
Location: London,England
Posts: 1,102
linuxfedorafirefox
try yum reinstall on a selection of the following rpms (might have to download them and do it from a rescue session)

alsa-utils-1.0.21-2.fc11.x86_64
bash-4.0-8.fc11.x86_64
coreutils-7.2-4.fc11.x86_64
cpio-2.9.90-5.fc11.x86_64
ed-1.1-2.fc11.x86_64
fuse-2.8.1-1.fc11.x86_64
gawk-3.1.6-5.fc11.x86_64
gettext-0.17-12.fc11.x86_64
grep-2.5.3-4.fc11.x86_64
gzip-1.3.12-9.fc11.x86_64
iptables-ipv6-1.4.3.1-1.fc11.x86_64
iputils-20071127-8.fc11.x86_64
kbd-1.15-7.fc11.x86_64
mailx-12.4-2.fc11.x86_64
net-tools-1.60-93.fc11.x86_64
plymouth-0.7.0-0.2009.05.15.1.fc11.x86_64
procps-3.2.7-27.fc11.x86_64
redhat-lsb-3.2-6.fc11.x86_64
rpm-4.7.1-3.fc11.x86_64
sed-4.2.1-1.fc11.x86_64
setserial-2.17-23.fc11.x86_64
util-linux-ng-2.14.2-11.fc11.x86_64

(i just did 'yum provides /bin/*' and parsed the output to get a shortlist)
Reply With Quote
  #7  
Old 31st October 2009, 08:25 AM
hotdox Offline
Registered User
 
Join Date: Oct 2009
Posts: 2
windows_vistaie
I have "./bin" dir as target for cmake. under root I do "make install/uninstall". Forget to exit I start "ccmake .", "./bin" was created under root and can be deleted under root only.
Now fedora couldnt be booted (it want /bin/sh).
The problem is notebook. It is not so easy to take hard drive. And there is no another fedora computer at this moment.
LiveCD doesnt see hard drive partition in regular mode.

Last edited by hotdox; 31st October 2009 at 08:29 AM.
Reply With Quote
Reply

Tags
or bin, recover

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot Recover From Suspend sirius56 Using Fedora 2 2nd December 2006 03:41 AM
recover fedora qkmbr22 Using Fedora 1 11th August 2006 08:01 PM
How to recover mysql ptsz Using Fedora 14 2nd June 2006 04:51 PM
Can't recover FC4 zabolots Using Fedora 2 5th December 2005 12:39 PM
help me recover!! cuchumino Using Fedora 11 20th September 2004 08:07 PM


Current GMT-time: 16:23 (Friday, 21-11-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Tsimlyansk Photos on Instagram - Maner Travel Photos on Instagram - Gonda Photos on Instagram