Accidentally deleted system component via terminal

While playing around with Terminal, I accidentally deleted a file within the ~/.MacOSX/environment DYLD_INSERT_LIBRARIES folder.
Now my computer refuses to login, and shows a pinwheel when I try.
I tried to reinstall Lion (keeping my current profile). However, there was no effect.
Is there any way to fix this, or is my only recourse to try and wipe the computer and do a clean install?

Install or Reinstall Lion from Scratch
If possible backup your files to an external drive or second internal drive.
Boot to the Recovery HD:
Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
Erase the hard drive:
Select Disk Utility from the main menu and click on the Continue button.
After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area.  If it does not say "Verified" then the drive is failing or has failed and will need replacing.  SMART info will not be reported  on external drives. Otherwise, click on the Erase tab in the DU main window.
Set the format type to Mac OS Extended (Journaled.) Click on the Erase button and wait until the process has completed.
Quit DU and return to the main menu.
Reinstall Lion: Select Reinstall Lion and click on the Install button.
Note: You can also re-download the Lion installer by opening the App Store application. Hold down the OPTION key and click on the Purchases icon in the toolbar. You should now see an active Install button to the right of your Lion purchase entry. There are situations in which this will not work. For example, if you are already booted into the Lion you originally purchased with your Apple ID or if an instance of the Lion installer is located anywhere on your computer.

