Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [inode]

The tag has no usage guidance, but it has a tag wiki.

1
vote
1answer
28 views

Filesystem design: necessity of inode number and table [closed]

The *nix filesystems maintain an inode table at the beginning of the disk (or at some fixed location). It is indexed by the inode number, which is an integer that uniquely identifies an inode. Knowing ...
-1
votes
0answers
19 views

How to get list of inodes and Access files using ftp from when inodes are 100% Utilised (Full)

Recently I found that my Servers inodes are full and websites/cpanel is not accessible. FTP using filezilla is also restricted. I tried commands to get a list of highest inodes utilisation ...
0
votes
0answers
40 views

Why does the /run directory have inode 2? [duplicate]

It's well known that the / directory has inode number 2 (see also Why does '/' have the inode 2). And we also know that hard links share the same inode number. So far so good. Here's the confusing ...
0
votes
1answer
31 views

Understanding direct and indirect blocks?

Why can't we use use indirect blocks instead of direct blocks. Indirect blocks can store much more memory addresses which results in more data blocks. So why waste those 10 direct blocks in Inode ...
1
vote
1answer
18 views

Inode Timestamp Plus/Minus Interpretation

What does +0200 mean after the Access/Modify/Change timestamps? File: task-system.md Size: 197 Blocks: 24 IO Block: 4096 regular file Device: 33h/51d Inode: 14155787 Links: ...
17
votes
2answers
2k views

Can two files on two separate filesystems share the same inode number? [duplicate]

If I run a command like this one: find / -inum 12582925 Is there a chance that this will list two files on separate mounted filesystems (from separate partitions) that happen to have been assigned ...
2
votes
0answers
49 views

debugfs occasionally fails to read inode data

I need to get date and time when a file was created. The file is stored at ext4 filesystem so the information is available in the i-node and I use debugfs to read this information: # debugfs -R "stat ...
1
vote
1answer
37 views

Why inode number is zero for writeback mechanism in linux kernel

I'm researching linux kernel. Right now only for v3.10.61, it's just proof of concept. I need to pass-through some hints to hardware about what kind of data in particular WRITE\READ operation. E.g. ...
0
votes
1answer
80 views

Why is ls -i slower than ls?

I know that ls lists the names of the files in a given directory and ls -i shows the names and the inode numbers. But why is it slower? EDIT: This happens with big directories The names and the ...
1
vote
1answer
49 views

Cannot rm corrupt directory

CentOS6 I am logged in as root. It is a virtual machine running on a Windows 10 host in virtualbox as a vagrant machine. I tried chmod -R 777 /home/thomas/WWW chown -R root:root /home/thomas/WWW ...
-1
votes
2answers
71 views

File system Inode flags: difference between FS_IOC_GETFLAGS and FS_IOC_FSGETXATTR

What is the difference between FS_IOC_GETFLAGS and FS_IOC_FSGETXATTR ioctl commands? What flags do both return?
3
votes
2answers
128 views

What are the final 3 bits in the UNIX permission mode bits?

I understand there are 12 permission bits of which there are 3 groups of 3 bits for each of user, group, and others, which are RWX respectively. RW are read and write, but for X is search for ...
2
votes
0answers
41 views

From where ls gets inode info in a deleted directory [duplicate]

I am not able to understand ls and cd behaviour in following case : Create directory a/b/c $ mkdir a/b/c -p $ ls -lhRai .: total 324K 24512531 drwxrwxr-x 3 mayank mayank 312K May 22 16:23 . 24380771 ...
0
votes
0answers
190 views

High inode usage of nfs mount

The data files of my application are stored in an NFS mount of a Linux system. The inode capacity of the NFS share is approx 300 MB. Now there are two directories where the data files are generating. ...
0
votes
1answer
219 views

Bad bit in file

I have an image that I know was ok. (image.jpg) A few days later when I open, image.jpg was corrupt. (not displaying properly) How to check if bit in hard disk drive where image is located is ...
0
votes
0answers
61 views

ENOSPC when space and inode is available

My digitalocean instance, running a blockchain simulation using ganache-cli (uses nodejs), gives the following error: Error: ENOSPC: no space left on device, open '/tmp/tmp-462UV3xgF8SXTWM/!trie_db!...
2
votes
1answer
43 views

