Questions tagged [inode]
For question pertaining to the inode (index node), a data structure in a Unix-style file system that describes a file-system object such as a file or a directory. Use this tag for questions about the inode data structure itself or questions about issues arising from querying or managing inodes in the scope of a filesystem.
345 questions
6
votes
2
answers
5k
views
Why restrict the number of inodes a user can access?
It appears that it is possible on a network mount to set a quota on how much space a user can consume.
# edquota ramesh
Disk quotas for user ramesh (uid 500):
Filesystem blocks ...
1
vote
0
answers
2k
views
Mail queue keep growing
My server keeps running short on inodes due the mail queue getting crazy.
First, I assumed I had postfix not configured properly, so I switched it off.
But, it happened again, last time I did it I had ...
4
votes
2
answers
4k
views
Linux: How does hard-linking to a directory work?
I'm aware that Linux does not allow hard-linking to a directory. I read somewhere,
that this is to prevent unintentional loops (or graphs, instead of the more desirable tree structure) in the file-...
8
votes
2
answers
5k
views
what does a "deleted file" entry look like in the journal
I hope I've got this right: A file's inode contains data such as inode number, time of last modification, ownership etc. – and also the entry: »deletion time«. Which made me curious:
...
4
votes
1
answer
5k
views
Recovering files using extundelete
I've accidentally deleted some files in my package managers's cache after an update (so I've deleted all packages that were downloade and unforunately they weren't even installed).
Here's what I've ...
4
votes
0
answers
2k
views
Foremost file naming - Recovery of file names from inodes
I have been asked to recover some files from a corrupt Linux partition. The partition data is shot to pieces but i have been able to locate the file names and the associated Inode number.
Using ...
1
vote
2
answers
254
views
How can find support large files?
I would like to find all the files of my system, which sizes are more than a couple gigabits. I thought I would use find -size, but the man page states:
The size does not count indirect blocks
If I ...
11
votes
1
answer
2k
views
Finding all the hard-links of a file without traversing the file system
I have seen in this page that inodes have a link counter to know how many files (read: "directory entry") point to this inode. Is there a way to know which directories contain such entries without ...
31
votes
2
answers
3k
views
Why does a software package run just fine even when it is being upgraded?
Say I am running a software, and then I run package manager to upgrade the software, I notice that Linux does not bring down the running process for package upgrade - it is still running fine. How ...
0
votes
3
answers
4k
views
Question about inode and permission command
Can anyone tell me if this is true or false?
Does the inode of a file have the addresses of blocks containing the file's content?
Also for the permission command, there was a question asking that I ...
2
votes
2
answers
4k
views
how can "several file nodes" be associated with a single inode?
I am trying to learn about iNodes and file permissions. I thought that there is one inode that holds the permissions for a single file. The OS pulls a single inode into memory to check permissions for ...
4
votes
2
answers
4k
views
Storing thousands of files in one directory
I have a web-site that I'm checking for performance issues and bugs, and i came across a caching code that caches thousands of files into one single directory.
I understand that this is not good and ...
4
votes
2
answers
4k
views
Location of inodes (ext)?
Say I want to observe how the flow from file name to cluster on hard disc goes.
I get the inode number of I file (which is mapped in a directory data):
1863 autorun.inf
So, now i know that i have to ...
4
votes
4
answers
8k
views
What are inodes good for?
I wonder if storing the information about files in inodes instead of directly in the directory is worth the additional overhead. It may be well that I'm overestimating the overhead or overlooking some ...
3
votes
1
answer
633
views
ext4 directory lists as a file
I'm working with a large (8TB) EXT4 filesystem in linux. After a power outage, the filesystem wouldn't mount. fsck is taking weeks to complete, but i ran testdisk and i'm able to see my partition ...
38
votes
2
answers
13k
views
Why does inode value change when we edit in "vi" editor?
When I edit a file in the vi editor, the inode value of the file changes. But when edited with the cat command, the inode value does not change.
3
votes
1
answer
3k
views
what is inode for, in FreeBSD or Solaris
I know a little about linux kernel. BUt for Freebsd, the "vnode" actually is similar to the "inode" in Linux kernel.
And there is a "inode" concept in FreeBSD or Solaris.
So my question is: what is "...
5
votes
1
answer
6k
views
On what occasion will inode change?
I checked manual of find , and there's an option -ctime which specify the last modification time of inode.
But on what occasion would inode change ? When is that option useful ?
84
votes
6
answers
236k
views
How can I increase the number of inodes in an ext4 filesystem?
I had a problem (new to me) last week. I have a ext4 (Fedora 15) filesystem. The application that runs on the server suddenly stopped. I couldn't find the problem at first look.
df showed 50% ...
2
votes
2
answers
264
views
Is the sticky bit not used in current file systems
Can I safely conclude that the sticky bit is not used in current file sysems and reuse the bit for my own purpose.
3
votes
1
answer
186
views
Filesystem and journal layout
Is there any tools or some way in linux which can be used to view internals of filesystems ?
How to view the inode related structures and journal ? and cached pages of files (pagecache).
3
votes
1
answer
377
views
tripwire report - inode number
Hi I am investigating tripwire and have stumbled upon something which i am unsure about. in a tripwire report generated after i modified hosts.deny to include an extra # I noticed the inode number ...
115
votes
14
answers
268k
views
How do I count all the files recursively through directories
I want to see how many files are in subdirectories to find out where all the inode usage is on the system. Kind of like I would do this for space usage
du -sh /*
which will give me the space used in ...