Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Is there an ap for finding/deleting corrupt files on OS X 10.7?

I seem to have a corrupt file(s) which cause my MacBook Pro to freeze inexplicably (and randomly) upon start-up. I've been told that this is a symptom of having a corrupt file.


Is there an an for finding/deleting corrupt files on OS X 10.7?


I'm pretty much bound to my computer and simply don't have the time to go through it manually.


Thank you.

MacBook Pro, Mac OS X (10.7.2)

Posted on Jan 7, 2012 6:35 AM

Reply
12 replies

Jan 7, 2012 6:54 AM in response to jake65

How can you tell a ‘corrupt file’ from a non-corrupt file?

‘I seem to have a corrupt file(s) which cause my MacBook Pro to freeze inexplicably (and randomly) upon start-up.’

I am afraid you were told erroneously. If this occurs upon logging in, then de-activate all non-Apple apps / utilities which start up at logging-in. Anti-virus software too. You describe a frequent behavior of all those, who have such outdated apps, some of them incompatible with Lion. Go to System Preferences/Users, select logged-in user (you), and deactivate all. Have a look at the attached screenshot. I have there only two non-Apple apps, one is Shades (for seting brightness of the external monitor, checked it first), the other one is HP driver activation.

User uploaded file

Jan 7, 2012 6:52 AM in response to jake65

Nothing I know of. You just have to run some troubleshooting steps to figure out what it is.


Is it crashing or just freezing?


Is there a CrashReport or HangReport in Console?


Try starting up in Safe Mode by holding down the shift key when you hear startup chime and hold until the gray screen. It will do some disk checks, so it takes a while. When it boots, it will show the login screen, even if you have it set for auto login.


See how it works in safe mode. Then restart normally.

Jan 7, 2012 7:02 AM in response to jake65

Yes, if you reinstalled by putting the new system aside the old one, the problems persist, because the new system imported the old settings and log-in apps, so this in NOT a solution. A solution would be, on thie route, to make an erase-and-install of Lion, which implies a solid backup of all data to be later restored.

You do not have a corrupt system, you probably have incompatible apps, which startup at login and badly behave in Lion. This is the typical situation.

Jan 7, 2012 7:13 AM in response to Cattus Thraex

Ran disk utility and got the below message:


Repairing permissions for “Macintosh HD”

Warning: SUID file “System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAg ent” has been modified and will not be repaired.


Serious problem? An issue which may have something to do with the freezing?


So far, I have deleted my non-Apple apps from logging in at start-up. No freezing problem so far...

Jan 7, 2012 7:22 AM in response to jake65

Please read this whole message before doing anything.


This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.


Third-party system modifications are a common cause of usability problems. By a “system modification,” I mean software that affects the operation of other software -- potentially for the worse. The following procedure will help identify which such modifications you've installed. Don’t be alarmed by the complexity of these instructions -- they’re easy to carry out and won’t change anything on your Mac.


These steps are to be taken while booted in “normal” mode, not in safe mode. If you’re now running in safe mode, reboot as usual before continuing.


Below are several lines of text in monospaced type, which are UNIX shell commands. They’re harmless, but they must be entered exactly as given in order to work. If you have doubts about the safety of running these commands, search this site for other discussions in which they’ve been used without any report of ill effects.


Some of the commands will line-wrap in your browser, but each one is really just a single line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, and you can then either copy or drag it. The headings “Step 1” and so on are not part of the commands.


Note: If you have more than one user account, Step 2 must be taken as an administrator. Ordinarily that would be the user created automatically when you booted the system for the first time. The other steps should be taken as the user who has the problem, if different. Most personal Macs have only one user, and in that case this paragraph doesn’t apply.


To begin, launch the Terminal application; e.g., by entering the first few letters of its name in a Spotlight search. A text window will open with a line already in it, ending either in a dollar sign (“$”) or a percent sign (“%”). If you get the percent sign, enter “sh” (without the quotes) and press return. You should then get a new line ending in a dollar sign.


Step 1


Copy or drag -- do not type -- the line below into the Terminal window, then press return:


kextstat -kl | awk '!/com\.apple/ {print $6 $7}'


Post the lines of output (if any) that appear below what you just entered (the text, please, not a screenshot.)


Step 2


Repeat with this line:


sudo launchctl list | sed 1d | awk '!/0x|com\.apple/ {print $3}'


This time, you'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. You don't need to post the warning.


Step 3


launchctl list | sed 1d | awk '!/0x|com\.apple/ {print $3}'


Step 4


