Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The first is the number of inodes, which is from the virtual layer (VFS) of the mounted filesystem. These inodes are in memory or memory cache.
The second line after unmounting is the inodes of the root filesystem.
i want to know how many i-nodes are free for particular partition.
I don't understand that phrase at all.
Anyway, what you don't seem to understand is that the i-nodes are not a partition thing. They are just internal structures of the filesystem, and only for some filesystems. There are not i-nodes on a partition, and there are not i-nodes on a disk. You only have i-nodes on a filesystem after you've created it, and only on some of them.
Some others organize the information using different base structures.
So, again: if that partition formated? And if it is: what filesystem are we talking about?
PS. What it seems to me is that you are trying to find how many i-nodes are free for a FAT32 volume, which isn't supported since FAT is not a filesystem based on i-nodes (hence, it truly contains zero i-nodes, and if my memory serves correctly, two File Allocation Tables).
I think that reminds me of something I read, how reiserfs does things its own way instead of integrating into the way things are done by the kernel. It makes the reiserfs not to popular with the kernel authors.
I looked in the manpage and -i is not in the posix manpage. Also, be careful if the target is a link.
Don't confuse ReiserFS 3, and ReiserFS 4. While the latter has a long history of clashing with the kernel team, and has quite a record of unstability, the former and older ReiserFS is nothing like that.
The ReiserFS 3 filesystem was the first journaling filesystem to be made available to the “non-tech public” (that was in Mandrake 7.2 if I remember correctly) and I have used it since day one of its availability in the distribution.
The disks went through many brutal power-off, I had electric outages due to storms and such, and there were the occasional game-related- or X-driver-related-crash which meant unclean power off. To this date, the filesystems were ALWAYS recovered.
More over, ReiserFS is still one of the fastest filesystem in usage (although slower to boot).
In contrast, I lost a filesystem once with Ext3, even though I use this one much less. So if the most obvious bug of ReiserFS is a bad output in “df -i” (and is ReiserFS the cause?), then it's OK with me.
Now some more information, before some more people jump on the ReiserFS-fud-bandwagon:
Code:
[root@localhost ~]# df -i
Sys. de fich. Inodes IUtil. ILib. %IUti. Monté sur
/dev/sda6 0 0 0 - /
/dev/sda7 0 0 0 - /home
none 111K 28 111K 1% /tmp
//remote_RHCE_2/share 0 0 0 - /home/yves/.mnt/smb/remote_RHCE_2
//remote_RHCE_1/share 629K 13K 617K 3% /home/yves/.mnt/smb/remote_RHCE_1
[root@localhost ~]# mount
/dev/sda6 on / type reiserfs (rw,noatime,notail,user_xattr)
none on /proc type proc (rw)
/dev/sda7 on /home type reiserfs (rw,noatime,notail,user_xattr)
none on /tmp type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
none on /sys/fs/fuse/connections type fusectl (rw)
gvfs-fuse-daemon on /home/yves/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=yves)
//remote_RHCE_2/share on /home/yves/.mnt/smb/remote_RHCE_2 type cifs (rw,mand)
//remote_RHCE_1/share on /home/yves/.mnt/smb/remote_RHCE_1 type cifs (rw,mand)
As you can see, the CIFS filesytem shows the “bug” for one remote server but not the other. I actually think that:
— this is not a bug, and could be explained somehow,
— it has nothing to do with the filesystem being used.
— this is not a bug, and could be explained somehow,
It depends on how do you interpret it. We could just say that df and reiserfs are not fully compatible. Just like with vfat and many others.
Quote:
— it has nothing to do with the filesystem being used.
I've never seen this on ext[234], can't comment on other filesystems. This behavior is only expected on fs's where there aren't inodes. However today I've learned that reiserfs can fail at this as well. So I think that the fs matters.
I know nothing about how will CIFS handle this but maybe it emulates the inode properties copying them from the original fs. So, just out of curiosity, what are the underlying fs's for those CIFS shares?
About the reiserfs vs ext3 thingie, better let's keep it out of the thread. There's already enough of that in the net, and neither of us is going to change his mind no matter the arguments.
I know nothing about how will CIFS handle this but maybe it emulates the inode properties copying them from the original fs. So, just out of curiosity, what are the underlying fs's for those CIFS shares?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.