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.

2
votes
3answers
112 views

List only regular files [duplicate]

I desire to list all inodes in current directory that are regular files (i.e. not directories, links, or special files), with ls -la (ll). I went to the man ls searching for type and found only this ...
0
votes
3answers
57 views

How do you count the total number of hard links within a directory?

I've been trying to use the -ls and find commands to total the number of hard link occurrences within a directory. Is there a simple way to accomplish this beyond physically counting all of the link ...
0
votes
1answer
64 views

Is it possible to read a file you only have executable permissions to on Linux through Bash?

I was wondering if it was possible to somehow get the contents of a file which you do not have read access to. I first attempted trying to get around the permissions using the inode number of the file,...
3
votes
1answer
48 views

Atomically write a file without changing inodes (preserve hard link)

The normal way to safely, atomically write a file X on Unix is: Write the new file contents to a temporary file Y. rename(2) Y to X In two steps it appears that we have done nothing but change X "...
2
votes
1answer
31 views

Is pCloudDrive really inaccessible to root?

pCloud is a cloud storage service that allows Linux users to mount their cloud storage inside of their home directory, appearing as: /home/username/pCloudDrive/ As far as I can tell, the pCloudDrive ...
0
votes
1answer
20 views

How do I format a hard drive EXT4 with lowest possible inode disk usage (for 1 Dir and 1 Massive File)?

I am trying to prepare a hard drive for burst mining on linux and want to maximize the hard drive space available for the plot file. So for this I need to set the inodes to the minimum possible that ...
0
votes
0answers
44 views

Enough inodes and enough space, but suggesting No space left on device

The result of df -i: Filesystem Inodes IUsed IFree IUse% Mounted on /dev/nvme0n1 62513152 11967267 50545885 20% /disks/FastData The result of df: Filesystem 1K-blocks ...
1
vote
1answer
44 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 ...
0
votes
0answers
45 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
95 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
21 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
84 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
61 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
89 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
52 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
105 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
229 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
46 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
278 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
220 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
97 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
62 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
241 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
187 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
270 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
1k 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
335 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
343 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
350 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
37 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
209 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 ...
4
votes
1answer
1k 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
95 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
1answer
276 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
241 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
317 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
132 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
3k 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
306 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
169 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
1k 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)...
4
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
469 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
132 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 ?