Subj : Re: hardlink not working with directories on same file system To : alt.comp.linux,alt.comp.os.linux,comp.os.linux From : Michael Fread Date : Sun Oct 31 2004 01:45 am I believe your misreading the man page. The bit about the same filesystem applies to ALL hardlinks, you can't hardlink across filesystems, EVER, for ANY type of file. Directories you cannot hardlink at all. And if you really think about it you'll figure out why. If not, just know that you can't. On Tue, 26 Oct 2004 23:07:55 +0000, Mark Hobley wrote: > I am trying to create a hard link to the directory /mnt/vol1a/www/donk/ > into /mnt/vol1a/home/donk: > > su root > cd /mnt/vol1a > ln www/donk/ home/donk/www > ln: `www/': hard link not allowed for directory > ln -d www/donk/ home/donk/www > ln: creating hard link `home/donk/www' to `www/donk/': > Operation not permitted > cd / > ln /mnt/vol1a/www/donk/ /mnt/vol1a/home/donk/www > ln: `/mnt/vol1a/www/donk/': hard link not allowed for directory > ln -d /mnt/vol1a/www/donk/ /mnt/vol1a/home/donk/www > ln: creating hard link `/mnt/vol1a/home/donk/www' to `mnt/vol1a/www/donk/': > Operation not permitted > > Documentation seems to suggest that I can hard link directories on the same > file system. > > What is going on ? > > cat /etc/mtab reveals: > > /dev/hda6 /mnt/vol1a ext2 rw 0 0 > > A hard link is required because user donk is chrooted to /mnt/vol1a/donk/ > > Thanks in advance to anyone who can help. > > Regards, > > Mark. .