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

Similar Messages

  • 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)

  • How do I duplicate hard links when copying with Finder rather than making two copies of the file?

    I have 1.6 TB of Video on one external drive. All of this was imported using iMovie and lives mostly in iMovie events. I then decided I wanted to use Final Cut Pro X for some additional flexibility.
    I opened FCPx and imported the iMovie events and movies. As I expected, FCPx made hard links to the files in the iMovie events rather than wholesale copying the events into the original content area. I have found that it is much easier to keep all movie content on one disk rather than having is spread all over creation, so I am trying to make a copy on another larger drive.
    I am trying to use Finder to copy the files rather than some other more obtrusive option using the actual applications. The problem is, when I use the finder Copy function, all files that had hard links in the file system are now phyiscally copied twice and are actually duplicated on the new disk. This doubles the size of the the content on the new disk and completely ruins the reason for moving the files in the first place.
    Now that I have finally figured out what is going on, I guess I can figure out the proper Unix style commands in the Terminal to make happen what I expect, but I would much rather have Finder duplicate a link if it finds a link. I really want to be able to use iMovie or FCPx on the Event content and only have one copy of the content unless I want to make a modification in one or the other.

    Mark,
    I have had a similar problem lately.  I use rsync to perform nightly backups from one internal drive to another.  I noticed (after I started using Final Cut Pro X) that my backup drive had 300G more disk space allocated.  It was only after a long and painful debugging process that I figured out that FCPX had created hard links to my iMovie Events.  I don't have a solution to this problem yet but I wanted to at least mention that I have run into the same challenge.
    Regards,
    Greg

  • How to create hard links in the Finder?

    Does OS X provide any way to create hard links for files, or is using the Terminal and the "ln" command the only way to do so?

    You can create an alias in the Finder using File -> Make Alias or by command-option-dragging a file. An alias is similar to a hard link. If you're already aware of this and specifically want to make a hard link and not an alias, that's something you'll have to do in the Terminal.

  • Wrong number of hard links -

    I have rebuilt the directory using DiskWarrior from another drive and changed out a damaged USB2 circuit board.  I have mulitple boots and when I look at the drive from another booted drive, the Disk Utility says everything is fine. An earlier recommendation was to look for directory or hardware problems.  The SMART check on the drive says everything is fine.  The problem is when I check using the Disk Utility on the drive in question, it fails to verify and gives me the reason as wrong number of hard links AND the folders take up to 8 seconds to list what is inside.  Shouldn't DiskWarrior have taken care of this?

    I may have fixed the problem.  I booted into Single User mode and ran fsck -fy.  It found the mismatch in the volume directory and the hard links and corrected them.  It took quite awhile and the screen was zipping by with all of the file names as it re-catalogued. Had to be patient.  It then stated the volume was repaired successfully.  I ran fsck -fy twice more and both times it found everything to be good, the volume looked correct. 
    I then rebooted and the desktop came up fine.  I ran Disk Utility from the Drive (1) and it successfully verified the disk and said the volume was fine.  So, it all seems right now with one exception: 
    It still takes awhile for a folder to display what is within it.  After finally making the display, it then opens easily and quickly next time I open it.  This was the original problem that got me looking for the cause. 
    I was booted to a different drive, Disk (2), when I ran Disk Utility to inspect Disk (1) and to run DiskWarrior.  So, with Disk Utility on Disk (2) saying all is well and fsck saying all is well, and the SMART eval saying the drive itself is well, then I don't know why the folders take so long to display their content.  Could it be an affect of the new OS 10.5.8 on an older Power Mac G4 and there is no real problem?

  • Trying to shop for Verizon Home Control...can't find the link

    I was looking to add another camera and the remote control that shows up on the screen when I first set up my recording mode for my current camera.  The thing is, I can't seem to find the link.  I looked under SHOP, which is at the top of the page and there is no link to the equipment.  I tried a Google Search and again...there is nothing.  Did Verizon stop selling the equipment?  If so, how do I get a hold of another camera and that remote control?  Thanks.

    Do you currently have a working VHM&C system? If so then you can get remote from z-wave dot com, look under their "Remotes" section. The one Verizon sold is the Aeon Labs Minimote remote. Cameras will be harder to find. I don't know if non-Verizon cameras will work on the Verizon controler. Most Z-Wave products will work on any Z-Wave system. But Verizon LOCKED their cameras so they can't be used on other systems because Verizon won't release the username & password for the cameras.
    If you only have the basic VHM&C system (starter kit), GET OUT WHILE YOU CAN. The controler box and cameras can not be used on other systems but the rest can. Don't buy any more Verizon camers!
    If, like me, you have a lot invested in the Verizon cameras (I have 11), and you need more, look on eBay and Craig's List. That is where I got most of mine.
    There is one on Philadelphia Craig's List right now with 5 cameras and a bunch of other stuff for $300.

  • How do i find the link for my adobe revel photo gallery

    How do i find the link for my adobe reveal gallery?

    Have you tried to sign in with your Adobe ID at https://www.adoberevel.com/ ?
    If you need more help, please ask in the Revel forum.

  • I need to authorize my computer and I can't find the link for it. I went under Itunes store and there is no link "advanced" or "authorize computer"

    I need to authorize my computer and I can't find the link for it. I looked under Itunes store and there are no links that say "advanced" or "authorize computer"

    Authorization
    Macs:  iTunes Store- About authorization and deauthorization.
    Windows: How to Authorize or Deauthorize iTunes | PCWorld.
    In iTunes you use the Authorize This Computer or De-authorize This Computer option under the Store menu in iTunes' menubar. For Windows use the ALT-S keys to access it. Or turn on Windows 7 and 8 iTunes menus: iTunes- Turning on iTunes menus in Windows 8 and 7.

  • I havev installed a new Hard Drive on my laptop but cannot find my Photoshop Elements product box with the serial number to install Elements 10 or Elememts Premier 10. How can I find out the serial / installation codes for these?

    I havev installed a new Hard Drive on my laptop but cannot find my Photoshop Elements product box with the serial number to install Elements 10 or Elememts Premier 10. How can I find out the serial / installation codes for these? I saw a reply however, it was not my name and assumed it was for someone else. Now timed out. Can UI still have help on this matter please?

    If you registered PSE before, go to the main page of adobe.com, sign in and go to your account and you should find the serial number there in your purchases.

  • HT4972 Where can I find the link for updating to iOS5 version?

    I have iPad version 4.3.5(8L1) and want update to the recent version. As I understood, has to go to iOS5 first and then further to the latest version. Where can I find the link for updating to iOS5 version? Thank you.

    you have iOS 4... See Here...  http://support.apple.com/kb/HT4972
    OR...
    Connect to iTunes on the computer you usually Sync with and “ Check for Updates “...
    See the Using iTunes Section Here...
    How to update your iPhone, iPad, or iPod touch
    Note:
    The iPad 1 can only update as far as iOS 5.1.1

  • Trying to find a Passive Voice counter or detector for my daughters in school - they've been told to use MS Word - hoping I can identify same in Pages.  Any insight is greatly appreciated.

    Trying to find a Passive Voice counter or detector for my daughters in school … they've been told to use MS Word … hoping I can identify same in Pages.  Any insight is greatly appreciated.

    I take it you are objecting to the lack of passivity in my statements.
    I assumed nothing.
    My statement stands. Healthy humans are making themselves educational cripples by clutching at "smart solutions", which aren't.
    Ms Word manages to mark down the Gettysburg Address and Martin Luther King's "I have a Dream" Speech.
    It is no wonder people can no longer spell, find their way around, know where, or what anything is, let alone think for themselves, and get diabetes in their teens. All because they jump on cue when anyone says "Buy".
    Peter

  • Is there anyway to find a new font on Pages for iPad? The letters are hard like a rock when you use foreign languages like Thai. The fonts on device do not support foreign language.

    Is there anyway to find a new font on Pages for iPad? The letters are hard like a rock when you use foreign languages like Thai. The fonts on device do not support foreign language.

    varat_pond wrote:
    Anyone in Apple if you see this message
    These are user to user help forums.  To tell Apple you want more fonts for Thai, go here:
    http://www.apple.com/feedback/ipad.html
    But I suspect this is likely one of those things for which you will always have to use a full computer rather than a iPad.

  • I can't find a link for resetting security questions

    I Can't find a link for resetting the security questions      

    You would need to contact Apple Support to have your Security Questions reset:
    ACCOUNT SECURITY CONTACT NUMBERS
    Cheers,
    GB

  • Where can I find a link to download an English version of Premiere CS6 for Mac?  I have a license.

    Where can I find a link to download an English version of Premiere CS6 for Mac?  I have a license - can only find other languages, or the cloud. 

    http://prodesigntools.com/all-adobe-cs5-direct-download-links.html
    Make sure you follow the Very Important Instructions before downloading.

  • TimeMachine won't create hard links for replacement drive if not connected

    With TimeMachine, I backup two external drives (let's call them drive A and B). Recently, drive B broke and I restored the data on a replacement drive and gave the volume the same name as the broken one had. I made TimeMachine aware of the fact that this new drive corresponds to the old one by using the "tmutil -a associatedisk" command as described here: http://pondini.org/TM/B6.html
    When TimeMachine started the next backup, it did not perform all full backup of the new drive, though still way more than it should. So far so god.
    The problem is: if TimeMachine performs a backup while the new drive (the replacement of drive B) is not connected, it does not create the hard links for it. Drive A is not connected either, though hard links for it show up in the Backups.backupdb folder for this backup.
    If the replacement drive is connected the next time, TimeMachine will perform a full backup of it ... most likely because the previous backup does not contain any hard links.
    Is there a way how to fix this?

    paninaro95 wrote:
    (To run the command again is actually not necessary in my opinion as the man page for tmutil states that TimeMachine works with the UUID of the filesystem
    Correct.
    Et voilà 1: The first time, TimeMachine backed up only about 0.5 GB ... which is a fairly reasonable value that is likely due to the changes on the internal disk, not to my external replacement disk where about 170 GB are eligible to be backed up.
    Yay!   
    FYI, there are ways to tell what was backed-up.  The log messages show how much was copied from each drive.  The widget in #A1 of Time Machine - Troubleshooting displays the backup messages from your logs.
    In addition, see #A2 there for a couple of apps that will show the details -- which files were backed-up.
    Et voilà 2: When TimeMachine performed the next backup while the external drive was not connected, the hard links for the external data were created in that backup.
    Double yay! 
    To my understanding, I don't understand why renaming the drive makes a difference if TimeMachine uses the UUID of the filesystem.
    So I guess there must be a bug somewhere as "tmutil associatedisk" should fix the connection -- no matter what the drive name is.
    There must be some other connection, some vestige of the name left over somewhere. 
    I filed a bug report to Apple! :-)
    Great!

Maybe you are looking for

  • Purchase order triggering Sales order

    I have a business scenario where the sales process happens between two internal companies.  Company 'A' (ordering company) creates PO on Company 'B' (Supplying company).  Company B inturn creates the Sales order, delivery, ships and bills to Company

  • How to run Java application involving DOM3 in a command shell?

    Dear all, I am currently in a testing phase on my Java implementation (in JBuilder 2005) utilizing DOM3(built 2 .jar files from Ant via CVS thanks to dmbdmb). It seems working properly. To experiment its capability of handling big size files, it is e

  • Autotrace Output - Gets of data

    Hello guys, a little question regarding the counts of gets by "set autotrace on". I got the following statistic: 0 db block gets 154843 consistent gets 154812 physical reads I know db block gets + consistent gets = logical i/o But does are physical r

  • Best way to delete a .plist item?

    Hi everyone! I have found similar topics on this...but maybe someone can clear it up for me? I want to delete an item within a .plist, specifically to remove an item from the Dock by scripting. (See com.apple.dock.plist) If I use System Events I can

  • Distributed ci and database instance

    hello all,                we are having our ecc6.0 prod system insatlled with ci and database instance on same host now i want to split the systems ci and database. on different systems pls guide here how to proceed. regards, faraj