Interlocked operations in user-mode

Hi, I understand there isn't a interface for interlocked operations in user-mode.
I would appreciate any help on how to write an implementation by myself. This help should
also include how to compile assembler files in SOLARIS , or how to inline assembler in the
C sources themself.
Note that the compiler is GCC
Thanks!!!

>
I'm not sure I agree with this - the canonical example
of where atomic integer operations provide the "one
true way" is reference counting. I tend to agree with you here - indeed, for high-granularity objects even 8-byte light-weight mutex would be a significant penalty, and reference counting is indeed the natural place for interlocked
arithmetics. The point is, you probably do not want to have reference counting for small objects -
these days it might be cheaper to create multiple copies. Anyway, this has to do with design,
and good design should address the issue.
>
Similar discussions have been taking place in other
threads on other forums. The general feeling seems to
be suprise that interlocked integer operations are not
part of the solaris ABI, though the existence of
<sys/atomic.h> shows that they are part of the kernel.
While we are at it, even the membar APIs in
<sys/atomic.h> have use in user mode application code
- esp. w.r.t the double-checked locking idiom when
implemented on a multi-processor machine. It is
impossible, even with volatile, to ensure that double
checked locking will work on an SMP machine without
inserting memory barriers. Furthermore, even if it is
true that 99.9% of the cases are handled with the
existing threads library, that is not a sufficient
reason to exclude a well known and widely used
synchronization primitive from user mode. It is clear
that users of solaris, both on sparc and intel, want a
standardized user-mode atomic integer operations API.
Perhaps just a user level implementation of
<sys/atomic.h> would do.Once again, I would probably agree with the argument - provided, we are talking about single
platform implementation. Unfortunately enough, interlocked operations aren't part of any standard,
so there is no way to create any platform-independent solution (unless one wants to use
concurrency-supportive languages like Ada 95).
I'd vote for inclusion of interlocked primitives into POSIX standard - then it will become mandatory
for the platform vendors... I doubt, however, whether Micro$oft would support this gracefully - so
far they have screwed up everything they've ever touched... :(

