Bad directory: link count 1

I just got a newly configured solaris 10 system and I tried to add a user using the smc tool. The system panicked before the tool finished the job, but the user seemed to be created. When I tried to login using the newly created user, I realized that the home directory for the new user is corrupted (the login was hanging). Here is what shows up when I logged in as root and listed the directory:
root@monterey # ls -li /home
total 1
         9 dr-xr-xr-x   1 root     root           1 Sep  8 09:12 hariYou can see that link count is showing up as 1, and I could neither list the contents of the directory nor remove it. (actually all operations seemed to be hanging) The inum of the directory itself is suspitious so I did a find and found the following regular file with the same inum:
root@monterey # ls -lid ./var/sadm/pkg/SUNWxwdv/save/pspool/SUNWxwdv/pkgmap
         9 -rw-r--r--   1 root     root         402 Jan 22  2005 ./var/sadm/pkg/SUNWxwdv/save/pspool/SUNWxwdv/pkgmapRunning fsck on the root filesystem doesn't generate any errors, though I ran it while it is mounted (the system administrators guide says it is ok to run fsck on / filesystem even if it is mounted). I am a newbie at solaris administration and I am stuck here, could anyone help me resolve this problem? Is there a way I can remove this directory and recreate it? Is there anther tool that I should run to find this corruption and fix it? Will running fsck after booting from a cd be any different?
Thanks a lot,
Hari

Running fsck on the root filesystem doesn't generate
any errors, though I ran it while it is mounted (the
system administrators guide says it is ok to run fsck
on / filesystem even if it is mounted).Where does it say this? It is not okay to run fsck on a filesystem mounted for writing.
I am a newbie
at solaris administration and I am stuck here, could
anyone help me resolve this problem? Is there a way I
can remove this directory and recreate it? Is there
anther tool that I should run to find this corruption
and fix it? Will running fsck after booting from a cd
be any different?It might. You may also be able to do a 'boot -b' which will stop before mounting the root filesystem read/write. You can safely fsck it at that time.
Darren

