An interesing Fedora 9 glitch.

I encountered this message in my logs: "restorecond: Will not restore a file with more than one hard link (/etc/resolv.conf) Invalid argument". A bit of searching found this fix at the Fedora Forums. Elevated to administrative level:


: ls -i /etc/resolv.conf #(or whatever file is problematic)
NNNNNNNNN /etc/resolve.conf #(will return the inode)
: find -inum NNNNNNNN #finds all copies
/etc/sysconfig/networking/profiles/default/resolv.conf #most likely hard link
/etc/resolv.conf #the original
: lsof | grep resolv.conf #check for application hanging the file open
#assming that it isn't found, proceed, otherwise terminate the link first
: rm /etc/sysconfig/networking/profiles/default/resolv.conf #or other location found
: restorecon /etc/resolv.conf # clear the restore condition
: ln /etc/resolv.conf /etc/sysconfig/networking/profiles/default/resolv.conf #or wherever it was found.

There appeared to be no harm in the original message, but I hate errors or warnings to appear as they cloud real issues if they are not resolved, even if harmless.