Skip navigation

Lion: problems with resume, reboot, move, delete ...

2500 Views 9 Replies Latest reply: Jun 21, 2012 7:03 PM by Shootist007 RSS
ctlow Calculating status...
Currently Being Moderated
Feb 5, 2012 8:38 AM

Some of the Lion problems I've been having (on 2 laptops: an older "Pro" and a new "Air"):

          -can't delete some files without password;

          -can't move some files or folders, only copy;

          -opening a program by clicking a data file also opens other data files from previous uses (not necessarily the most recent use);

          -rebooting opens several programs, always the same ones with the same data files (not necessarily from the most recent uses);

          -opening Safari opens several tabs always with the same sites;

          -Safari's History is gone, except for 2011 items, and new items are not being recorded;

          -Keychain issues, often needing repair;

          -MobileMe syncing issues.

 

Why and how do all of these things happen? How are they related to each other? Why should I have to tinker like this? And what would happen if I weren't geeky? (I've left my iMac on Snow Leopard, which is wonderful.)

 

Things are coming under control, but I have pulled all sorts of information from a variety of Web sources, none of which I found all in one place; hence this compendium. The exact sequence of what I did is lost, and what factors were the ones which worked I do not know. (Very time-consuming …) Comments welcome!

 

Should I just have re-installed Lion on the laptops?

 

====

 

Permissions:

A lot of these problems seem related to obscure permissions.

 

Here is a Terminal command which clears all ACLs, at least in the "Home" folder.

 

          chmod -R -N ./*

 

(But it generated this message on the MBPro:

chmod: Failed to clear ACL on file abc.numbers: Operation not permitted

chmod: Failed to clear ACL on file Commands: Invalid argument

chmod: Failed to clear ACL on file Notification: Invalid argument

chmod: Failed to clear ACL on file ubiquity.socket: Invalid argument

chmod: Failed to clear ACL on file Saved Application State: Operation not permitted

 

… partly perhaps because I had "locked" the abc.numbers file and the Saved Application State folder. I doubt if these things matter.)

 

Reboot while holding Cmd-R: this is something like "re-install" mode; when it opens, instead of choosing one of the options presented, open Terminal from the Utilities menu, and type "resetpassword". A program opens but don't reset the passwords, but rather reset all of the permissions, including ACLs, using the button at the lower right. Close it, close Terminal, and the reboot normally.

 

Safari:

File menu, Empty Cache and Reset Safari

 

Library (from Home folder, requires special steps to get to it in Lion, e.g. hold the Option key when at the Finder "Go" menu):

          Library/Preferences: moved then later deleted several plist files for offending programs, which I then had to reconfigure (e.g. Safari: reconfigure Toolbar, go through Safari Preferences …) -(they will all reappear instantly in some "default" state) -trying to delete the plist.lockfile as well caused problems - Trash wouldn't "empty" it ("in use"), but doesn't seem to matter.

          Library/Preferences, ByHost: see below

          Library/Saved States: see below

 

ByHost:

Some users opine to go to ByHost, close all apps, then "lock" (using the "Get Info" feature) the file com.apple.loginwindow{…}.plist. See this "discussion: https://discussions.apple.com/message/17213577#17213577

 

Saved States:

Some users say to delete "Library/Saved Application State" files (folders) before doing the above (https://discussions.apple.com/message/17499355#17499355 and http://applehelpwriter.com/2011/09/13/turn-off-resume-the-definitive-solution/). Then "lock" the "Saved Application State" folder. There may be some problems getting it to stay locked(?).

 

But I moved several  of the "Saved Application State" folders and I forget just what, but one computer seemed unhappy afterwards, the other fine. On the unhappy one, I replaced them (but not yet having locked the overall folder), and deleted some of the files inside the individual folders, like com.apple.TextEdit.savedState. (I suspect this paragraph is unimportant, but cannot be sure.)

 

Sharing: remember that the settings under System Preferences, Sharing, also matter. (So do the settings under "Accounts and Users", Guests.)

 

The "resume open applications feature" on reboot seems weird. If I say "no", I wonder if it wasn't bringing back all of the programs from some distant previous reboot.

 

Make sure that under System Preference, General, the option to restore on restart is unchecked.

 

I have learned that Disk Utility's "Repair Permissions" works for quite specific files and doesn't work for the Home folder.

http://support.apple.com/kb/HT1452

 

Make sure that there aren't numerous "Login" items under System Preference, Users/Accounts.

 

Changing permissions via the "Get Info" windows, and "applying to enclosed folders" can be a bad idea, especially if applied to something like the Home folder. Apparently it propagates ACLs too(?), although not visible there, and the effects can be undesirable.

 

Some permissions on "Get Info" panes have two "everyone"s, and the one with "Custom" settings can not be changed nor deleted.

 

Make sure all systems updates have been done (as usual).

 

MobileMe sync issues are another story - seems to be settling - perhaps related to "Permissions" issues above …

 

And what about Preferences, Caches? Anything there that would help with the above problems? What about the "root"(?) Library?

 

Some of the above tasks can be accomplished by 3rd-party software, but I'm getting there without using anything other than native Mac OS X Lion tools.

 

====

 

Anyway, as said, it's all settling down.

 

Comments/corrections most welcome.

 

Charles

MBPro, 2007 Dec. -24" iMac 2.93 GHZ, 4MB RAM, 2009 June - iPhone 3G, 8 GB RAM, 2, Mac OS X (10.6.5), Airport Extreme Base Station, USB printer, wireless printer

Actions

More Like This

  • Retrieving data ...

Bookmarked By (1)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.