ls -1A /e*/mach* {,/}L*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Sta}* L*/Fonts 2> /dev/null


Important: If you synchronize with a MobileMe account, your me.com email address may appear in the output of the above command. If so, change it to something like “user@me.com” before posting.


Step 5


osascript -e 'tell application "System Events" to get the name of every login item'


Remember, steps 1-5 are all drag-and-drop or copy-and-paste, whichever you prefer -- no typing, except your password.


You can then quit Terminal.

Dec 26, 2012 3:17 PM in response to Linc Davis

This is an old post and I am not the person who posted the original query, but I ran your terminal diagnostic and am hoping you are still attending to this forum. I have a mid 2011 macbook Air 11", 256 GB SSD, 1.8 GHz Intel Core i7, 4 GB 1333 MHz DDR3, Mac OS X v. 10.7.5 Lion. I have had various problems in my user homefolder for a while. I have gone through quite a few other troubleshooting and fixing steps, the most extensive following a posting here "Step by Step to fix your mac" by ds store in the Apple forums. These steps helped a lot. I did remove some 3rd party software as part of this process.


My computer is running well in general now, but one thing that has been a recurring problem is problems with move/cut-paste. I researched this online and ACL's being present where they're not supposed to be seems to be an issue. I have used terminal commands to remove ACL's, used Onyx to repair user permissions, rebooted with command-r to reset password screen and reset user permissions. They all help, but then a some point later on the problem recurs. When I run repair disk permissions with either disk utility or onyx I always get this message:

Repairing permissions for “maggieairHD”

Warning: SUID file “System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAg ent” has been modified and will not be repaired.

ACL found but not expected on “Users”

Repaired “Users”


Permissions repair complete

This ALWAYS comes up, even if I run it immediately after running it and haven't done anything else on the computer in between.


I created another user and did not have the same problems I was having at the time with some programs, although I haven't used it that much to be able to really compare. The home folder permissions repair in Onyx comes out the same in that user, though.


Here are my results from your diagnostic terminal commands:

Last login: Wed Dec 26 09:36:47 on console

Maggies-MacBook-Air:~ maggieair$ kextstat -kl | awk '!/com\.apple/ {print $6 $7}'

com.rim.driver.BlackBerryUSBDriverInt(0.0.68)

com.logmein.driver.LogMeInSoundDriver(1.0.0)

com.protech.NoSleep(1.3.1)

