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)

Similar Messages

  • 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

  • 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

  • HT204088 I am receiving unauthorised billings for purchase from application Kingdom Age from seller Funzio, Inc .  I can't find a place/link to cancel the billing neither report this problem. The link REPORT A PROBLEM only links you to Apple Store without

    I am receiving unauthorised billings for purchase from application Kingdom Age from seller Funzio, Inc .  I can't find a place/link to cancel the billing neither report this problem. The link REPORT A PROBLEM only links you to Apple Store without a hint/directions whre you can report the problem.
    I've been surfing all parts of the website and didn.t find a manner to REPORT A PROBLEM with purchases on my behalf not authorized.

    Hi..
    Just to be on the safe side if you have not already changed your Apple ID password, probably should do that.
    How to change your Apple ID password
    And you can use the email form for contacting Apple here > Apple - Support - iTunes Store - Contact Us

  • The message "A problem has occurred trying to process your request. Please try again later. We apologise for any inconvenience this may have caused." is displyed when I try to log on to my internet banking. Please can you tell me why?

    Since upgrading to the latest version of Firefox, I'm now getting the message "A problem has occurred trying to process your request. Please try again later. We apologise for any inconvenience this may have caused." when I try to log onto my internet banking site. This occurs after going thru the first two steps of the login process. I don't get this problem when I login to all my other bookmarked sites, or when I use Internet Explorer. I'm using Windows XP. Any suggestions? (Note: I've just reloaded version 6 of Firefox, but it's not made any difference.)

    See here  >  http://support.apple.com/kb/HT1527
    From Here  >  http://support.apple.com/kb/TS1368
    More info here  >  http://www.apple.com/support/itunes/downloading/

  • ITunes play counts are wrong. How can this be fixed?

    I like managining my play counts, since I use a couple of smart playlists based on playcounts. However, I have this issue that I can't honestly seem to find a resolution to online. I see users with this problem, but no resolutions. Whenever I have to sync my iphone to itunes, it ends up jumbling up my play counts for some reason.
    Example: If I have song A, that I've played 5 times previously. I play it 3 times, then sync my iphone, it'd end up with 13 plays (5 plays previous, then 5 plays again, plus the three extra plays.) I'll have song B, with 0 plays. I play it twice, sync again, and get 0 plays for the song.
    Can this be fixed? I want song A to have 8 plays in iTunes/iphone, and song B to have 2 plays. This does not make any sense. I'm confused. I've heard it started with iTunes 8, but I can't downgrade since my iphone is on the latest firmware.

    What should be happening is that each time you sync the device the number of plays made on the device since the last sync are added into iTunes as a global record. This system should be able to accurately support multiple devices. Because smart playlists can use play count as a parameter the devices must record both the current "total" and "device" play counts.
    The first suggested fix for anything a bit random like this is to restore the device in the hope that it will just go away.
    tt2

  • Can't find a working link to the site for a user's manual for the MuVo T200 (4

    Have spent days looking for this. Didn't get any kind of disk with the player. Feels like there should be more I can do with this device, but without instructions, I'm flying blind.Any help appreciated.

    Sounds like the player that you bought was not purchased as new. Have you tried to contact Creative customer service to see if they might be able to supply you with a copy of the operating instructions? You probably don't need a CD since the player works as a USB mass storage device.

  • How to hard link a symlink?

    I'm looking for a way to create a hard link to a symbolic link in OS X 10.8 aka Mountain Lion.
    Here's a brief illustration (inode numbers shortened for easier digestion):
    $ echo "Hello" > file
    $ ln file hardlink
    $ ln -s file symlink
    $ ln -s nofile dangling-symlink
    $ ln symlink redirected-hardlink
    $ ln dangling-symlink symlink-hardlink
    ln: dangling-symlink: No such file or directory
    $ ls -liog
    total 40
    458 lrwxr-xr-x  1   6  8 Jan 00:54 dangling-symlink -> nofile
    433 -rw-r--r--  3   6  8 Jan 00:53 file
    433 -rw-r--r--  3   6  8 Jan 00:53 hardlink
    433 -rw-r--r--  3   6  8 Jan 00:53 redirected-hardlink
    456 lrwxr-xr-x  1   4  8 Jan 00:53 symlink -> file
    So the inode ids for "file" and "hardlink" are the same, as one would expect.
    The inode id for "redirected-hardlink" is the same as those two, meaning the hard link has dereferenced "symlink", rather than linking to it directly.
    Since "dangling-symlink" can't be dereferenced, my attempt to create a hard link for it fails.
    Just as well, as that's not what I want anyway—what I do want is a hard link to the actual symlink, i.e. for "redirected-hardlink" to point to inode 456, not 433. And for that last command to not fail, but instead produce a hard link with node id 458
    I know this is possible in Linux and FreeBSD (the former by default, the latter via `ln -P`), but so far have failed to find a way to achieve the same in OS X.
    Any suggestions?
    I need something that works without installing additional software—code that can be made to run on a standard installation plus Xcode is fine.
    Many thanks in advance for any pointers!
    Message was edited by: Ronald Jore Fixed typos.

    Thank you for your quick response, BobHarris, much appreciated.
    BobHarris wrote:
    link() in the system call that implements hardlinks
    man 2 link
    <https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/ man2/link.2.html>
    link() will resolve and follow symbolic links contained within both path1 and path2.  If the last com-ponent component ponent of path1 is a symbolic link, link() will point the hard link, path2, to the underlying object pointed to by path1, not to the symbolic link itself. 
    Yes, that's what the manpage states.
    Considering the fact that it also says
    As mandated by POSIX.1, path1 may not be a directory.
    and link() still creates directory hard links just fine, I was hoping that there might similarly be some non-documented implementation details with regards to symlinks.
    As far as I can see, Mac OS X does not have a way to link to a symlink, only to the object pointed to by symlink.
    That may well be the case.
    Linux has linkat() which does not follow symlinks by default
    <http://man7.org/linux/man-pages/man2/linkat.2.html>
    Mac OS X does not have a linkat() function.
    Ok. My thinking was that since OpenBSD has it, and Darwin is based on OpenBSD (if I'm not mistaken; but in any case FreeBSD and NetBSD also have it), there'd be a chance that it is present in Darwin as well, albeit possibly not exposed to the user.
    NOTE: linkat() is NOT POSIX compliant.
    Are you sure about that?
    I don't have access to the standard itself, but the OpenBSD manpage linked above has this:
    The link() and linkat() functions are expected to conform to IEEE Std
         1003.1-2008 (``POSIX.1'').
    Further, if I can believe this blogpost, then linkat() was added to the POSIX specification about five years ago, i.e. well before Mountain Lion was released.
    Anyway, it seems that the available evidence points to 10.8.5 not supporting linkat (would that make it non-compliant?), so I'll take it that what I want is really not supported.
    Should anyone coming across this post have any further information, I'd appreciate hearing about it, now or later.

  • Had to put in a new hardrive, can I find a download link to reinstall?

    I recently had to put in a new hard drive and lost my applications. Is there a place I can download and reinstall my Adobe product purchase?

    Frybaby69 which Adobe software or service are you wishing to download?  Please see Find a download link on Adobe.com for information on how to download your purchased software from your account at http://www.adobe.com/.

  • Where i find the Download Link to Adobe Creative Cloud?

    Where i find the Download Link to Adobe Creative Cloud? Buyed this day and installed on my office computer... now i am at home and searching sience 25 mins for the download link but i can not find it =(

    Some general information
    http://www.adobe.com/products/creativecloud/faq.html
    http://helpx.adobe.com/creative-cloud/help/install-apps.html to install or uninstall
    http://forums.adobe.com/community/download_install_setup/creative_cloud_faq
    What it is http://helpx.adobe.com/creative-cloud/help/creative-cloud-desktop.html
    Cloud Getting Started https://helpx.adobe.com/creative-cloud.html

  • Does Time Machine restore my hard links?

    I have "thousands" of ("ln old new") personal hard links for many different reasons. I decided to test if Time Machine would restore them in an emergency.
    I created a folder with two hard-linked files, ran TM, removed the folder, then restored it using TM. The two files came back NOT hard linked.
    So the question is, does this prove that TM does not restore hard links?

    Király wrote:
    I'm not sure what Apple can do to fix this. Files and folders in TM backups are full of a web of hard links. That's how TM works; backup snapshots have hard links to the original file in the backup.
    I guess when a file is restored TM assumes there was no hard link on it in the first place, and so removes it. If Apple can set up a way for TM to flag a backup file so that TM knows that it had a hard link on it in the first place, perhaps that hard link can be restored too.
    I've been wondering about this, too. It's way beyond my expertise, but wouldn't using Time Machine to back up a hard link require it to hard link to a hard link? I guess it would need a hierarchy of hard links, and a way to only partly "unwind" them to do a restore?
    I know you can't make an alias to an alias (OSX lets you do it, sort of, but the new alias is actually to the original, not the previous alias, so you lose the trail). So I wonder if you even could make a hard link to a hard link?

  • Where can I find the download link for Photoshop Elements 6 for Macintosh?

    Hard disk crashed, need to reinstall all software including Photoshop Elements 6 for Mac.  The download link has been removed from Adobe site and support is saying I have to purchase a new license.  I already have a licensed version of this product and this version is sufficient for my needs.  Where can I find the download link? 

    Hi jsachen
    I don't think Download Link for Photoshop Elements 6 is available.
    The download links are available from Photoshop Elements 7
    Download Photoshop Elements products | 9, 8, 7

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

Maybe you are looking for

  • Error while Configuring Repository INS0017: Installation of the seeded data

    I am getting error while configuring repository at 36% Error: Seeding Failed: The warehouse builder workspace owner installation failed on user OWBSYS. INS0017:Installation of the seeded data failed java.io.FileNotFoundException: xmlClasses.xml (Acce

  • Can't install oracle10g on windows vista

    I downloaded oracle10g for windows vista & windows from oracle's site. But when I tried to install/setup.exe,error message that says install/setup.exe contains information about the folder.Use active/checkout instead. can anyone help me how to resolv

  • ESS not configured correctly

    Hey All We have a netweaver 2004 installation, and are trying to get managers desktop, ESS and Learning systems running. I have been able to get LSM running and can preview any iview component, when it comes to the other two all I get is page cannot

  • Iso 5 the app store is working very slow, takes about 2 min to search....

    iso 5 the app store is working very slow, takes about 2 min to search....

  • Problem During Extraction

    Hello All, I tried enhancing the 0customer_Attr  datasource through user exit EXIT_SAPLRSAP_002. I had entered 4 fields and tried to fill the data to these fields by writing the abap code. But after in bw the values of the fields which i have entered