Unable to create hard links to the directories

Rob Landley rob at landley.net
Wed May 3 21:05:05 UTC 2006


On Wednesday 03 May 2006 5:18 am, Ranga Raju B wrote:
> I am getting the following error message
> ln: `/tmp': hard link not allowed for directory

They're not.  (This is a kernel level issue, nothing to do with busybox.)

You can do a --bind mount of the directory, though.  That works about the 
same.

> My question is, if it is impossible to create hard links to the
> directories

This is hit #3 when I google for for "hard link directory":

http://www.delorie.com/gnu/docs/textutils/coreutils_72.html

> then how the hell am I finding them in my base.cramfs 
> reference root file system. How are these guys able to create them.

Not having seen your reference root filesystem, I don't know what's in it.  
But I'm guessing they mount stuff on it to get writable space, since cramfs 
isn't?

Rob
-- 
Never bet against the cheap plastic solution.



More information about the busybox mailing list