com.parallels.kext.prl_usb_connect(7.0

com.parallels.kext.prl_hypervisor(7.0

com.parallels.kext.prl_hid_hook(7.0

com.parallels.kext.prl_netbridge(7.0

com.parallels.kext.prl_vnic(7.0

Maggies-MacBook-Air:~ maggieair$ sudo launchctl list | sed 1d | awk '!/0x|com\.apple/ {print $3}'

Password:

com.parallels.vm.prl_naptd

org.x.privileged_startx

org.postfix.master

org.ntp.ntpd

org.cups.cupsd

com.vix.cron

com.sharpcast.xfsmond

com.parallels.desktop.launchdaemon

com.microsoft.office.licensing.helper

com.adobe.fpsaud

Maggies-MacBook-Air:~ maggieair$ launchctl list | sed 1d | awk '!/0x|com\.apple/ {print $3}'

org.x.startx

org.openbsd.ssh-agent

com.parallels.vm.prl_pcproxy

com.parallels.DesktopControlAgent

com.parallels.desktop.client.launch

com.maintain.CocktailSystemEvents

Maggies-MacBook-Air:~ maggieair$ ls -1A /e*/mach* {,/}L*/{Ad,Compon,Ex,Fram,In,Keyb,La,Mail/Bu,P*P,Priv,Qu,Scripti,Servi,Sta}* L*/Fonts 2> /dev/null

/Library/Address Book Plug-Ins:

RCFaxAB.bundle


/Library/Components:


/Library/Extensions:


/Library/Frameworks:

AEProfiling.framework

AERegistration.framework

Adobe AIR.framework

AquaticPrime.framework

AudioMixEngine.framework

HPSmartPrint.framework

NyxAudioAnalysis.framework

PluginManager.framework

RIM_VSP.framework

RimBlackBerryUSB.framework

iTunesLibrary.framework


/Library/Input Methods:


/Library/Internet Plug-Ins:

AdobePDFViewer.plugin

AdobePDFViewerNPAPI.plugin

Flash Player.plugin

Quartz Composer.webplugin

QuickTime Plugin.plugin

Silverlight.plugin

flashplayer.xpt

googletalkbrowserplugin.plugin

npgtpo3dautoplugin.plugin

nsIQTScriptablePlugin.xpt


/Library/Keyboard Layouts:


/Library/LaunchAgents:

com.maintain.CocktailPurgeInactiveMemory.plist

com.maintain.CocktailSystemEvents.plist

com.parallels.DesktopControlAgent.plist

com.parallels.desktop.launch.plist

com.parallels.vm.prl_pcproxy.plist


/Library/LaunchDaemons:

com.adobe.fpsaud.plist

com.apple.remotepairtool.plist

com.microsoft.office.licensing.helper.plist

com.parallels.desktop.launchdaemon.plist

com.sharpcast.xfsmond.plist


/Library/PreferencePanes:

Flash Player.prefPane

JavaControlPanel.prefpane

NoSleep.prefPane


/Library/PrivilegedHelperTools:

Google Drive Icon Helper

com.bresink.system.securityagent3

com.microsoft.office.licensing.helper


/Library/QuickLook:

ParallelsQL.qlgenerator

iWork.qlgenerator


/Library/QuickTime:

AppleIntermediateCodec.component

AppleMPEG2Codec.component


/Library/ScriptingAdditions:

MTL.osax


/Library/Services:

AScrEd • New Script for Frontmost Application.workflow

AScrEd • Open Application Scripting Dictionary.workflow

AScrEd • Open Dictionary of Frontmost Application.workflow

AScrEd • Open with AppleScript Editor.workflow

Audio • Encode to iTunes Format.workflow

Browse Movie Library.workflow

Browse Photo Library.workflow

Browse iTunes Library.workflow

Disk Item • Rename Selected Items.workflow

Disk Item • Set Spotlight Comments.workflow

Image • Add Metadata to JPEGs.workflow

Image • Change File Type.workflow

Image • Import into iPhoto.workflow

Image • Print Image Files.workflow

Image • Rotate Clockwise.workflow

Image • Rotate Counter-Clockwise.workflow

Launch Terminal.workflow

PDF • Encrypt File.workflow

PDF • Set Metadata.workflow

Terminal • Get Manual for Command.workflow

Terminal • Insert Current Finder Directory.workflow

Terminal • Insert Selected Finder Items.workflow

UNIX • Apply Command to Selected Items.workflow

UNIX • New Terminal Window to Insertion Location.workflow

iPhoto • Spotlight Search for Detected People.workflow


/Library/StartupItems:

Cocktail


/etc/mach_init.d:


/etc/mach_init_per_login_session.d:


/etc/mach_init_per_user.d:


Library/Address Book Plug-Ins:

.DS_Store

SkypeABDialer.bundle

SkypeABSMS.bundle


Library/Fonts:


Library/Input Methods:

.localized


Library/Internet Plug-Ins:

CitrixOnlineWebDeploymentPlugin.plugin

Google Earth Web Plug-in.plugin

WebEx64.plugin


Library/Keyboard Layouts:


Library/LaunchAgents:

com.apple.AddressBook.ScheduledSync.PHXCardDAVSource.7D3946E8-ADA6-4982-87CA-565 69B042BAC.plist

com.apple.FolderActions.enabled.plist

com.apple.FolderActions.folders.plist

com.google.keystone.agent.plist

com.macpaw.CleanMyMac.volumeWatcher.plist


Library/Mail/Bundles:


Library/PreferencePanes:

.DS_Store

Archives.prefPane


Library/Services:

.DS_Store

GraphicConverter.service

Sync with MacDropAny.workflow

Maggies-MacBook-Air:~ maggieair$ osascript -e 'tell application "System Events" to get the name of every login item'

NoSleep, iTunesHelper, Caffeine, Dropbox

Maggies-MacBook-Air:~ maggieair$

I have removed NoSleep, Caffeine, itunesHelper and Dropbox from login items before and didn't notice any difference, so I put them back. Some of these I know I don't want, like rim/blackberry, adobe AIR. Skype has never worked consistently on this computer. I don't use most of these Services, and I know I had trouble with some that were not compatible with Lion before. I am not using Parallels much now, have been thinking about taking it off as it uses a chunk of my SSD. But I don't feel confident about getting rid of .frameworks etc safely.


I am glad to remove anything I don't use if I know how to do it safely. I am willing to remove anything I do use if it's necessary, but obviously would prefer to find a way to keep things that I find helpful.


I appreciate any suggestions!

Is there an ap for finding/deleting corrupt files on OS X 10.7?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.