Similar Messages

  • Single user mode, Lost Admin Account, and Disk Permissions

    Okay, so I have quite a few issues here. I will start from the beginning.
    About a week ago, I tried to install some updates and I could not get the Admin account to work. I went to the users profile and noticed my Admin account was not there. Did a quick search and found Apple's outline of how to fix this via the Operational DVD and the root user. Tried this and it would never work, because as soon as I restarted the computer or changed screens it switched back to a standard account.
    Next up, I went into the terminal to check the Admin User group. As it turns out it is not there. So I find a discussion on there that outlines how to rebuild this in single user mode and the Unix prompt. So, I print it off and try to restart in single user mode. After trying two different keyboards and a sum total of 8 to 10 times, I can't restart in single user mode to get to the Unix prompt.
    One last thing, last night I went into the Disk Utility on the start-up DVD. I wanted to check the Repair Permission log and I got the following:
    ACL found but not expected on "private/var/root/Library/Preferences"
    ACL found but not expected on "private/var/root/Library/"
    ACL found but not expected on "Network"
    Thoughts?
    Thanks for your help!
    tpp

    first, the ACL messages can be ignored. if you can't get to single user mode you can't fix your admin group. the only reasons that I know why you wouldn't be able to do that is
    1. a defective keyboard
    2. you have a firmware password set. have you? you'd have to turn it off before you can get to single user mode.
    lastly when you restart in single user mode make sure you press command+s right after you hear the chime. do not press it too early or too late. lastly, I'm not sure which instructions you've found to fix the admin group but I have them in this thread
    http://discussions.apple.com/thread.jspa?messageID=8011324

  • Single-user mode: How to mount and access an external USB drive?

    My MacBook Pro HD is acting up. Cannot boot normally or into "safe mode". Cannot reinstall OS without wiping out the HD. Need to recover some critical files but DiskUtil First Aid and Restore options cannot successfully complete. Problem traced down to "invalid node structure" which means I either have a hardware problem or my filesystem partition directory structure is corrupted. I need to recover some files that are not backed up (timin issue with my regular backup process).
    I can boot into single-user mode, mount the root file system (/sbin/mount -uw /) and can see/navigate the rot filesystem structure via good UNIX command line. Here's what I would like to do (in single-user mode):
    1. Mount an external USB drive (250 GB already formatted as Mac OS X Extended)
    2. Copy various files and/or directories from my HD to the external USB drive (UNIX cp command)
    I realize I could go spend $$ for the Disk Warrior or Data Rescue products (or something similar) that SHOULD help me recover my HD or files, but it seems silly to do this when I can see, touch and taste them from within single-user mode....
    Comments? Suggestions?
    TIA --
    Trent
    P.S. Once I've recovered my files, I'll try to reformat the HD and then reinstall the OS. And THEN go have Apple look at my machine (thank goodness for AppleCare coverage)!

    Resolution:
    1) Boot system in single-user mode (SUM) with external HD attached.
    2) Execute the following UNIX CLI commands once SUM boot process is completed:
    # fsck -fy
    # mount -uw /
    # mkdir /Volumes/target_directory
    # mount -t hfs -w /dev/diskXXX /Volumes/target_directory
    # cp -RXv /source_directory /Volumes/target_directory
    Where XXX is the device-level name for your external HD's data partition. In my case this was /dev/disk1s2. It may take some experimentation to identify this device name if your system has multiple HD's.
    3) Verify contents were successfully copied onto the /Volumes/target_directory.
    Comments and observations:
    - Do NOT use "/" as your source directory - cp will make a second (redundant) copy of /volumes/target_directory
    - I was able to successfully copy ALL files off my HD despite the fsck command's "invalid node structure" error message with this simple procedure. YMMV, depending on the state of your HD.
    - The repeated disk0s2: I/O error warnings displayed during the SUM boot process did not seem to have a negative effect on this procedure. I also received this same error warning intermittently as I navigated the mounted filesystem did not seem to be a problem, either. Again, YMMV.
    Commercial software:
    I downloaded ProSoft Engineering's Data Rescue 3 product (trial version) before spending $99 to attempt to recover my "bad" HD's data via mounting to a good system with FW target mode. It could not successfully complete its "QuickScan" process and immediately hung on block 0 of 390M during its "Deep Scan" process. The product did seem to function properly on an operational system. ProSoft's technical support was responsive and helpful but had no answer for my "Deep Scan" error.
    I did not attempt to use Alsoft's Disk Warrior 4 product. I could not find any trial software available and was reluctant to spend $100 based upon the mixed reviews and comments on this discussion forum as well as other reviews. Alsoft does claim to address the "invalid node structure" error in their marketing materials. Hindsight being 20/20 - I saved $100 by using this simple procedure.
    Final note:
    Neither Leopard nor Snow Leopard's installation DVD could recognize the bad internal HD when trying to do a reinstall. While DiskUtil was able to "see" the bad internal drive it immediately failed when I tried to do an "erase and format". Took the system to my local Apple store and the Genius ran a tool called "SMART Utility" from Volitans Software (www.volitans-software.com). SMART utility confirmed that my HD was bad so it was replaced. AppleCare pays for itself (once again!).

  • Single User Mode: Searching for root...

    My 2 year old unplugged my PowerMac iMac G5 (single) and now it won't start up.
    I was finally able to boot up off of Disk Warrior and replace the directory, but it won't start up past the gray Apple screen. The fan comes on after about 45 seconds and blows hard. Then, I get the circle with a line through it, in gray. I've never seen that on a mac.. the international "no" sign.
    When trying to start up in Single User Mode, I get a long list of stuff either disabled, not found, missing etc and then it starts writing to the screen every 30 seconds a line like:
    Still searching for root.
    I've tried pulling the back off, resetting the SMU, starting up in Safe Mode, etc.
    This has happened with storms before and I can usually get it back.
    I don't have original install discs.

    When you say you have "OSX" but not the "original install disks" do you mean the mac originally came with an earlier version and you don't have those disks, but you have a retail copy of Tiger?
    The circle with the slash means that Open Firmware cannot find BootX. Basically, I think this means that Open Firmware recognises the startup volume as such but cannot hand control to the operating system at all. BootX is what it uses to get the operating system going. Without this, as you've seen, you cannot make even single-user mode.
    What is SMU?
    *Is your data backed up? If not, prioritise that unless you can afford to loose it.*
    Does DiskWarrior repair permissions? If not and you have the Tiger retail version, try running Disk Utility to do that. I don't think this will help, but it won't hurt.
    Do you have another Mac? If so and you have the retail Tiger, you might be able to use Pacifist to replace BootX (in /System/Library/CoreServices). Alternatively, if the other Mac is running the same version of the OS and is also a PPC Mac, you could try copying the file from that machine.
    Before you do any of this (with the exception of the permissions repair), try to backup any data you need if that's at all possible.
    - cfr

  • Saving from Single User Mode???

    ok, so my computer *****, and i just want to reformat the drive and start from scratchville.
    is there any way to have a USB Thumbdrive or external hard drive attached and move files from single user mode to the thumb drive to store it. and then once i get my system disk reformat or reinstall the operating system.
    i cannot login to my computer any other way besides single user. i have run FSCK and nothing.
    all im trying to do is move files so i dont have to worry about losing all of my music, photos, and documents.

    WeeManG4:
    i cannot login to my computer any other way besides single user.
    Have you tried Firewire Target Disk Mode?
    cornelius

  • How to get to single user mode

    I aquired an old power mac G4 with an old account with 10.3.9 and an old administrator account.  It seems that procedures to remove the account start in Single user mode.  The computer won't start when holding down system - s.  The drive clicks a few times but the display goes to sleep from no video signal.  So How can I get to single user mode when the usual way don't work?

    The hard drive's directory may be dead, or it may have last been booted into Mac OS 9.  IF you are lucky, they did install Mac OS X on it, and that can be determined either through an Option key boot, or through an X key boot on a wired (not wireless) USB Apple compatible keyboard.   X key booting will only work if the X operating system is on the same partition, whereas Option key boot will reveal the Startup Manager, where you select the drive and hit the right pointing arrow for the drive partition that has Mac OS X.   Note this will not work on an original PCI PowerMac G4.   You may also need to replace the PRAM battery, a 1/2 AA 3.6V battery from Radio Shack before any boot sequence will work.  Once it boots into Mac OS X, Single User Mode should work.

  • Help needed: Lion boots only in single user mode after a kasperksy unsuccefull installation

    Hello everyboby,
    I used to be a Sun Solaris sysadmin with root privileges, but I can't fix the Macbook of my girlfriend...
    WHAT I WISHED:
    I wished I could restore the boot INI/config files of a MacBook (the old one, made of white plastic, not the pro, made of "steel"), so that Lion started at boot, like it used to do, before a "fatal" kasperky installation.
    WHAT HAPPENS:
    the macbook plays the chord, shows the Apple logo, seems to load the OS (Lion) and then switches to graphic mode, BUT the desktop (is "desktop" the name of the screen of the operating system, once it's fully started, like on a PC?) doesn't appear, only a grey screen, then nothing happens.
    I guess that probably Lion is fully running under the grey screen, but without the screen/video been correctly setup, I cannot interact with the notebook.
    I CAN boot in single user mode, mount the file system in writing mode and read and write the disk.
    WHAT HAPPENED:
    my girlfriend upgraded to Lion from Snow Leopard and used the notebook for a while (one month?), then she decided to upgrade kaspersky, but the installation failed somehow and now the notebook is stuck.
    WHAT I TRIED TO DO:
    - I read this: http://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPSystem Startup/Chapters/CustomLogin.html#//apple_ref/doc/uid/10000172i-SW10-BAJCGEGG
    - and that: http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/ man5/launchd.conf.5.html#//apple_ref/doc/man/5/launchd.conf
    - and removed from the disk all the folders and files dealing with startup items AND kaspersky, but nothing changed: at boot the grey screen appears and Lion's interface is not loaded (or if it is, it's not shown).
    - then I looked for some logs, found the kernel's one and found something that looks like an error message dealing with video inizialization... So, it really seems something is not working at video level.
    WHAT I AM ASKING YOU:
    some help, please... : is there anybody that can give me some specific advice on how the boot is done on a macbook with Lion? Are there some INI files I can copy into the macbook, so that it starts in grphic mode?
    whatever...
    thank you in advance!
    Dario

    Linc Davis wrote:
    I used to be a Sun Solaris sysadmin...
    Then you backed up
    I didn't: it's my girlfriend's notebook and she not using a timemachine external disk. She did all by herself

  • How to put database in single user mode?

    hi
    how to put database in single user mode?and what could be the impact of this to EBS R12 RUP 6.DB 10.2.0.0
    rgrds

    hsawwan wrote:
    Hi,
    Are you referring to restricted mode? If yes, please see these links/docs.
    Restricting Access to an Open Database
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10595/start002.htm#ADMIN11155
    Note: 1059291.6 - How to Put a Database into Restricted Mode and Verify Restricted Mode
    The impact is none of the users will be able to connect to the database/application (except for the sys user which can connect to the database). Usually, you would need to put the database in restricted mode when doing upgrade/migrate (i.e. you do not want to have active user sessions in the database during that time).
    Thanks,
    HusseinHi
    i want to mean:
    ALTER SYSTEM QUIESCE RESTRICTEDThe ALTER SYSTEM QUIESCE RESTRICTED statement may wait a long time for active sessions to become inactive. You can determine the sessions that are blocking the quiesce operation by querying the V$BLOCKING_QUIESCE view. This view returns only a single column: SID (Session ID). You can join it with V$SESSION to get more information about the session, as shown in the following example:
    select bl.sid, user, osuser, type, program
    from v$blocking_quiesce bl, v$session se
    where bl.sid = se.sid;I suspect all apps user can.t login to db?
    Edited by: new2appsdba on Aug 19, 2010 1:54 AM

  • Start SQL Server in single user mode with parameter -m doesn't work well

    C:\Windows\system32>net start mssqlserver /m "Microsoft SQL Server Management St
    udio - Query"
    The SQL Server (MSSQLSERVER) service is starting.
    The SQL Server (MSSQLSERVER) service was started successfully.
    C:\Windows\system32>sqlcmd -S . -e
    1> go
    1> select @@servername;
    2> go
    select @@servername;
    myserver
    (1 rows affected)
    1>
    As you can see, I'm still able to connect with sqlcmd prompt to SQL Server. According production doc of SQL Server 2014, it should not be conncting by sqlcmd. it shall only be connected by SSMS.
    below the original doc on msdn:
    Start SQL Server in Single-User Mode
    Provide Feedback
    Under certain circumstances, you may have to start an instance of SQL Server
    in single-user mode by using the startup option -m. For
    example, you may want to change server configuration options or recover a
    damaged master database or other system database. Both actions require starting
    an instance of SQL Server in single-user mode.
    Starting SQL Server in single-user mode enables any member of the computer's
    local Administrators group to connect to the instance of SQL Server as a member
    of the sysadmin fixed server role. For more information, see Connect to
    SQL Server When System Administrators Are Locked
    Out.
    When you start an instance of SQL Server in single-user mode, note the
    following:
    Only one user can connect to the server.
    The CHECKPOINT process is not executed. By default, it is executed
    automatically at startup.
    Note
    Stop the SQL Server Agent service before connecting to an instance of SQL
    Server in single-user mode; otherwise, the SQL Server Agent service uses the
    connection, thereby blocking it.
    When you start an instance of SQL Server in single-user mode, SQL Server
    Management Studio can connect to SQL Server. Object Explorer in Management
    Studio might fail because it requires more than one connection for some
    operations. To manage SQL Server in single-user mode, execute Transact-SQL
    statements by connecting only through the Query Editor in Management Studio, or
    use the
    sqlcmd utility.
    When you use the -m option with sqlcmd or
    Management Studio, you can limit the connections to a specified client
    application. For example, -m"sqlcmd" limits connections to a
    single connection and that connection must identify itself as the
    sqlcmd client program. Use this option when you are starting
    SQL Server in single-user mode and an unknown client application is taking the
    only available connection. To connect through the Query Editor in Management
    Studio, use -m"Microsoft SQL Server Management Studio - Query".
    Shawn

    Hi Shawn Xiao,
    For starting SQL Server instance in single user mode, we can add –m; parameter in SQL Server Configuration Manager, also we can run CMD with ‘Run as administrator’ and input the following statement.
    NET START MSSQLSERVER /m
    I do a test in SQL Server 2014 Express version, after starting SQL with Single User Mode, SQL Server will only accept one connection. If you connect to SQL Server with a user account, the following error will occur.
    Login failed for user ‘domain\username’. Reason: Server is in single user mode. Only one administrator can connect at this time.
    However, in your situation, you can connect to SQL Server and run T-SQL statement successfully, it can be due to connection with the administrator account in your sqlcmd.
    For more information, you can review the following article.
    http://zarez.net/?p=117
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Stuck keys in single user mode

    I am running Solaris 2.6. on an Ultra10. When in single user mode, I am getting "stuck keys". If I type a y to answer a question, I get yyyyyyyyyyyyyyyyyyyyyy. If I try to delete some of the repeated letters, the delete key removes them all.
    What's up with that? I am trying to perform a restore, and need to be in single user mode.
    Thanks for any help,
    Phil

    Welcome to  discussions, shaolson.
    Have you done anything recently that could have caused this?
    What Operating system do you have 10.2, 10.3, 10.4 ??
    1. Try starting up in safe mode, by holding down the Shift Key.
    2. else, if you can get the Install DVD in, startup using the 'C' key to boot into the Install DVD and run repair Disk from Disk utility. I know you have already tried fsck in single usermode, but the benefit of using Disk Utility is you can get useful feedback about what it has done.
    The procedure, in case you are unfamiliar with it is;
    To do this: Insert the Install Disk 1 into the drive and then select Restart; when you hear the chime hold down C key until the apple logo appears.
    This will take you to the installation software, but you do not want to install.
    Select your language, then go up to the top menu bar to Utilities in 10.4 (or Installer in 10.3) and navigate to the Disk Utility application.
    Select the start up drive, then go to the First Aid pane where you can click on Repair Disk.
    If it finds errors, repeat the process until it reports no errors.
    After these repairs, quit the application, and restart normally.
    3. If it still will not start up normally, restart with the Install DVD and do an *Archive and Install* to preserve your existing files. If successful, these will be located in a folder called Previous System on your hard drive.
    4. If Archive and Install is not possible, because you have insufficient Disk space to complete that operation, then you will need to connect your eMac to another Mac and and retrieve the important files via that means.
    regards roam

  • Stuck in Single User Mode

    eMac started up in single user mode one day. I ran fsck and it said the volume is okay. I tried to reboot. I tried to exit. All I get is:
    sh:/etc/profile:is a directory
    sh-2.05b
    Lots of needed files are trapped! What should I do next?

    Welcome to  discussions, shaolson.
    Have you done anything recently that could have caused this?
    What Operating system do you have 10.2, 10.3, 10.4 ??
    1. Try starting up in safe mode, by holding down the Shift Key.
    2. else, if you can get the Install DVD in, startup using the 'C' key to boot into the Install DVD and run repair Disk from Disk utility. I know you have already tried fsck in single usermode, but the benefit of using Disk Utility is you can get useful feedback about what it has done.
    The procedure, in case you are unfamiliar with it is;
    To do this: Insert the Install Disk 1 into the drive and then select Restart; when you hear the chime hold down C key until the apple logo appears.
    This will take you to the installation software, but you do not want to install.
    Select your language, then go up to the top menu bar to Utilities in 10.4 (or Installer in 10.3) and navigate to the Disk Utility application.
    Select the start up drive, then go to the First Aid pane where you can click on Repair Disk.
    If it finds errors, repeat the process until it reports no errors.
    After these repairs, quit the application, and restart normally.
    3. If it still will not start up normally, restart with the Install DVD and do an *Archive and Install* to preserve your existing files. If successful, these will be located in a folder called Previous System on your hard drive.
    4. If Archive and Install is not possible, because you have insufficient Disk space to complete that operation, then you will need to connect your eMac to another Mac and and retrieve the important files via that means.
    regards roam

  • Single user mode: Argument List is too long, PLEASE HELP

    Hey guys,
    I recently posted a topic asking if any1 knew how to delete all png files on the desktop,
    Nt many people replied,
    But anyway, I did some research and now I know how to do it,
    but in single user mode (cmd + S),
    When I typed in rm *.png
    While I ws on the desktop in single user mode,
    It came up saying Argument list too long,
    Does any1 know how to fix this,
    Plz reply ASAP,
    &amp; if possible addme on Skype mark.davidson19, it wld b extremely helpful

    If there are too many files expanded via the *.png wildcard, then the argument list length maximum can be exceeded.  The last time I checked, Mac OS X had a 256K line length limitation. (AIX was 1M, Linux 128K, Solaris 1M, Windows 8K (Cygwin env) - your mileage may vary with each operating system release).
    If you have too many files to expand on the command line, then you can delete them in batches.  There are several ways to do this
    cd ~/Desktop
    rm [a-m]*.png
    rm [n-z]*.png
    rm [A-M]*.png
    rm [N-Z]*.png
    Or finer increments.
    You could use something like
    find ~/Desktop  '*.png' -print0 -depth 1 | xargs -0 rm
    And you can also use
    find ~/Desktop '*.png' -depth 1 -delete
    This being a Unix environment, there are most likely a dozen additional ways to delete all the .png files and avoid command line length limits.
    As MrHoffman says, using rm and wildcards is a very dangerous thing to do unless you really REALLY know what you are doing.  If not, I strongly suggest having a recent full backup handy.  I actually suggest a backup regardless of how good you are in the Unix environment (I have multiple via different backup utilities preformed on a very regular basis;  years of experience has taught me you cannot be too careful with your data - it is worth far more than the cost of backup equipment).

  • Script for Single User Mode

    I manage two school Mac labs and have relied on ARD for many years!
    I have been unable to successfully write an ARD script to to force my lab machines to restart in "Single User Mode". This would allow me to run AppleJack 1.5 remotely.
    Any help would be appreciated.

    When you say you have "OSX" but not the "original install disks" do you mean the mac originally came with an earlier version and you don't have those disks, but you have a retail copy of Tiger?
    The circle with the slash means that Open Firmware cannot find BootX. Basically, I think this means that Open Firmware recognises the startup volume as such but cannot hand control to the operating system at all. BootX is what it uses to get the operating system going. Without this, as you've seen, you cannot make even single-user mode.
    What is SMU?
    *Is your data backed up? If not, prioritise that unless you can afford to loose it.*
    Does DiskWarrior repair permissions? If not and you have the Tiger retail version, try running Disk Utility to do that. I don't think this will help, but it won't hurt.
    Do you have another Mac? If so and you have the retail Tiger, you might be able to use Pacifist to replace BootX (in /System/Library/CoreServices). Alternatively, if the other Mac is running the same version of the OS and is also a PPC Mac, you could try copying the file from that machine.
    Before you do any of this (with the exception of the permissions repair), try to backup any data you need if that's at all possible.
    - cfr

  • Format mac hd in single user mode.

    Several have asked this question.  I haven't seen anybody actually answer it.  People start asking, "why would you want to do that?  You really don't want to, instead you should..."  I really want to.  I have explored all the options available.  I don't really want to get into why.  I just want to know how.  Please.

    As I attempted to suggest, solutions like Recovery Partition or booting from the installation cd are not available.  I have been working on this for some months. 
    For others in a similar situation, I find I can run diskutil by running these commands first
    mount -uw /
    launchctl load /System/Library/LaunchDaemons/com.apple.notifyd.plist
    launchctl load /System/Library/LaunchDaemons/com.apple.configd.plist
    launchctl load /System/Library/LaunchDaemons/com.apple.diskmanagementd.plist
    launchctl load /System/Library/LaunchDaemons/com.apple.securityd.plist
    launchctl load /System/Library/LaunchDaemons/com.apple.diskarbitrationd.plist
    Single User Mode boots onto the OSX Base System partition.  Since I want to format the Recovery Partition, the operation seems doable.  And once I have diskutil loaded into memory, formatting the OBS partion might be possible too.  Will work on that.
    In the meantime, How do I boot from Apple servers?

  • Loud Fan Noice, Single User Mode?

    My iMac makes really loud fan noises when it's on
    There's no problem with it, but the fan is running all time and making loud noises.
    So I looked for help, and some say about starting in single-user mode.
    What exactly is it and what does it do to my computer?
    Is it really necessary?
    iMac G5 PowerPC   Mac OS X (10.4.9)  

    "what exactly do i have to do for disk utility test ?
    i verified and i checked those permissions stuff
    but i dont exactly know what i'm supposed to do there"
    Did you do the above from your Tiger DVD?
    If you received errors did you click the Repair Disk button?
    Were there errors that the Utility could not repair? If so, then you will need to use a stronger utility programs. The top 3rd party utility programs that are favorites/recommended in these forums are the following:
    DiskWarrior
    Highly recommended for *directory damage* repairs.
    TechTool Pro
    Multi-functional utility.
    Drive Genius Multi-functional utility.
    You will need to make your own decision on which to purchase. Read up on them on their websites because each does something a little different.
    ================
    If you did not repair from your Tiger DVD:
    Repairing permissions from the Tiger DVD
    Boot up from your Tiger Install DVD while holding down the "c" key.
    Select the language you wish to use, and then choose "Disk Utility" from the menu bar.
    Your HD should appear in a panel on the left hand side of the window which opens. Select it and then click on the "repair disk" button in the right hand section of the window.
    If Disk First aid is able to complete the repair now click on the "Repair permissions" button.
    Once this process has been completed restart your computer.
    http://docs.info.apple.com/article.html?artnum=25751 About Disk Utility's Repair Disk Permissions feature
    TIP-You should Repair Permissions:
    After installing and/or updating an OS (Operating System).
    After installing software.

Maybe you are looking for