Similar Messages

  • Accidentally deleted /System/Library/Framework/GSS.framework folder

    Hi, I am a Programming student. While I was installing some Libraries, I accidentally deleted /System/Library/Frameworks/GSS.framework folder. It's in the trash folder and I can't reverse my actions without administrative authentication? Will I be able to install the missing Libraries off the installation disk?
    Thanks

    Boot into your Recovery Volume and re-install Lion. It will be an install "in place" and shouldn't touch any of your files but hopefully restore the missingg directory. Also, hopefully you will be able to authenticate there.

  • Accidentally Deleted Calendar Event via Decline Button

    I have accidentally deleted a calendar event on more than one occasion due to having a calendar event open to view its contents and then accidentally touching the Decline button, usually when trying to scroll and putting the finger down too far (and to the right).
    Has anyone else done this? Any tips for avoiding this problem other than the obvious "be more careful" or "swipe towards the left of the screen"? Is there any way to get rid of the Accept,Maybe,Decline buttons or to add an additional confirmation dialog? The only way to recover after an accidental Decline seems to be to have the invitee or someone invited to the event forward the calendar event to me again so that I can accept it and have it put back on the calendar.
    The calendar events in question are those coming from a Microsoft Exchange server used at work. There is no issue with my own calendar events since these obviously do not have Accept,Maybe,Decline buttons.

    Thanks. I suppose my gripe isn't so much with Microsoft as it is with Apple's U.I. design that makes it too easy to make a change that deletes the event. For other places where there is a deletion, such as the trash symbol for mail messages, you are prompted with a secondary "Delete Message" dialog which is a configurable option "Ask Before Deleting" in the Mail preferences. I would like to see a similar option for the calendar events "Ask Before Declining" or something like that since a Decline deletes the calendar event and unfortunately it is too easy to accidentally hit that Decline button.
    So what is the best way to make a feature request to Apple such as the above? I'll consider the question answered if I know how to best make this suggestion to Apple.

  • Terminal help - accidentally deleted /System/Library/Extensions

    So I foolishly deleted my entire Extensions folder. I only trashed it though, not emptied. But I can't boot up. The only way I can get into anything is by using the retail Snow Leopard CD. From here I can get to the terminal.
    So...
    Can I restore my files from the trash via the terminal in the install cd?
    I've been trying some commands but no luck so far.
    Help is greatly appreciated.

    Perfect. It took a little tweaking. First I had to create the "Extensions" directory again, and even then it wouldn't let me move a whole directory, just individual files. The "-R" command worked that out though.
    The full code I ended up using was...
    cp -R /Volumes/"Hard Drive"/.Trashes/*/Extensions /Volumes/"Hard Drive"/System/Library/Extensions

  • In Snow Leopard, is there a way to import a wireless 802.1x System Profile via Terminal?  If so how?

    I am trying to deploy a Snow Leopard image via Casper running on a Lion server.  Everything works fine but I'd like to be able to have the image include a wireless 802.1x system profile without having to do it manually post.  I had it as part of my base image but for whatever reason it breaks during the process so I'd like to be able to create a task sequence to deploy it during the image process.  What's the best way to do this?  Thanks in advance!

    Hey SchenkerBob,
    It is possible to disable non-system fonts temporarily for all applications using the Font Book application. This article explains how to do so -
    Mac Basics: Font Book - Apple Support
    In particular -
    Disable and enable specific fonts
    In situations where you'd like to prevent a font from being available in applications, but you don't want to completely remove the font from your Mac, you can use Font Book to disable the font.
    In Font Book, click "All Fonts" in the Collection column.
    Click the name of the font in the Font column.
    Choose Disable "Font Name" Family from the Edit menu.
    Since it might be problematic to have to disable each font individually, you can create a collection of fonts and disable the collection. See the article for how to create a font collection -
    Organize fonts as collections
    When working with fonts, you may discover that you use certain fonts frequently, but rarely use others. To make it easier to find the font you are looking for, you can organize your fonts into collections.
    From the Font Book File menu, choose New Collection.
    Type in a name for the new collection.
    Click "All Fonts" in the Collection column.
    Drag the fonts that you want from the Font column onto the name of your new collection in the Collection column.
    You can then disable collections of fonts -
    You can also disable or enable all fonts in a collection: Click the name of the collection in the Collection column, then choose Disable "Collection Name" or EnableCollection Name" " from the Edit menu. 
    Thanks for using Apple Support Communities.
    Happy computing,
    Brett L 

  • Recover Accidentally Deleted Commands in Terminal

    I'm trying to do a certain set up on my Nintendo 3ds system using wifi on my Mac OS X desktop and in order to do it I'm suppose to put in certain commands in the terminal, but I made a mistake and pressed backspace and accidentally deleted my commands in my terminal box. I'm new to using terminal and I have not emptied my trash. What can I do to get it back?

    You typed something into the terminal and you have no idea where you got the original command from and you have no idea what you typed. Now the screen shot you post is pretty messed up. Not really sure what you expect especially if you wont answer the questions asked or try the steps suggested.
    The terminal can be a dangerous place especially if you are not sure what you are doing. Typing in commands that you have no idea what they do or where they came from is a recipe for disaster.
    Wish I had more
    Good luck
    regards

  • I have a problem when starting my Macbook. A message saying /Library/StartupItems/Icon has not been started due to not having the right security settings. So far it is not under HD og system folder, nor can't find via terminal. Any good suggestions?

    I have tried to delete it via terminal but no luck, have also run a disk permissions repair but no luck.
    I still shows when starting the mac or restarting it.
    Any of you have a good suggestion of what do??
    Just hate when it appears every time I start the Mac

    What items do you have in the Startup Items of your System Preference for your present login user?  Maybe removing and adding them back in will help?
    /Applications/iTunes.app/Contents/Resources
    includes the iTunes Helper application in case you need to reconnect it later.

  • I've accidentally deleted the System Administrator entry in Directory Utility. How do I recreate it?

    How do I recreate the "System Administrator" entry in Directory Utility. It was accidentally deleted.

    If you see this article: http://www.stupidlittleblog.com/2011/technology/apple/mac-os-x-lion/mac-os-x-lio n-root-user-sigin-error/#.To_DWOsb6jV
    I was having the same root user password login problem.
    So I followed the instructions in it, but instead of deleting "AuthenticationAuthority" setting for System Administrator, I accidentally deleted the whole "System Administrator".
    Therefore, I'll need to recreate the "System Administrator" entry in the Directory Utility. Maybe you can send me a screen capture of the System Administrator settings so I can try to recreate it. Or else if you know how I can recreate is (maybe from Terminal command line), it will be appreciated.
    Thanks.

  • Recover files deleted via terminal

    I used a terminal command and my dropbox, google drive folder and another documents were deleted from my computer. I dont know what the command means and dont know what to do. What i wanted to do whit this command was to resync a google drive folder because I had to reinstall google drive
    This is the command :
    find ~/ -maxdepth 1 -type d -iname '*google*drive*' 2> /dev/null -exec rm -Rf {} \;
    rm -Rf ~/Library/Application\ Support/Google/Drive
    I got it from this website http://www.knowitnot.com/2013/11/02/reset-google-drive-mac-os-x/
    Please help me i really need the info that i lost

    find ~/ -maxdepth 1 -type d -iname '*google*drive*' 2> /dev/null -exec rm -Rf {} \;
    rm -Rf ~/Library/Application\ Support/Google/Drive
    It is easier to start with the 2nd command.
    'rm' is remove, as in delete. the files in ~ (your home folder) -> Library (a hidden file so people do not go messing in it) -> Applications Support -> Google ->Drive (which is where I assume some Google Drive information is typically stored.
    The -f says remove the files without prompting.  The -R says recursive, so if the target folder (Drive) has any sub-folders, it will delete those as well, and keep walking down any additional sub-sub-sub-sub...folders until everything in "Drive" and under "Drive" is removed.
    So rm -Rf is a very dangerous command, especially if the target directory is something high enough up in the directory tree.  There have been people that have followed posts on the web that deleted their entire file system with just one 10 character rm command.
    The 'find' command will search the target folder and all sub-sub-sub...folders and using a huge array of selection options find files and allow other commands to operate on the found files.
    The target folder was your home directory (~ is the Unix shortcut for your home folder).
    The -maxdepth 1 say says stop at the current folder.  That is to say, do not look in any sub-folders.  A value of 2 would look in just the sub-folders under the target folder.  A value of 3 would go down another level, etc...  So -maxdepth 1 just looked for file in your home folder.
    The -type d said select folders (d for directory, aka a folder).  So it ignored anything that was not a folder.
    The -iname '*google*drive*' selected only folders that included "google" and "drive" in the name ignoring any upper/lower case differences.  So it was looking for your Google Drive folder in your home folder.
    The 2> /dev/null told the Terminal shell to send any error messages to the null device (basically hiding any error messages that would be issued).
    Now the fun part, as with the other rm command, the -exec rm -Rf {} \; deleted recursively all the files found by the 'find' command.  The -exec invokes the specified command (in this case rm -Rf) and substitutes the file name found for the {}, the \; is just to tell 'find' where the -exec command ends.
    So 'find' found your Google Drive folder in your home folder, then removed it and anything inside of it.
    Finally, the 'rm' command is final. There is no UnDo.  There is not Trash folder.  The file name is removed from the directory, the storage associated with the file is put on the file system free list, and the file is gone.  If another file needs storage, it will take that storage from the file system free list, and now the deleted file data is overwritten.  This is why a salvage recovery tool needs to be run as soon as possible after something like this happens to avoid stepping on the accidentally deleted files.  And even then it is often difficult to figure out if something on the free list is a file or just junk.
    The only comfort I can give you is that, you have joined a wide group of Unix uses that have done similar things, populated by users with a lot more command line experience than you, but they still typed the wrong thing at the wrong time and lost valuable data.  The lucky ones had a backup, or were able to find another copy, such as checking if the Google Drive online site keeps deleted files for a few weeks, just in case.

  • Help ... I've accidentally deleted all data of my user in the terminal. what to do? Can i undo the commands?

    Help ... I've accidentally deleted all data of my user in the terminal. what to do? Can i undo the commands?
    greetings from austria

    You cannot undo commands. When you delete/remove files with the rm command the files are not put in the trash where they could be recovered. They are gone.
    You should have your system backed up with Time machine and/or backup clone of your system. Use them to recover you files.

  • I accidentally deleted the systems file on my macbook.

    In preparation for upgrading from Leopard 5.8 to Snow Leopard I backed up my entire macbook system to an external hard drive.  Then I deleted some files prior to installing Snow Leopard but I accidentally deleted the systems files.  I can't boot the system now.  How do I resolve the situation?

    Thanks for the reply.
    The backup was via Time Machine.
    No, I have not tried booting from the SL 6.0 disc using the c key or Option/alt key.  When do I push the option/alt key? 

  • System Error While Deleting Software Component from Repository

    Hi,
    I have deleted datatypes,Interface types,Message types,Interface Mapping & Message Mapping also.
    When im deleting Software Component from Repository,
    I m getting the following System Error.
    [-9402]:System Error:AK Unexpected Strategy information.
    and im not able to delete.
    Plz Suggest me.
    Sree Ram.

    hi stree ram...
    u can get tth note directly form SAP service or go to transaction 'snote'....
    and ther u can import it from the menu bar thers a option of download/upload....just put in the note no.
    regards...
    vishal
    P.S : assign pts if answer found helpful

  • I have accidentally deleted a large number of develped images in Lightroom before I did a backup. I reimported the original raw files back into Lightroom hoping the develop settings would be re-established but no luck. Notice system mau have done an auto-

    Question?
    I have accidentally deleted a large number of develped images in Lightroom before I did a backup. I reimported the original raw files back into Lightroom hoping the develop settings would be re-established but no luck. Notice system mau have done an auto-backup as have an lrcat-journal file. Can I use this to restore my develop settings. I also have jpgs generated from all the deleted images.

    Hello,
    if you have a backup of your catalog you can do the following:
    1. Backup your catalog first
    2. Restore your backup catalog to some location
    3. Open your current catalog and select "files->import from another catalog".
    4. Select your backup catalog and your lost images. LR ask you if you want to overwrite the current settings or save them as a virtual copy.
    As an alternativ you can open your backup catalog, select the "lost" images and save the development settings as xmp sidecar fiels (using ctrl-s). Then open your current catalog, seletct the images and use "Metadata->Read Metadata from files".

  • I accidentally deleted a system file and my macbook pro will not boot

    i accidentally deleted some files and i am guessing now that they were system files. now my macbook pro will not boot. i need help please

    What OS version are you on? You're not running iOS 6.1.2 on it.
    If you're on 10.7 or 10.8, try the recovery option:
    http://support.apple.com/kb/HT4718

  • System won't boot after accidentally deleting /private/var/folder

    My Macbook Air is running OS 10.9 Mavericks, and I accidentally deleted the /var folder after seeing it taking lots of GB's from my storage.
    Safari, Mail and a lot of applications f'ed up itself, like safari saying it couldn't connect to the folder.
    I tried to put those folders back, and it gave me an Unauthorized Caller alert. I tried doing it again, and the folders froze, but I can still move my mouse. I restarted my computer by holding power 7 seconds, and tried to restart.
    Somehow, I saw the grey Apple logo startup screen, heard that startup chime, and 10 seconds later, it shut down. I tried doing it again many times, but to no avail.

    mikeearth wrote:
    So here's my problem. I'm using intel iMac and yesterday my Mac didn't boot( grey screen etc). I thought that it was because I used force shutdown. I used (option-cmd-r-p) to reset and after that, Mac booted up into some kind of "first time startup screen"... So I used installation DVD and restored my previous backup of the system by using the TM. After that the Mac booted and now all I get is folder with a question mark? Now what....?
    your profile suggests that you are running Tiger. if that is so, you shouldn't even be able to use time machine (introduced with Leo).
    can you please clarify ...

Maybe you are looking for

  • How to handle a phrase like a single word in a query rewrite template?

    Hi there, i would like to handle a case like this: "hewlett packard" printer I have a custom thesaurus where {hewlett packard} is a synonym of {hp}, and viceversa of course. Now, i can successfully find records like "hp printer" or "printer model hp

  • New itunes, no old itunes. How do I put the music on my ipod onto my itunes

    I recently had my computer cleaned out. When they clean it out, they clean it out. They ended up having to remove my music folders to clean it out. How can I put the music on my ipod onto my new itunes? Is there a way I can do this? Thank you.

  • Date time in top of Dash board CC&B screen

    Hi, Apparently in 2.1, top part of the screen used to show the date/time. Its not coming in 2.3.1. How to include date/time in 2.3.1 screen ? Ideally it's a configuration setting we're missing. Thanks in advance

  • Why does Premiere Pro not show in the Creative Cloud

    I just bought the montly membership, paid, got the confirmation, but still Premiere Pro does not show in my Creative Cloud options - under audio/video it only shows  and Photoshop, Prelude and Audition. When I use the link in the email confirmation t

  • Nudging text in navigation bars

    Hi I'm building a vertical navigation panel, and have aligned the text right But the text sits right on the border of the box, so when the box highlights on rollover, it doesn't look good Ideally I need to nudge this text slightly left, so there is s