Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Aug 2001 21:11:46 -0400
From:      Andrew Lankford <arlankfo@mindspring.com>
To:        freebsd-questions@freebsd.org
Subject:   Re:funky, this
Message-ID:  <200108200111.VAA08797@barry.mail.mindspring.net>

next in thread | raw e-mail | index | archive | help

Aha! (bops self on forehead)  All those files (er...directories) are all
mount points.  I went into single user mode, umounted all the
partitions except for /, and I noticed that each empty mount point
did in fact have a unique inode (and it wasn't 2).  I also noticed
that mnt2 and mnt3 are both have the same inode after a dos partition
is mounted to each one while the system boots up.  But I notice
that proc and usr have the same inode even though they are different
file systems.  So I guess my question is now just simply this:
why exactly do some mount points share the same inode and some
share a different one?  Does it have to do with the order in which
they were mounted?



>Hey, I noticed that when I invoke the command 

>ls -iCF /

>I get this:

>   371 COPYRIGHT>   304 kernel*>>     2 proc/
> 11787 bin/>>   372 kernel.GENERIC*> 11883 root/
>    36 boot/>>   350 kernel.old*>   294 sbin/
> 11785 cdrom/>> 11882 mnt/>> 11777 stand/
>   375 compat@>>469472 mnt2/>>   370 sys@
>  5888 dev/>>469472 mnt3/>>     2 tmp/
>    28 etc/>>   154 modules/>>     2 usr/
>   384 home@>> 11897 modules.old/>     2 var/

>Now, as I read the ls man page, the -i option should list the inode
>of each file to the left of that file.  All well and good.  But
>aren't all truly unique files (i.e. no hard links) in a file system
>supposed to have unique inodes, even if the files in question are
>directories (i.e. just special files ) ?  The tmp, usr, proc, and
>var directories seem to be behaving like unique directories as they
>should be, and mnt2 isn't mounted to the same file system as mnt3,
>certainly.  So what gives?  

>I'm scratching my head anyway.  Is there a short answer to this puzzle? 

>Andrew Lankford

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108200111.VAA08797>