“ls” command showing inode numbers for an NTFS partition

I have an NTFS partition mounted at /media/disk. I run the following command: ls -lai /media/disk, and I got the following result: The first column is for the inode number. But why is the inode ...
0
votes
2answers
163 views

directory entry without inode

I have a directory and there are two mysterious entries, they don't show inode number nor any other metadata. When I type ls -li in the command line I get: $ ls -li ls: no s’ha pogut accedir a '...
19
votes
3answers
2k views

Why is the inode table usually not resizable?

Unix file systems usually have an inode table, and the number of entries in this table is usually fixed at the time the file system is created. This sometimes leads to people with plenty of disk ...
1
vote
1answer
146 views

Why does using indirect pointers in inodes not incur the same amount of space?

I get the same confusion in multi-level paging as well. For inodes, we have direct and indirect pointers that point to data blocks. However, for small files we prefer to use indirect pointers since ...
0
votes
2answers
176 views

Symbolic Link deactivated by renaming original linked file

I learned that unlike HardLink, SoftLink acutally store information about original file in HDD. And I made test1(original file) and test2(softlink of test1) And then I mv(renamed) test1 to test3 So ...
1
vote
1answer
909 views

debugfs and “Bad magic number”

I'm trying to get file creation time using whatever I could find on the Internet and there's generally one solution that works for everybody, and this is the tutorial: https://tecadmin.net/file-...
3
votes
2answers
283 views

Why is 67108864 the maximum bytes-per-inode ratio? Why is there a max?

Formatting a disk for purely large video files, I calculated what I thought was an appropriate bytes-per-inode value, in order to maximise usable disk space. I was greeted, however, with: mkfs.ext4: ...
2
votes
1answer
269 views

mount -t cifs gives semi-random inode numbers

I have an application that requires inodes be persistent across mounts, reboots etc. With mount -t cifs -o serverino, it is supposed to do this (with server support). But, when I mount, some random ...
3
votes
2answers
42 views

I/O errors and undeletable directories

For some unknown reason, there are 2 directories I can't delete. First directory called sw.old is empty and can be deleted only by rm, as rmdir won't recognize it. However, even after rm, it still ...
4
votes
1answer
312 views

why do Linux bind mounts disappear if the mount point's inode changes?

In summary: if you bind mount a file /tmp/a on top of /tmp/b in a new mount namespace, but then the inode of /tmp/b changes in the parent namespace, the bind mount disappears in the child namespace. I'...
0
votes
2answers
36 views

Are there any files created and or broadened by the system besides mail and logs?

Are there any files created and or broadened by the system besides mail and logs? AFAIK, the only files that are created and/or broadened by the system in default are /var/mail/ files and /var/log/ ...
1
vote
1answer
181 views

How to delete a directory entry (file) that has no inode?

It must be one of the oddities I cannot understand, that using chromium browser, from time to time yields me an inode-less file named Preferences. If I do this in the terminal: $> ls -i ~/.config/...
29
votes
2answers
2k views

Why do the directories /home, /usr, /var, etc. all have the same inode number (2)?

I find that under my root directory, there are some directories that have the same inode number: $ ls -aid */ .*/ 2 home/ 2 tmp/ 2 usr/ 2 var/ 2 ./ 2 ../ 1 sys/ 1 proc/ I only know that the ...
3
votes
1answer
884 views

Who is right about inodes? df or tune2fs?

On my Redhat 6.5, I get two different results on free inodes. Using df : [root@xxxx ~]# df -i /dev/mapper/data_vg-data_lv Filesystem Inodes IUsed IFree IUse% Mounted on /dev/...
0
votes
0answers
82 views

Meaning of st_ino

This might be an easy question, but I can't seem to find the answer anywhere: what does the st_ino field of struct stat contain for filesystems that do not use inodes? I'm interested in particular in ...
0
votes
0answers
41 views

How much space does a Btrfs inode occupy?

As far as I know each inode on ext3 file systems consumes 128 bytes. On ext4 each inode does consume 256 bytes of disk space by default. The btrfs wiki design page only tells: The inode structure ...
0
votes
1answer
203 views

Does archiving files reduces number of inode

I read a couple of articles about Linux inode and understand that each file created always have a corresponding inode number. Since one of our servers is using ext4 there is no way to increase the ...
0
votes
1answer
213 views

