Deleted .DS_Store files, Now my drive is EMPTY! Help!

In Mac's Terminal application I used a command I found on Adobe's website to delete .DS_Store files because I thought I had some corrupt ones. The command was to delete all of them on the entire machine. Since they are not critical files, I figured what the heck. Well, maybe I typed something wrong. I know Terminal is very touchy (now I know). But all of the files on my external drive are gone. When I double-click the drive icon, the window shows 0 items. Can anyone tell me what went wrong and how to undo the problem. I think all the files are still on the drive, there's just no directory to view them - so it says there's 0 files. Help please!
Here's the commands I entered in Terminal. Note that the first line is the command that was supposed to erase the .DS_Store files. The second line asked for my password. When I entered it, it may have deleted the files, but then it gave me no new command prompt. So everything you see from the "sudo" on is things I entered trying to get a new prompt. So I think that's where I screwed something up.
neals-imacs-imac-g5-5:Clients iMac$ sudo find / -name ".DS_Store" -depth -exec rm {} \;
Password:
sudo
sudo ls
neals-imacs-imac-g5-5:~ iMac$ sudo ls
neals-imacs-imac-g5-5:Clients iMac$ sudo
usage: sudo -K | -L | -V | -h | -k | -l | -v
usage: sudo [-HPSb] [-p prompt] [-u username|#uid]
            { -e file [...] | -i | -s | <command> }
neals-imacs-imac-g5-5:Clients iMac$ sudo ls
Password:
By the way, the Adobe article that showed how to delete the .DS_Store files (in case that helps) is at: http://kb2.adobe.com/cps/168/tn_16831.html

I just did the same exact thing (but recovered!). I hope you didn't empty your recycle bin/trash yet! Your library information is there - get it out!
The instructions on the web are a bit obtuse - what you need to do is delete ONLY the "iTunes Music" folder within the default iTunes location; I deleted the ENTIRE "iTunes" folder and saw exactly what you do now. You need to restore the "iTunes Library.itl" and "iTunes Music Library.xml" files, and you'll be back in business.
Not sure how you'll recover if you can't get those files back...

Similar Messages

  • I deleted my Illustrator CS6 from my mac by deleting the files now I want it back but I can't?

    I deleted my Illustrator CS6 from my mac by deleting the files now I want it back but I can't get it because the Adobe application Manager says its up to date?

    erkiesweetart,
    You may also use the Cleaner Tool.
    http://www.adobe.com/support/contact/cscleanertool.html

  • System crash after deleting ".DS_Store" files?

    My Finder view options were a bit messed up, so I decided to follow some online advice and delete all ".DS_Store" files on my MBP. I followed instructions on osxdaily.com. Specifically, I typed the following command into Terminal:
    sudo find / -name ".DS_Store" -depth -exec rm {} \;
    After the command finished running I tried to restart the computer but it would just show the grey screen with the Apple logo and the progress indicator and not start up properly. I was able to run Disk Utility and verified the HDD. No errors were displayed. I chose "repair disk" anyway, but the computer still would not start up. Entering safe boot mode didn't work either. In the end, I chose to reinstall OSX 10.8 from the Internet. I didn't want to reinstall a backup from Time Machine because there were some files I hadn't backed up yet.
    Fortunately my MBP seems to be working properly again, but what's weird is that I had to reinstall every single application. The application files were still present in the application folder but their icons were greyed out and they wouldn't launch.
    Does anybody have any idea why this happened? Is it that dangerous to delete ".DS_Store" files? Should I use a different command? I would still like to get rid of those files so I can redefine a default view for all folders.
    And is it normal that if I reinstall OSX I need to reinstall all applications as well?

    Letting something arbitrarily delete every .DS_Store file on your computer invites bad things to happen.
    Running rm is dangerous as is--letting it run rough-shod all over your computer is infinitely dangerous.
    I don't know why there is a .DS_Store file  inside an app package, but removing it "damages" the App just as if some malicious code might write malware into the package. So, it is no mystery why they do not work anymore.
    Deleting specific .DS_Store files in folders is not normally a problem.
    If you have a problem in one folder that doesn't hold its settings, deleting the .DS_Store file is ok.
    Here's how I would do it, though:
    Open the folder and Cmd-F.
    If you don't already, use the Other... option in the Criteria popup to add the System Files and Visibility options to the criteria menu (check the box to include in men).
    Set the Search criteria to System Files are included and Visibility is invisible.
    Type ".DS_Store" in the search field. You should see the .DS_Store file for that folder at the top of the list, and then all the others in the subfolders.
    You can delete it from there.

  • How do you delete transparent file from hard drive?

    Hi. I lent my hard drive to my friend and came back with this weird file named "\". I want to delete this file, but when ever I put this in the trash and empty it, my computer starts lagging. (So I have to relaunch my Finder) This file doesn't allow me to rename it. If anyone knows the way to delete this, please tell me. Thanks

    Hi rebellium.rebel, 
    Thank you for your reply. 
    Another option to consider would be formatting (erasing) the hard drive, after moving your files off of it. 
    You can find a step-by-step guide for this in the below article, which are good general steps although the article references Aperture:
    Format external drives to Mac OS Extended before using with Aperture - Apple Support
    If the files reappear in the future, some of the steps in this guide may be helpful, such as checking with the manufacturer regarding this situation and whether the drive requires additional software:
    USB and FireWire Quick Assist - Apple Support
    Best Regards,
    Jeremy

  • Windows 7 backup deleted music files on external drive

    I did a Windows 7 backup to an external drive that also has my music library on it. My itunes folder still exists with all of the artist folders inside but all of my music files are now gone. Inside each folder are .ds_store files.  What happened to my music files?

    snives wrote:
    Yes, annoying, wish it would just try to play the **** song whether it had an exclamation point or not.
    It is trying to play the song, but it can't play it if it can't find it. If you were asked to get pasta from the top shelf and boil it, only to find the pasta wasn't where you were told it should be, you wouldn't be able to boil the pasta. Of course, you are a human so you could look on other shelves until you find the pasta, but a computer program doesn't know how to do this unless it has been programmed to do so.
    Also, if you have your iTunes library database file on your internal drive, and the Media folder on the external drive, you will have the problem you described when the drive is disconnected. If you put all of the iTunes files on the external drive and keep the iTunes Media folder along with the database file, it won't forget the location of your media folder. Of course, you won't be able to open your library at all unless you have the drive connected.

  • How to delete a file in the drive?

    I'm wondering which class should I check out for deleting files from the hard drive? Thanks!

    Hi ,
    Method delete() in File class

  • Deleted some files- now computer can't login/startup

    I was deleting things from my hard-drive a couple weeks ago, mainly just minor OS 9 applications or other seemingly unimportant files/ applications. The computer was fine and acting normally for a few days until i shut it down for the first time since deleting files. It has not been able to start up since- the gray apple screen appears and then the blue screen appears and it begins to boot-up or whatever but then it never gets past the last item to boot-up: "login window starting" It stays on this indefinitely. Im assuming that i just deleted some random thing that the computer needs to login...
    So ive tried starting it in single user mode and using disk utility and fsck or whatever and nothing works.
    I cant find my install/ restore disks for the life of me, but i do have access to a friend's disks- although his computer is a PowerbookG4 10.3.4 and mine is a PowerbookG4 10.3.9
    Anyone know what to do?
    should I and can I install my friends install/restore disks (although of a slightly older model) without deleting all my files?
    please help me if you can
    a million thanks

    cckc:
    Sorry you have to do it the old fashioned way: backup and re-install.
    +how much space does the host computer need to be able to hold my data?+
    That depends on how much data you have. If you have a lot of data you can use SuperDuper and save your Users Folder to a compressed .dmg. Another option will be to save to an external firewire HDD, if you have one. You would connect it to your friend's (the host) computer.
    can i just copy my whole harddrive onto it?
    You can, if there is sufficient space. However, if your OS is damaged, there is not much sense copying a damaged OS which will not boot.
    And do you think this is fixable without having the original install disks that came with my computer?
    If your friend's PowerBook G4 is older than yours the install software will not work. Even if it would, however, it may be a violation of the Software License Agreement which statesThis License allows you to install and use one copy of the Apple Software on a single computer at a time. This License does not allow the Apple Software to exist on more than one computer at a time...
    However, you do need install disks. Here are your options:
    1. You can call Apple Customer Support (not tech support) and request a copy of the original disks which came with your computer. You will need to have your computer Serial number available. There is a fee for this service.
    2. You can purchase a Full Retail Version of Panther. You can sometimes find it on eBay. Be sure to read documentation carefully and ask questions to be sure you are getting a Full Retail Version and not a computer specific version.
    3. You can purchase a Full Retial Version of Tiger and upgrade to a new OS. To install Tiger your computer will need to meet the minimum system requirements for Tiger.
    Tiger can be purchased from the Apple Store or from other online Retailers, or from eBay. Again, if you purchase from eBay be sure to read all documentation and ask questions to be sure you are getting a Full Retail Version.
    Please do post back with further questions or comments.
    Good luck.
    cornelius

  • I can't delete my files on mac computer or empty trash because it keeps saying certain file is locked

    I can't delete my files on desktop. Also my trash won't empty because it says I have a locked file.
    Thanks Michelle

    Hi, first try holding option or alt key when selecting Empty Trash.
    Solving Trash Problems...
    http://thexlab.com/faqs/trash.html

  • Hi why are my photos after downloading twice ,once in photo library and once in a file with the date why cant i delete a file its an iphone 4s please help

    why are my photos after downloadon twice one as photo library the other as a file with date how can i delete one file same pics

    Generally I would not use Facebook for sharing any photos, it compresses the photos substantially, and when you have shadows and dark colours you get visible "bands" where there should be subtle gradients, ie at sunsets and sunrises.
    It sounds like you are using two methods to upload to Facebook:
    1. Sharing from within Aperture, which basically syncs Facebook with your Aperture album, so any changes made at either end gets synced, hence the deletions from Albums, although the original file should still be in your library, just removed rom the album. It is like a playlist in iTunes.
    2. Exporting pics and uploading to Facebook from the browser.
    I am not sure how method 1 gets compressed, but I know that uploading hi-res jpegs to Facebook using method 2 results in poor quality images.
    I wouldn't even bother comparing option 1 or 2, and they will both be poor images once you view them on Facebook, as opposed to viewing uploaded images on proper image sharing / hosting sites.
    Your problem is not with Aperture, it is using Facebook for showing your work.
    If you export pics form Aperture at high res jpegs or TIFFs your images will be fine.
    If you insist to use Facebook as your way to share your work, then your workflow should be this:
    1. Right click images you want to share.
    2. Select Export version.
    3. Export as 100% size and ensure the export settings are set at 100% quality.
    4. Upload this pic into Facebook.
    This will get you the best image size and resolution on Facebook.
    See how you go.

  • Deleting photo file from hard drive

    Hello,
    I would like to be able to delete items (photos) from both the iPhoto library and my hard drive, but I don't seem to be able to. After I delete items from the iPhoto library, the files are still on the hard drive... (I did empty the trash and I did delete the items from the Library folder)
    Note: I just started using iPhoto. I already had a large (?) (9000+ items) library of photos that I keep on an external firewire hard drive. I did not use the "Copy files to iPhoto Library folder when adding to library" function, because a) I didn't want to wait for the system to copy all 9000 images, b) my internal hard drive isn't really big enough to store all these images and c) I'd like to keep using other software (Photoshop, stich software, etc.) to view, open and edit my images.
    I like using iPhoto, it seems faster than what I've been using and I like the clean interface, but if I can't use iPhoto to both view and delete images it might not be the software I'm looking for...
    My apologies if this question has been answered prior - I just searched and couldn't find an answer.
    Thanks for all help!
    PowerBook G4 12"   Mac OS X (10.4.9)   iPhoto 6.06

    Theo
    Unfortunately the "Show File" or "Show Original File" command doesn't seem to work when more than one file is selected... (the program just points to one of the selected files). Is there a workaround?
    No, I think you'll need to do it one at a time.
    How would I specify more than one external application (e.g. Photoshop and a panorama stitching app)
    No, you won't be able to set up more than one app at a time. The obvious one being to set up Photoshop. What I would do is export the pics for stitching and then import the resulting image as a new image - but that's just me.
    Saving an additional file is as simple either duplicating in iPhoto or using Save As in Photoshop and the importing the new file.
    You can download with Image Capture (in your Applications folder) and rename files with a batch renamer such as File List. iPhoto has no facility to rename files except on export as filenames are quite irrelevant within iPhoto. You can, of course, apply titles in iPhoto.
    As you say, perhaps the app is not for you - it's not right for everybody in every situation.
    Regards
    TD

  • Delete master file & versions fromhard drive ... completely!!!

    I just bought a new iMac yesterday and imported 12,000 pictures on the hard drive. Strarted my clean up using delete master image and all version ... files gets transfered into the aperture trash! ... i empty the trash ... files STILL REMAIN ON MY HARD DRIVE.
    Why is that?
    What am I doing wrong.
    Files were imported in a folder I CREATED ... I called it PHOTOS
    Thanks everyone for your help .. a little bit discouraged!
    Eric

    Don't be discouraged. This is a feature, not a bug. You may not like it, but you should know how it works. Complete instructions are found many places in the Help file. Search under "Trash".
    Deleting items in Aperture can be a four-step process. Each step but the last is reverseable.
    1. Mark photo as "rejected".
    2. Move photo or other items to the Aperture Trash. This is just a special container called "Trash".
    3. Empty the Aperture Trash. This moves the items out of Aperture's control, and put them in your system trash.
    4. Empty the system trash. This is done via Finder.

  • Deleted Java files, now no app opens on iMac

    I was running Mavericks on my iMac and a Java update wouldn't allow me to open certain programs. I then deleted all of my Java files from "user/library/...", restarted my computer and now all I get are error messages whenever I try to open an application, including finder. Is the only way to fix this to take it to a repair centre? WIll I lose all data or will they be able to save it if I give them a hard drive with the computer?
    Thank you

    What are the error messages, and what backups do you have?

  • Can't move/delete/create files on external drive created with windows xp

    A friend of mine bought a brand new Maxtor External Hard drive. I connected it to my Windows XP machine and formatted it with NTFS and dumped 80Gig folder of data onto it.
    When he took it home and plugged it into his Mac G5 running Tiger, it see's the firewire drive and accesses the folder, but he can't delete/move/rename/create files and folders on that drive.

    I came across the same problem as well recently. I have thought about it for a long time but did not put it into practice. Yesterday I did it.
    1) Copying my data in XP disk out into my Powerbook which cost me a lot of time to wait
    2) In Windows XP, using Partition Magic (7.0) to delete the partition format of that disk (using the other tools should work as well)
    3) Plug this empty disk into my Powerbook, then it prompted that I need to format it or something like that
    4) Using Disk Utilities to format the disk as MS-DOS File Systems (FAT 32)
    5) Moving the original data into the new formatted disk which could be read and written by both Powerbook and PC.
    Everything is done! This is only my personal experience, not a general solution plan for this problem. Cheers all!
    Powerbook G4 17"   Mac OS X (10.4.8)   1.67GHz, 2GB DDR2, 120GB, SuperDrive, 128MB ATI Mobility Radeon 9700
    Powerbook G4 17"   Mac OS X (10.4.7)   1.67GHz, 2GB DDR2, 120GB, SuperDrive, 128MB ATI Mobility Radeon 9700

  • ITunes 7.1.1 deletes music files on hard drive

    After updating iTunes to 7.1.1, I discovered that my playlist for "alternative" music had dissappeared. OK, no problem, the music files must still be in "music/itunes". Searched through this folder, but ALL the "alternative" music files were gone from the hard drive - all the music burned from CDs, even those purchased from iTunes! Used "find" in various ways, no luck. They are truly deleted.
    After hours and hours of reinstalling all the "alternative" music from backups, all was back as before. I shut my Mac down for the night. The next day I opened iTunes and the "alternative" playlist was gone again - and the music I had put back onto my hard drive had been erased again!
    I've tried starting iTunes from an old library - the playlists come back, but the music is not, just shows question marks. I've even done a virus check of the whole HD.
    As any ideas as to why this is happening, and what to do?
    Now I'm worried that other playlists, and their actual music files will be unpredictably wiped.
    Has this happened to anyone else's "Alternative" music files and/or playlists?
    I can't believe my music files have been erased off my hard drive - twice!
    Hard to trust iTunes now.
    G4   Mac OS X (10.3.9)  

    Thanks for the reply, it's appreciated.
    I usually turn off the computer each night. After updating to 7.1.1, just the "alternative" playlist and music files were gone from my HD. I re-installed the music files from a backup HD.
    To test things, I quit iTunes and then opened it again and looked in the music file on the HD, a number of times. The replaced music was still there.
    The next morning, I turned on the computer [Of course, I know that an off computer can do nothing ]. When it came time to open iTunes, again the music files were gone. I didn't check to see if the files were there before I opened iTunes, unfortunately.
    I did use Norton, but only AFTER I discovered the files were gone ...
    At the mo' I'm trying to recreate the problem to see if I can further narrow it down. Putting just one song into the Alternatives playlist, shutting down, starting up, etc. See if it's there. Repairing permissions with Disk Utility, etc etc.
    Again, thanks for trying to help!

  • Find and delete .DS_Store files

    I have a 2008 server where some mac clients connect. They create .DS_Store, ._.TemporaryItems and other files that starts with "._".
    I want to find them and delete them every night.
    What kind of script can I run.
    Thank you so much for your help.

    I know this is an old thread, I just came across this problem myself when I was moving my files back to PC from Mac.  Here is the approach I took:
    # Check to see what files are in the directory, you may want to save this to a variable or CS
    ls -Recurse
    -force |
    Where-Object {$_.Name
    -like "._*"}
    | Select
    Name, Directory,
    Length
    # See how many files exist that meet the criteria
    ls
    -Recurse
    -force |
    Where-Object {$_.Name
    -like "._*"}
    | Measure-Object
    # Use the -Force switch to get past the permissions restrictions on the hidden files
    ls
    -Recurse
    -force |
    Where-Object {$_.Name
    -like "._*"}
    | Remove-Item
    -Force
    # Rinse and repeat for the .DS Store files
    ls -Recurse
    -force |
    Where-Object {$_.Name
    -like ".DS*"}
    | Measure-Object
    ls -Recurse
    -force |
    Where-Object {$_.Name
    -like ".DS*"}
    | Remove-Item
    -Force

Maybe you are looking for