1 2 3 Previous Next 31 Replies Latest reply: Jun 12, 2011 5:55 AM by Jim_B.
JTH. Level 1 Level 1 (0 points)

I've repaired the disk with this in single user mode: /sbin/fsck/ -fy, and it worked very well.

 

 

how do i repair the disk permissions in single user mode?

 

My install disc is 30 miles from me, and i wont be able to have it in the next couple months/year.

 

 

 

some answers to save ya time:

 

1. The reason i  need to repair is that, my frame rate drops alot and after a second it goes back to normal, and repeats, and repeats...repeats, all the time, on every game/application which got graphics. the whole computer fps drops. Dock, safari, literally the whole computer.

 

2. I know it's possible to do this.

 

3. I dont have my install disc.

 

 

___________________________________________________


MacBook, Mac OS X (10.6.7), 2GB RAM, 2.26 GHZ
  • 1. Re: Repair disk permissions doesn't work with disk utility  -- How to do it in single user mode with fsck?
    R C-R Level 6 Level 6 (14,175 points)

    You should be able to do this with diskutil using the "repairPermissions" verb.

     

    But I'm not sure why you think this would do any better job that by using Disk Utility from the GUI, or why you think a permissions issue would have anything to do with a "frame rate" issue, which from your description seems to be something other than a fps one.

     

    EDIT: Also, why are you using single user mode at all? If you need to repair the disk & don't have an alternate boot source like a system DVD, you can use safe boot to do that. It is dangerous to boot into single user mode unless you know exactly what you are doing. There are essentially no limits to what you can do from single user mode, including many, many things that might be the cause of your slowdown issues.

  • 2. Re: Repair disk permissions doesn't work with disk utility  -- How to do it in single user mode with fsck?
    JTH. Level 1 Level 1 (0 points)

    R C-R, I've seen on other, including this forum that it doesn't work to repair disk permissions while the OS is booted. That's why i suggested single user mode.

     

    How do i "diskutil using the repairpermissions verb"?

     

     

     

    Also, I've searched around google, apple discussions, macRumors, and other forums, and I found no thread/issue like my problem. If you search, you'll find 3 threads of mine regarding my fps issue, and no one could fix it.

     

    Now I am trying again to fix this problem, by repairing my disk.

     

     

    So how do i "diskutil using the repair permissions verb"?

  • 3. Re: Repair disk permissions doesn't work with disk utility  -- How to do it in single user mode with fsck?
    The hatter Level 9 Level 9 (58,880 points)

    But you could still clone your system and boot from that.

     

    Then use 3rd party tool also if you need something more or other than Disk Utility.

     

    MacFixit tested a drive (imaged sector) and tried Safe Boot and SUM and they don't do the same job when it comes to fixing directory errors.

     

    Free space 30% or less? free space is highly fragmented tends to become an issue when you get close to 20=25% depending on drive etc.

  • 4. Re: Repair disk permissions doesn't work with disk utility  -- How to do it in single user mode with fsck?
    Francine Schwieder Level 6 Level 6 (19,040 points)

    Evidently R C-R didn't make it clear, but you don't need the install disk to repair permissions. In fact, it is probably a bad idea to use it. Just launch Disk Utility, select the start-up volume in the left pane, and click the Repair Disk Permissions button in the right pane. The updates to Java did not update the database, so you will get a whole buncha "permissions differ" entries and "user differ" entries for different pieces of the Java stuff. That's meaningless.

     

    I doubt permissions are the problem.

    Francine

  • 5. Re: Repair disk permissions doesn't work with disk utility  -- How to do it in single user mode with fsck?
    R C-R Level 6 Level 6 (14,175 points)

    With all due respect, if you do not know how to use the info in man pages to learn how to run processes from the command line, you definitely should not be playing around typing any commands in the CLI while in single user mode!

     

    Please take this warning very seriously. Every command, verb, & option has a specific meaning (including the "-fy" ones for fsck) & in single user mode there are absolutely no safeguards to prevent you from making a mistake (even a simple typo or missing space) that could damage or remove any file, including the most basic system level ones that are otherwise protected. That kind of mistake could cause your Mac to stop working abruptly while executing some command, leaving you no way to recover besides by reinstalling the OS (from the discs you don't currently have available to you).

     

    Also, whoever said that it "doesn't work" to repair disk permissions while the OS is booted is wrong. In fact, Apple recommends that "when possible, disk permissions should be repaired while started up from a Mac OS X volume (hard disk) that contains Mac OS X," instead of from another source. I think either you or whoever posted the wrong info may have confused the limitations on a permissions repair with those on a disk repair.

     

    Regardless of that, even under the best possible circumstances, using the diskutil verb uses the same resources to repair permissions that Disk Utility running from the same HD does, so there is no reason to think the CLI version will do any better job than would Disk Utility.

     

    Finally, as others have said your issue is almost certainly not caused by a permissions issue. If by "frame rate" you mean the frame rate in a game, you need to look for graphics related issues. If instead you mean a system-wide lag before windows start or finish rendering, you need to look for other issues if Disk Utility's permission repair can't resolve them.

  • 6. Re: Repair disk permissions doesn't work with disk utility  -- How to do it in single user mode with fsck?
    R C-R Level 6 Level 6 (14,175 points)

    The hatter wrote:

    MacFixit tested a drive (imaged sector) and tried Safe Boot and SUM and they don't do the same job when it comes to fixing directory errors.

    But note that directory errors are disk errors & have nothing to do with permissions errors. All permission repair utilities use the same repair routines built into the OS.

  • 7. Re: Repair disk permissions doesn't work with disk utility  -- How to do it in single user mode with fsck?
    jsd2 Level 5 Level 5 (6,200 points)

    There are differences between the command line as run from single-user mode and the command line as run from Terminal after a normal boot.  It doesn't really matter here because as mentioned, there is no reason to use the command line at all rather than just running Disk Utility from your startup drive.

     

    But if you did want to use the command line, you normally can't repair permissions from single-user mode because that function requires supporting frameworks that don't get loaded in single-user mode. See V.K.'s comments in this thread:

    repair permissions in single user mode?

     

    If instead you wanted to repair permissions from Terminal while booted normally, I think you could do so with this command:

    sudo diskutil repairPermissions /

    However there's no reason to do this, since it's  no different  than just running Disk Utility's Repair Disk Permissions from the GUI.

     

    It's also unlikely, as the others have said, that your problem is related to a permssions issue.

  • 8. Re: Repair disk permissions doesn't work with disk utility  -- How to do it in single user mode with fsck?
    JTH. Level 1 Level 1 (0 points)

    Best answer I've ever seen, honestly.

     

    I believe you are right in what you say, which means I won't repair the disk.

     

    The remaining question now is, what can cause this fps problem?

     

    I can record with a screen recorder, to show you how the lag looks like or record the fps rate to show you how it drops. Or here's my description of it in my best way of explanation:

     

     

    First off, I start up the game, click start, joining a server, playing the game for couple minutes.... Then my computer gets a "burst" and starts to decrease to 55~, while my normal fps is around 70. The thing is, its not just the game that's lagging, its actually the whole computer. I see the same thing while moving around the mouse on the dock, scrolling down a page in Safari/Chrome/Firefox.

     

    It might be that I don't have any space left.. But I actually doubt it isnt that.

     

     

    I've got 250 GB HD, right now I only got 33 GB free space left.

     

    But I remember when I had 75~ GB free space, and the game still appeared.

     

     

    What can the problem be? I am highly appreciating any help or cause of my problem. I'm willing to pay someone couple dollars if I get the help. Thank you.

  • 9. Re: Repair disk permissions doesn't work with disk utility  -- How to do it in single user mode with fsck?
    ds store Level 7 Level 7 (30,305 points)

    JTH. wrote:

     

    First off, I start up the game, click start, joining a server, playing the game for couple minutes.... Then my computer gets a "burst" and starts to decrease to 55~, while my normal fps is around 70. The thing is, its not just the game that's lagging, its actually the whole computer. I see the same thing while moving around the mouse on the dock, scrolling down a page in Safari/Chrome/Firefox.

     

    You likely need to do a complete backup/zero erase/reinstall of OS X

     

    MacBooks are not "3D gaming" computer usually.

     

     

    Post your machine specs

     

    Apple menu > About this Mac > More Info

     

    Select All > Copy > Paste here (edit out the ID/UID info)

  • 10. Re: Repair disk permissions doesn't work with disk utility  -- How to do it in single user mode with fsck?
    R C-R Level 6 Level 6 (14,175 points)

    ds store wrote:

    You likely need to do a complete backup/zero erase/reinstall of OS X

    There is no good reason to do a "zero erase" for these symptoms. The "zero data" feature is a security one, intended only to prevent recovery of normally erased data from the hard drive by someone using specialized data recovery software, nothing more.

     

    It does not return the drive to "factory new" condition or somehow prevent the OS from misbehaving if for some reason the file system reads data from the wrong sector. It simply writes over sectors, replacing with binary zeros either the residual data pattern left there during manufacture or whatever data pattern was previously saved on them. Reading all zeros when some meaningful data is expected is no less an error than would be any other incorrect data pattern.

     

    Moreover, a zero data security erase does not in itself touch the all important sectors used to store the partition scheme or file system directory structures on the drive. If there is a problem in either of these areas then reformatting the drive with Disk Utility's Partition tab for the first, or repairing the file system structural damage with Disk Utility or (if required) with a more powerful utility like DiskWarrior for the second is the appropriate procedure.

     

    If the hard drive has no obvious difficulties & the Mac can boot from it normally, you can assume the partition scheme is fine. If Disk Utility's "Verify Disk" or "Repair Disk" finds no errors you can assume the file system structure is fine.

     

    Reinstalling the OS (in the normal way) will repair problems caused by missing or damaged system files. It is not generally necessary or desirable to erase the drive before doing this so-called "clean install," especially if you are going to restore files from a backup without carefully screening them for any problems that would return the HD to its former "dirty" state.

  • 11. Re: Repair disk permissions doesn't work with disk utility  -- How to do it in single user mode with fsck?
    R C-R Level 6 Level 6 (14,175 points)

    JTH. wrote:

    The remaining question now is, what can cause this fps problem?

    It depends on what you mean about it not being just the game that's lagging. You said you start up the game & join a server. This implies that you are playing a game that requires Internet access for updates. If only Internet related apps are affected, or slowdowns occur only while the game is running, your problem may be related to your connection to the Internet.

     

    If just one game is affected or running that one game is associated with the slowdowns, your problem may be in the game's installation or its code's compatibility with your hardware.

     

    General slowdown issues can be caused by any number of issues. If you have not already done so, start by running Disk Utility's "Verify Disk" step in the normal way. If it detects problems & you don't have an alternate boot source, try a safe boot as mentioned earlier to fix them. If that doesn't work, you will have to get a suitable DVD or try the Hatter's clone suggestion for an alternate boot source, or possibly purchase a Disk Warrior product with a disc capable of booting your Mac.

     

    If or once your drive's file system structures are OK, run Disk Utility's Repair Permissions step in the normal way. If your problems persist, you might consider reinstalling the OS & updating it to the current version.

     

    Regardless, the more info you provide (like the model number & OS version info ds store requested) the better we can help you.

  • 12. Re: Repair disk permissions doesn't work with disk utility  -- How to do it in single user mode with fsck?
    Tom Johnson Level 3 Level 3 (770 points)

    Get Applejack and run it to clear up cache and many other potential problems causing the slowdown.

    http://applejack.sourceforge.net/

  • 13. Re: Repair disk permissions doesn't work with disk utility  -- How to do it in single user mode with fsck?
    JTH. Level 1 Level 1 (0 points)


    MacBooks are not "3D gaming" computer usually.

     

     

    Post your machine specs

     

    Apple menu > About this Mac > More Info

     

    Select All > Copy > Paste here (edit out the ID/UID info)

    No, It's not just 3D games. It's also 2D games. Once when I watched a HD movie on vimex or something, probably youtube, then i saw that fps drop again. And that was a movie.

     

     

    Here's my specs:

     

     

      Model Name:          MacBook

      Model Identifier:          MacBook6,1

      Processor Name:          Intel Core 2 Duo

      Processor Speed:          2.26 GHz

      Number Of Processors:          1

      Total Number Of Cores:          2

      L2 Cache:          3 MB

      Memory:          2 GB

      Bus Speed:          1.07 GHz

      Boot ROM Version:          MB6*.****.****

      SMC Version (system):

      Serial Number (system):

      Hardware UUID:

      Sudden Motion Sensor:

      State:          Enabled

     

     

  • 14. Re: Repair disk permissions doesn't work with disk utility  -- How to do it in single user mode with fsck?
    JTH. Level 1 Level 1 (0 points)

    R C-R wrote:

     

    JTH. wrote:

    The remaining question now is, what can cause this fps problem?

    It depends on what you mean about it not being just the game that's lagging. You said you start up the game & join a server. This implies that you are playing a game that requires Internet access for updates. If only Internet related apps are affected, or slowdowns occur only while the game is running, your problem may be related to your connection to the Internet.

     

    If just one game is affected or running that one game is associated with the slowdowns, your problem may be in the game's installation or its code's compatibility with your hardware.

     

    General slowdown issues can be caused by any number of issues. If you have not already done so, start by running Disk Utility's "Verify Disk" step in the normal way. If it detects problems & you don't have an alternate boot source, try a safe boot as mentioned earlier to fix them. If that doesn't work, you will have to get a suitable DVD or try the Hatter's clone suggestion for an alternate boot source, or possibly purchase a Disk Warrior product with a disc capable of booting your Mac.

     

    If or once your drive's file system structures are OK, run Disk Utility's Repair Permissions step in the normal way. If your problems persist, you might consider reinstalling the OS & updating it to the current version.

     

    Regardless, the more info you provide (like the model number & OS version info ds store requested) the better we can help you.

     

     

    It's not only online games. I'm playing offline games aswell. Every game lags on my computer. What I remember, this fps drop problem haven't been a problem when i first got the computer. Im not sure, but I think so. I even saw the fps problem now while scrolling up the page, and I'm not even having a game running.

     

    An alternate boot source? Well, I've got a 2GB memory card in my USB-stick. Was going to make a Windows partition with boot camp, but bootcamp gave me some problem "Some files cannot be moved, blablablabla.".

     

    Searched around in this forum, people say that I should format it as a single journaled mac os x, but which it already is, so why should i format it to something I already have.

     

    My model info, etc, is in the reply to "ds store"

1 2 3 Previous Next