Why does the fs.inode-max kernel tunable not exist on version 2.6 of the Linux kernel?

The following output (from a Vagrant VM running CentOS 6.6) mostly speaks for itself: [root@localhost ~]# echo 131072 > /proc/sys/fs/inode-max -bash: /proc/sys/fs/inode-max: No such file or ...
1
vote
1answer
260 views

Why no file-name in Inode information?

I know that symlinks have a separated inode from the original file and that they only point for the inode containing the data. My question is, where is the hardlink name stored if there's no field in ...
2
votes
1answer
120 views

Unix - Delete folder with strange characters using inode or similar [duplicate]

I want to remove this folder : Name Name 1x05 name Formación I have tried all I have seen on internet : find -maxdepth 1 -inum INODE_NUMBER -exec rm -i {} \; rmdir: wrong deleting './Name Name ...
0
votes
1answer
2k views

No free space left (inode shortage)

Filesystem Size Used Avail Use% Mounted on /dev/sda1 75G 52G 20G 73% / udev 10M 0 10M 0% /dev tmpfs 793M 8.9M 784M 2% /run tmpfs 2.0G ...
0
votes
1answer
43 views

How does changing file systems work?

Disclaimer: I wasn't really sure where to put this, but as the context is mostly Unix it ended here. Regarding the recent release of Mac OS High Sierra and the introduction of APFS, I've become ...
1
vote
1answer
250 views

inode usage does not match the count

I have this inode usage: host:~ # df -i Filesystem Inodes IUsed IFree IUse% Mounted on /dev/hda1 655360 655357 3 100% / but, if I ...
0
votes
0answers
153 views

How do i set inode limit to user(s)?

I am using Debian Linux and i want to set inode 100.000 object limit to users(folders).I did not find enough explanatory resources maybe because of my experience.
2
votes
1answer
2k views

Too many inode usage [duplicate]

I'm using Ubuntu 14.x, and recently attempting to create files failed with some kind of disk is full message. I had more than 2gb spaces and that's not possible, but I heard that it can causes if ...
1
vote
0answers
925 views

Accidentally removed /usr/local/bin/node [closed]

I accidentally copied the following command from a forum into my command line sudo ln -fs /usr/bin/nodejs /usr/local/bin/node which caused /usr/local/bin/node to get deleted (replaced by a dead link)...
5
votes
4answers
2k views

How come that inodes of directories store filenames in ext4 filesystem?

A directory inode isn't substantially different from that of a regular file's inode, what I comprehend from Ext4 Disk Layout is that: Directory Entries: Therefore, it is more accurate to say ...
1
vote
3answers
400 views

What is an inode as defined by POSIX?

What is an inode as defined by POSIX? The Wikipedia article on inodes has a section titled POSIX inode description which says an inode contains (among 8 other bullet points): Device ID (this ...
0
votes
1answer
98 views

Size of inode fixed?

We divide file into fixed size blocks and store it. I want to know whether size of inode for a file is same as size of block or is it different and has some fixed size ?
11
votes
4answers
2k views

Why do special device files have inodes?

Device files are not files per se. They're an I/O interface to use the devices in Unix-like operating systems. They use no space on disk, however, they still use an inode as reported by the stat ...
2
votes
1answer
113 views

Why symbolic links have no data blocks allocated to them in ext4fs?

I am a Unix wanderer. I just noticed that symlinks don't have data blocks allocated to them, I think the inode of the symlink file stores the filename which the symlink refers to, is this actually the ...
1
vote
1answer
83 views

What is “Device: 802h/2050d” stands for in inode?

When I list an inode with stat command: File: 'text' Size: 0 Blocks: 0 IO Block: 4096 regular empty file Device: 802h/2050d Inode: 8391119 Links: 1 Access: (0664/-rw-rw-...
34
votes
4answers
8k views

Can I run out of disk space by creating a very large number of empty files?

It is well-known that empty text files have zero bytes: However, each of them contains metadata, which according to my research, is stored in inodes, and do use space. Given this, it seems logical ...
2
votes
2answers
481 views

What is the association of an inode with a file?

I have learnt from some sources (such as: this), the following things: An inode is a data structure that stores relevant information about a file. An inode number points to an inode. There is a ...