Similar Messages

  • How to proceed from Disk repair "invalid directory item count" "this disk needs to be repaired"?

    I'm trying to repair the hard drive on a MacBook running Mac OS X 10.6.8. To be honest I'm surprised the machine has lasted so long. It's very sluggish at the moment.
    When verifying the hard drive, I get these details:
    Verifying volume “Macintosh HD”
    Performing live verification.
    Checking Journaled HFS Plus volume.
    Checking extents overflow file.
    Checking catalog file.
    Checking multi-linked files.
    Checking catalog hierarchy.
    Invalid directory item count
    (It should be 37 instead of 35)
    Checking extended attributes file.
    Checking volume bitmap.
    Checking volume information.
    The volume Macintosh HD was found corrupt and needs to be repaired.
    "This disk needs to be repaired. Start up your computer with another disk (such as your Mac OS X installation disc), and then use Disk Utility to repair this disk."
    How should I proceed from here? Is the only path to use a mac OS X installation disk (which I don't have, so would have to source and borrow)?
    Many thanks

    Get the disk and insert it in the optical drive, then restart holding down the C key. You will come to an install screen to pick language. Unless you want some other language click inter. Then before you go any further, look to the top of the screen for a drop down utilities menu. Go to disk utilities open an select your Internal hard drive use repair option in the menu and repair drive . You may have to do this more than once. If this will not repair you drive,you will need a third party repair tool such as disk warrior or a new drive.

  • Link count question?

    I just took a look at ls -l and noticed that my link count was quite high on some entries. 
    note: Applications link count is 9
    anyone know why?  I don't know of any soft links to these directories.   Its nothing big i was just learning about this in my Operating systems class and was just curious
    drwxr-xr-x 9 me users 4096 Apr 15 21:31 Applications
    drwxr-xr-x 2 me users 4096 Jan 13 23:01 Desktop
    drwxr-xr-x 7 me users 4096 Apr 15 17:39 Documents
    Last edited by murfMan (2010-04-27 21:55:35)

    Also, it's hard links, not soft links, that are being counted here. Remember, given a directory foo/, the parent directory of foo/ contains a link ('foo'), foo/ contains a link to itself ('.'), and any subdirectories of foo/ contain a link ('..'). So yes, L=2+n, but remember: hard, not soft.
    Apparently, userspace-created directory hard links are forbidden because they can cause some seriously weird shit.

  • Disk Utility: Invalid Directory Item Count

    I have noticed a minor problem with my Mac Pro when restarting. Sometimes it will fail to restart correctly and simply displays the grey screen (but not the apple icon). Usually powering down the Mac Pro will get it to start up correctly. Not ideal, but manageable.
    I ran Disk Utility earlier to check what may be causing this issue and was given the following after Verifying Disk:
    Verifying volume “Macintosh HD”
    Checking file systemPerforming live verification.
    Checking Journaled HFS Plus volume.
    Checking extents overflow file.
    Checking catalog file.
    Checking multi-linked files.
    Checking catalog hierarchy.
    Invalid directory item count
    (It should be 33 instead of 32)
    Checking extended attributes file.
    Checking volume bitmap.
    Checking volume information.
    The volume Macintosh HD was found corrupt and needs to be repaired.
    Error: This disk needs to be repaired using the Recovery HD. Restart your computer, holding down the Command key and the R key until you see the Apple logo. When the Mac OS X Utilities window appears, choose Disk Utility.
    If I restart and launch Recovery HD will I lose any data or mess things up? The machine works perfectly fine once booted and I was none the wiser to this error until I ran disk utility. The timing is unfortunate as I have just ordered a replacement drive for Time Machine due to an unrelated external hard drive error, so I don't have a recent backup which is a bit unnerving.
    I want to run Recovery HD but I'm worried its going to cause a problem on an otherwise fully operational machine. I don't want to create an issue unless there is one (especially when I dont have a secure backup for a few more days). I also have Disk Warrior which has been fantastic in the past, but I cannot use it on the Mackintosh HD as it wont allow rebuilding of the startup disc.
    So my question is:  Should I run recovery HD now or just wait until I have a secure backup just in case it screws up? Is it possible Recovery HD may "create" a problem for me on my machine which runs and operates perfectly (minus the restart problem).

    I went into Recovery HD and ran Disk Utility. It verified and repaired the permissions without any data loss or problems. As a bonus the boot problem seems to have been recitifed.

  • Solaris 8: link count 0 on files. File still there , and not there.

    We often get into the situation that a file gets link count 0.
    -rw-rw-r-- 0 triacq trilogy 0 Nov 2 09:07 14810
    We cannot remove the file, we cannot link the file.
    We can open it and read and write to it, but we cannot open
    if with O_EXCL. It disappears after unmount/mount.
    This situation appears on a 6800 running 108528-17.
    We have another system running Solaris8 108528-24.
    There it often happens that a lock file gets into this situation.
    Any and all ides welcome.

    Hi,
    I too have been contacted by someone on a project team that has seen this very same thing. They however were not able to reproduce it.
    Do you have any clues as to what causes this? Can you reproduce it "at will"?
    Thanks,
    jpl

  • Community Members and Knowledge Directory Link

    Hi,
    I'm using the support centre nav scheme but can't get the 'Community Members and Knowledge Directory' link to appear (the one that appears like an extra community page).
    I've set the property in the Community Wizard but that doesn't work. And I've tried to do it by amending the code for the nav scheme, but can't get it to appear. It appears to be the way the page links are generated in the nav scheme code, but this link isn't a page. And I can't figure out how it's generated in the native nav scheme code.
    Anyone got this to work, or have any ideas about to get it work?
    Thanks in advanceDavin

    I believe the support centre navigation does not display the knowledge directory link. You would need to add it yourself. The GetCurCommPages call on CommunityNavPage will give you the Community pages inside the current community and the knowledge directory link. If you just want the knowledge directory link without the mypages, you would need to create it yourself. Look in GetCurCommPages in NavigationModel for example.

  • Pages, Subcommunities & Knowledge Directory Link of Parent Community

    Is there an easy way to get the pages, sub-communities, and knowledge directory link of a parent community? Essentially I need to get all the information that GetCurCommPages provides, but for a parent community.

    What did you do on the computer before this problem arose? Updating, cleaning, what?
    Have you tried the applications in another user account on the computer? Do so and if you dont' have an another account you can create one in System preferences > accounts. Tell us the result.
    As you have problems with TextEdit to I think you have a system problem affection the applications you mentioned. Do some maintenance like Repair permissions, delete cash etc. Onyx is a frre applications that you can download from http://www.titanium.free.fr/download.php

  • Create directory-linked user in GW2014

    Hi,
    I want to create a directory-linked user or enable this link after the creation of an user. Didn't find a sample in sdk-doc.
    Somebody can help?
    Have test to create a simple user with json and xml. Works fine after support from Preston.
    https://forums.novell.com/showthread...71#post2317671
    Thanks Heiko

    Sorry, typo,
    in the json/xml data, the ldapDn should be "ldapDn" not "ldapDN" It is case sensitive
    --Morris
    >>> Morris Blackham<[email protected]> 5/5/2014 8:57 AM >>>
    Once the user is created, you can set the directory link. You will have to supply the users directory DN and the GroupWise Directory ID (the name of the directory you created in GW Admin for the edir or AD directory).
    The URL would be ..../gwadmin-service/domains/yourdom/postoffices/yourpo/users/newuser/directorylink
    the data needed is:
    directoryId: yourdirectoryID
    ldapDN: cn=user,ou=blah,etc
    Then use a PUT method with the above URL and the above data as json or xml.
    Optional - If you want to then sync the directory data to GW, add /sync to the above URL, then use POST method (no data needed)
    Also optional - You can then publish all email addresses for the user to the directory using /publish added to the above URL and do a POST. This is providing you have the Publish EMail Addresses enabled on the Email Publishing tab of the directory definition.
    --Morris
    >>> hschoene<[email protected]> 5/5/2014 5:36 AM >>>
    Hi,
    I want to create a directory-linked user or enable this link after the
    creation of an user. Didn't find a sample in sdk-doc.
    Somebody can help?
    Have test to create a simple user with json and xml. Works fine after
    support from Preston.
    https://forums.novell.com/showthread...71#post2317671
    Thanks Heiko
    hschoene
    hschoene's Profile: https://forums.novell.com/member.php?userid=32236
    View this thread: https://forums.novell.com/showthread.php?t=476730

  • Solution for invalid directory item count, startup disk corruption and regular crashes

    Hi,
    My late 2006 MacBook (10.6.8) has recently started crashing quite frequently. The screen becomes dark and a multi-language dialogue appears stating that the computer must be restarted with the power button. When this occurs any audio which was playing begins to repeat/skip and the computer goes into complete lockdown. This is now happening perhaps twice a day or more under moderate use.
    This morning I ran 'Verify Disk' in Disk Utility and the process was stopped, stating that I had two 'Invalid directory item counts' and 'the volume Macintosh
    HD was found to be corrupt'. Here is a screenshot of the Disk Utility window:
    I have rebooted, run a software update and rerun the disk verification but to no avail. I also booted using CMD-S, advised by an older post in another forum which suggested using 'fsck -yf' which ran and stated that the disk had been repaired.
    I bought the MacBook second hand from an Apple dealer but it didn't come with an install disc so I am unable to reboot and repair the disk like that.
    My questions, therefore, are what does this mean for my computer in the future, will either of these issues cause me more trouble?
    What can I do about it without the install disc
    And are these issues directly related to the crashes? (I have been running the computer connected to an external drive and monitor - for watching movies)
    Thanks in advance for any help you can offer!
    Twitch

    Not much you can do without an install disc which can be purchased from Apple Store >  Mac OS X 10.6 Snow Leopard - Apple Store (U.S.)
    multi-language dialogue appears
    That is referred to as a kernel panic. OS X: About kernel panics
    Regardless of the kernel panics, you will still need the install disc to repair and reinstall OS X if necessary.
    And are these issues directly related to the crashes? (I have been running the computer connected to an external drive and monitor - for watching movies)
    Could be part of the problem.

  • Room Directory - links to room  is not working

    Hi All,
    we are using room directory to enter collaboration rooms.But the room directoy link is loading fine when we clicked on the top level navigation but if we click on the "Room Directory" link from detailed navigation area nothing happens showinf blank page after
    Any idea?
    Regards,
    Sreedhar G

    answered

  • Invalid directory item count

    Hi all
    I have a 2008 model iMac running Snow Leopard 10.6.4.
    After installing the most recent security update this weekend, the machine rebooted and hung on start up (it was stuck on the circular activity indicator / gray screen for well over an hour). In the end I killed the power and restarted. The machine came up straight away.
    I verified the disk using Disk Utility and it reported errors. So I rebooted into single user and ran fsck -fy, which fixed a whole bunch of stuff. Booted the machine and ran Disk Utility again, and it still reported errors!
    Back into single user and fsck -fy the disk until it reports no changes twice in a row. Start the machine and run Disk Utility and again it reports a problem!
    So now I am stuck in a loop:
    - Boot in single user
    - Run fsck -fy
    - fsck reports that 'Invalid directory item count' error and corrects it
    - Boot the machine
    - Run Disk Utility, the 'Invalid directory item count' has returned
    - Back to single user and it starts again
    Can anyone advise on this? Do I need to worry about that message? It's the same error every time - and every time I fix it in single user and it's back by the time the machine boots. Do I just need to go out and buy DiskWarrior? I'd rather not - on the surface there's nothing wrong with the machine and I never would've known if I hadn't run Disk Utility after that hang.
    Thanks in advance for any help

    Thank you for the reply.
    SMART validates as 'OK'.
    I will try the hardware test. The OEM hard disk that came with this machine failed last year and the hardware test identified that before it finally died. However that had a lot of problems leading up to it - the machine would hang and was often very slow - checking Console showed a lot of I/O errors. Fortunately nothing like that is happening this time.
    Hopefully this disk is OK. Thanks again.

  • Find: hard link count is wrong for /:

    I am facing this problem.
    I just installed arch linux on one of my box and I have got this error message if I do find on the root:
    find: WARNING: Hard link count is wrong for /: this may be a bug in your filesystem driver. Automatically turning on find's -noleaf option. Earlier results may have failed to include directories that should have been searched.
    I have searched through the forums and I found threads which discuss the same problem happened on /proc. But in my case it is /.
    After checking the link count for /, I didn't find anything strange.
    "ls /" shows 16 subdir in /.
    "ls -ld /" shows that / has 18 hard links.
    Is this a bug with find?

    Thanks cactus.
    You always reply fast don't you? 8)
    I seem to have find the reason from the findutils bug report mailing list.
    And this is a quote from the mail.
    Although find made me aware of the issue, the message it prints could be more useful: it doesn't show an accurate location of where the incorrect count exists (instead, it seems to use the path that you gave to find on the command line),...
    The original mail is here:
    http://lists.gnu.org/archive/html/bug-f … 00005.html

  • Directory Links across partitions are not allowed.

    See a lot of this in the crawl log - what is this error?
    it's the http://<portal><documents>/Forms/Allitems.aspx 
    No external is crawled in that content source
     how do I fix it ? 

    Hi,
    Based on your description, my understanding is that you got an error that "Directory Links across partitions are not allowed".
    For your issue, change the content source to crawl the individual BDC applications instead of the entire catalog:
    Here is a similar post, you can use as a reference:
    https://social.technet.microsoft.com/Forums/en-US/72a51853-50a8-4062-8d50-8b38d9ecd0d3/directory-links-across-partitions-are-not-allowedwhen-crawl-external-data-source?forum=sharepointsearch
    Here is a possible solution, refer to it:
    http://blogs.technet.com/b/speschka/archive/2013/02/04/resolving-the-directory-links-across-partitions-are-not-allowed-error-when-crawling-odata-bdc-sources.aspx
    Best Regards,
    Lisa Chen
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Lisa Chen
    TechNet Community Support

  • Find: WARNING: Hard link count is wrong for /proc/1: this may be a bug

    hi all,
    when i 'find / -name abc' , it say:
    find: WARNING: Hard link count is wrong for /proc/1: this may be a bug in your
    filesystem driver.Automatically turning on find's -noleaf option. Earlier
    results may have failed to include directories that should have been
    searched.
    my kernel is 2.6.25, filesytem is ext2/boot ext3/other
    thank you!
    Last edited by wonglaye (2008-05-30 14:34:21)

    I'll highlight the important parts from that link for you:
    Question wrote:I routinely use "find / -name ......", so how do I eliminate /proc from the search path?
    Answer wrote:
    I almost always use the "-xdev" option to prevent 'find' from descending
    into file systems other than the ones I explcitly specified, e.g.,
         find -xdev / /usr /var ...
    It's pretty rare that I actually want to search my entire system, which
    would include a news spool, a seldom used MS-Windows file system,
    possibly a mounted CD or DVD, ..., and of course /proc.
    why_no_proc wrote:The problem with the link count in /proc is that it changes every time a
    process is created or terminates, so the number of directories that
    'find' sees during processing might not agree with the link count that
    it read at the start. I admit that doesn't seem terribly likely unless
    the system is quite busy, but it can certainly happen.
    Last edited by dyscoria (2008-05-31 11:11:19)

  • [svn:bz-trunk] 20738: Check for bad directory-path argument to destination-include and throw an exception .

    Revision: 20738
    Revision: 20738
    Author:   [email protected]
    Date:     2011-03-09 13:22:36 -0800 (Wed, 09 Mar 2011)
    Log Message:
    Check for bad directory-path argument to destination-include and throw an exception.
    Modified Paths:
        blazeds/trunk/modules/common/src/flex/messaging/config/LocalFileResolver.java
        blazeds/trunk/modules/common/src/flex/messaging/errors.properties
        blazeds/trunk/modules/core/src/flex/messaging/config/ServletResourceResolver.java

    Hi Matthias,
    Sorry, if this reply seems like a products plug (which it is), but this is really how we solve this software engineering challenge at JKI...
    At JKI, we create VI Packages (which are basically installers for LabVIEW instrument drivers and toolkits) of our reusable code (using the package building capabilities of VIPM Professional).  We keep a VI Package Configuration file (that includes a copy of the actual packages) in each of our project folders (and check it into source code control just as we do for all our project files).  We also use VIPM Enterprise to distribute new VI Packages over the network.
    Also, as others have mentioned, we use the JKI TortoiseSVN Tool to make it easy to use TortoiseSVN directly from LabVIEW.
    Please feel free to contact JKI if you have any specific questions about these products.
    Thanks,
    -Jim 

Maybe you are looking for

  • Creative cloud won't remove my credit card, and now it won't let me cancel! How do I get off this ride?

    I first tried to remove my credit card because I no longer want that card charged, but the card keeps coming back. So I decided, after all the trouble I've had with Dreamweaver crashing and Photoshop throwing up 'welcome screens' and all my settings

  • Inconsistencies between Balance and Line items

    Hello masters! I found some inconsistencies betwen balance and line items. I tried to solve the problem using  FAGLF03 and RFINDEX (when executing SAP retrieved: "New GL is active. GLT0 can not be adjusted") but both did not work. We have never gone

  • Can't get a clip to behave as Dual Mono

    FCPX 10.0.9 is refusing to treat just one of my clips as dual mono. When I right-click, show in timeline, it opens in a timeline with a single audio track showing. For all the other clips / projects, right-click -> show in timeline reveals two separa

  • Preload file connection

    I have developed my own exception class by extending Exception class. I have also created delegated methods from Exception class. Based on the severity of the error I like to write to different files and DB. The write to file methods called in the ex

  • Cannot pair iPhone with hands free car system

    I am having trouble with my Merecedes recognizing my iPhone. I paired it and the phone is "authorized" with the car, but when I try to connect the two, the screen for the phone flashes and then disappears saying "no phone". It worked fine with my Bla