Retrieve Deleted Mac 10.4.8 /usr/bin Directory

  • Thread starter Thread starter 0rthodontist
  • Start date Start date
  • Tags Tags
    Mac
Click For Summary

Discussion Overview

The discussion revolves around the recovery of the deleted /usr/bin directory on a Mac running OS X 10.4.8. Participants explore various methods for retrieving the directory, including reinstalling the operating system and copying files from another installation.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant expresses concern over the deletion of the /usr/bin directory and seeks advice on recovery methods.
  • Another suggests creating a new partition or using an external drive to install a fresh copy of the OS and then copying the /usr/bin directory from it, noting the potential complexity of symlinks and hard links.
  • A third participant agrees with the idea of partitioning or using an external drive and mentions the use of a program like OnyX to rebuild system links, offering to assist with copying files from their own system.
  • One participant reports that they ultimately chose to reinstall the operating system as a solution.
  • A light-hearted comment is made regarding the use of the superuser account and the risks associated with using sudo to delete directories.

Areas of Agreement / Disagreement

Participants generally agree on the potential methods for recovery, such as reinstalling the OS or using another Mac to copy the directory. However, there is no consensus on the best approach, and the discussion includes varying opinions and suggestions.

Contextual Notes

Participants mention complexities related to symlinks and hard links that may need to be recreated, indicating that the recovery process could be intricate and dependent on specific system configurations.

Who May Find This Useful

Users of Mac OS X 10.4.8 or those interested in file recovery methods for deleted system directories may find this discussion relevant.

0rthodontist
Science Advisor
Messages
1,229
Reaction score
0
Through an incrediby boneheaded mistake, I have deleted my /usr/bin directory on my MacBook. Fortunately it only had a small number of programs that weren't there by default. Also, most of the GUI seems to run just fine without the bin directory, and the computer boots. But I do not know how to recover the directory. My best guess at this point is to solicit people I know who use macs to give me their /usr/bin directories. Worst case, I could reinstall the whole OS. But before I try that, is there any other way that I can get this directory?
 
Computer science news on Phys.org
If you have enough disk space, or a spare disk, you can create a new partition and install a fresh copy of the OS onto it, then try to copy /usr/bin from it. But watch out for links! An ls -l on mine shows a bunch of symlinks which you'd probably have to recreate by hand. And then you'd have to figure out if there are any hard links, and what they link to, and recreate those, too.
 
I think your best bet may be to try and ether partition your drive, or find an external drive and do a fresh system install, and see if you can salvage that /usr/bin you can maybe then se a program such as OnyX to rebuild the system links. I'd be happy to assist you in anyway, the ls command form my /usr bin yields a list of files much too long to post here, otherwise i'd show you what mine contains. But if you need me to try and copy mine, i'd be happy to help, I have a macbook with OS X.4.8
 
Well, thanks for the offer/information, but I ended up just reinstalling the operating system. It was a nuisance but it's back to normal.
 
As they say.. don't use the superuser account :wink:

You didnt sudo delete that dir did you?
 

Similar threads

Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 16 ·
Replies
16
Views
92K
  • · Replies 5 ·
Replies
5
Views
10K
  • · Replies 3 ·
Replies
3
Views
8K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 123 ·
5
Replies
123
Views
20K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
2
Views
6K
  • · Replies 27 ·
Replies
27
Views
19K