Questions tagged [inode]

The inode is a data structure in a Unix-style file system which describes a filesystem object such as a file or a directory

The inode is a data structure in a Unix-style file system which describes a filesystem object such as a file or a directory. Each inode stores the attributes and disk block location(s) of the object's data. Filesystem object attributes may include metadata (times of last change, access, modification), as well as owner and permission data.

Directories are lists of names assigned to inodes. A directory contains an entry for itself, its parent, and each of its children.

109 questions
0
votes
2 answers

All of the NTFS hard links disappear, where are those 0KB hardlinks stored on disk and how to recover them?

This is Windows 7 x64 sp1 on a NTFS file system. All hardlinks within C:\Windows\System32 folder disappear, and the Windows can't boot, because even the osloader, C:\Windows\System32\boot\Winload.exe also disappeared. Nevertheless, the original…
Osiris
  • 101
  • 2
0
votes
1 answer

fsck ext4 inode error

Today while I was booting I got an error in an ext4 partition with some inodes. I just entered the root password and run fsck manually but I am a bit worried. fsck warned many times about some errors with inodes and asked me if I wanted to clear…
Javier
  • 105
  • 4
0
votes
1 answer

Weird Apache HTTPD 403 Error

So I'm having this really weird problem that I've worked around, but I don't understand why it's happening. I have a file I'm hosting via httpd. Below is a list of things I've tested/thought of to try to explain what's going on: When I try to…
chizou
  • 477
  • 3
  • 8
  • 18
0
votes
1 answer

Quota limit in a shared host envirionment

people! I'm studying Linux for taking the LPIC-1 exam. When studying quotas, I was wondering something: Since you can overflow a disk space creating an infinite number of 0 bytes files, setting a user quota by iNodes would be wise. However, if you…
0
votes
1 answer

Where do ext3 inode / meta-data reside?

Just a quick question about ext3: Are inodes stored in the same area as file data, or are there separate regions on the disk reserved exclusively for meta-data and others reserved exclusively for file/directory-content? Reason I'm asking: If fsck is…
Markus A.
  • 419
  • 7
  • 18
0
votes
1 answer

Inode tables sharply decrease without reason

Good day! I see strange behaviour of my servers. The inode table size and amount of open inodes are sharply decrease (from 90k to 10k in 5 minutes). At same time one of my application catch a large amount of swap. But external requests are in normal…
dev.brutus
  • 211
  • 3
  • 7
0
votes
1 answer

make vfs linux cache more inclined to keep inodes over actual file contents

I am using a centos 5 (2.6.18-194.el5). I need to be able to list files very quickly, in order for my rsync backup to be efficient. I don't really need to cache file contents, because file access response time isn't that important. I've got hundred…
john.doe
  • 115
  • 1
  • 1
  • 3
0
votes
1 answer

How to debug inode usage

I am a programmer for a popular website hosted by two web servers with apache. We're in the ~1000 alexa rank range to give you an idea. I'm not a server administrator. Only one of them (always the same one) has been having a problem that started for…
Andreas Bonini
  • 1,332
  • 1
  • 9
  • 16
0
votes
1 answer

Nagios: Any point in monitoring /proc/sys/fs/inode-nr when also using inode monitoring in check_disk

We are using the standard Nagios check_disk plugin which has the ability to monitor the inode usage on a system. We also have an in-house plugin which checks the data in /proc/sys/fs/inode-nr. Because the standard Nagios plugin is configured to…
Rich
  • 1,343
  • 7
  • 28
  • 39
0
votes
2 answers

how to delete a file by a inode in linux kernel

I got the inode of a file in linux kernel, I want to delete the file by the inode. Do I need to unlink every dentry of the inode? or do I need to unlink any dentry? Which locks should I use to protect what?
0
votes
1 answer

How ZFS avoids inodes' number exhaustion and why wasn't it implemented in previous filesystems (e.g. ext4)?

Chapter 1 of Oracle's ZFS Guide states that all metadata is allocated dynamically, so no need exists to preallocate inodes which was a positive surprise, but makes me wonder why the methods ZFS uses to achieve that weren't implemented in other…
0
votes
1 answer

How can I monitor deletion of /dev/null

Usually I use inotfiy_add_watch to monitor deletion of files, it works for regular files or even most device files(/dev/zero,etc...), but fails for /dev/null. It seems that any operations to it will not trigger inotify events. Why? Is there any…
0
votes
0 answers

Directory not read

I have a problem with a user's folder. ls -la shows the permissions as ???? instead of drwx. I tried with sudo chmod ug+rw -R /path/folder to reassign the value but it doesn't change. How can i make the folder writable by the group? The user is…
0
votes
0 answers

is the linux directory inode different then the file inode?

Im currently reading the book "How Linux Works" by Brian Ward and on chapter 4.5 it is said "A directory inode contains a list of filenames and corresponding links to other inodes" this implies that a directory's inode is structurally different…
0
votes
2 answers

Monitor Linux Server filesystem health and suspicious activities

I run my own, small server here. The server runs on Ubuntu 18.04. There is one single HDD using LVM on a partition together with EXT4. LVM is used for taking snapshots. I also use Webmin with Virtualmin for administration. During the past weeks, I…
C. Hediger
  • 101
  • 1