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

learn more… | top users | synonyms

1
vote
0answers
8 views

How much control do concrete file systems have over the VFS inode cache and the buffer cache?

I want to make sure I'm understanding how VFS inodes and file system inodes working together. A file system's inodes are stored on the block device and that is where they live. When an operation is ...
2
votes
1answer
26 views

Is an inode number a non-changeable id of an inode?

I am trying to understand the concept of the inode number of an inode. Is an inode number an/the id of an inode? Does an inode have exactly one inode number? or can an inode have zero or more than ...
4
votes
2answers
345 views

Is there an inode for a directory?

Each file has an inode. Is there an inode for every directory ? If not, how does Linux manage directories.
0
votes
2answers
43 views

Files with no attributes, owner, group and inodes

Yesterday we started having problems with our emails. Investigating this, I found that there some files on our system that show all the attributes including inode, owner, group, permissions, size and ...
3
votes
1answer
30 views

If I grow an ext4 partition, will it increase the number of inodes available?

If I create a small filesystem, and grow it when I need to, will the number of inodes increase proportionally? I want to use Docker with the overlay storage driver. This can be very inode hungry ...
2
votes
1answer
30 views

size of directory reported by ls [duplicate]

I understand the size reported by ls corresponds with number of inodes inside the directory, not their actual size. I have noticed peculiar behavior, when displaying directory size with ls. Here is ...
3
votes
1answer
32 views

Can I create a file on ext4 with a depth > 1 for testing purposes?

In order to test an analysis tool, I need a file where the depth (eh.eh_depth) is greater than 1. I've tried a couple of things: A large file (1GiB) Creating hundreds of smaller files (1MiB), ...
0
votes
0answers
81 views

why my mobile HDD can not mount on the opensuse 42.1?

I want to mount my usb mobile HDD(mobile hard disk drive) to /mnt. I tried the following command sudo mount -t ntfs /dev/sdb1 /mnt/usbhd1 but I get the error message: Failed to open index ...
0
votes
0answers
24 views

How does inode work on ntfs partition?

I am using a multi OS computer. I have one hard drive with three major partitions, namely Windows, Ubuntu and Data(ntfs). And the ntfs Data Drive is mounted on Ubuntu. Suprisingly, when i call ll -i ...
1
vote
0answers
22 views

Are the links between the inode and data blocks of a file removed when deleting the file?

Suppose there is only one hard link to a file. When rm the hard link, the inode and data blocks of the file will be marked as unused. But are the links from the inode to the data blocks of the file ...
1
vote
0answers
17 views

How are the sizes of Linux directories determined? [duplicate]

The results of ls -lh provides, among other things, a listing of subdirectories and their sizes. As the directories' sizes are not determined by the sum of the files within them, how are they ...
1
vote
2answers
61 views

How to delete corrupted directory

While copying music to the sd card of my android phone, the laptop froze so I had to reboot it using sysrq magic. Now any file manager on my Ubuntu or Android shows a directory 0 bytes big, and ...
-1
votes
1answer
142 views

Linux folder size limit

We are using below code to create folder in Linux server. File dir = new File(filePath); if(!dir.isDirectory()) dir.mkdirs(); After that creating files inside that ...
1
vote
0answers
37 views

How to increase inode size in Debian [duplicate]

I have VPS of following configuration. RAM : 4GB Swapped RAM : 4GB Disk : 500GB I'm unable to start any service it's showing No Space is available. df -i Filesystem ...
4
votes
3answers
548 views

“mv” file with garbled name by inode number?

I have several files with encoding issues in their file names (German umlauts, burned on CD with Windows, read by Windows and synced to Linux with Seafile. Something, somewhere went wrong...). Bash ...
1
vote
2answers
121 views

Number of files does not match inodes

I notice that the number of used inodes on the OCFS2 partition is around 28 million. I moved a folder that contained 518K files and the number became 22 million. The following script finds the number ...
9
votes
2answers
217 views

Is it possible to rename a file or directory using the inode?

I changed the /home directory to a different partition and couldn't access the files from it, something I have been able to solve from this question - How do you access the contents of a previous ...
1
vote
2answers
52 views

Why do I not see inode data in a hexdump or dd?

I'm not quite familiar with filesystem layers in the Linux kernel but I suppose that dd and hexdump do not get the inode information since they only do open() and read() syscalls, but I might be ...
1
vote
2answers
75 views

Two hard linked files share inode

I'm working on an assignment for my college course, and one of the questions asks for the command used to create a hard link from one file to another so that they point to the same inode. We were ...
0
votes
3answers
70 views

How to influence the inode number, e.g., at filesystem restore?

Files in *nix filesystems almost always have an associated inode number. In most cases users seem not to deal very much with those inode numbers, as they use filenames (i.e. a hierarchical ...
1
vote
2answers
79 views

Why debugfs doesn't show crtime in nanoseconds?

I am using: debugfs -R 'stat <7473635>' /dev/sda7 to get the file creation time (crtime). Inode: 7473635 Type: regular Mode: 0664 Flags: 0x80000 Generation: 1874934325 Version: ...
1
vote
0answers
95 views

Recovering files with directory structure

EDIT: I am using Debian 8.1.0 So I somehow deleted my /etc directory. While I have not been able to recover the complete /etc directory hierarchy with all files, I have received different parts from ...
0
votes
0answers
56 views

ext4: How to save free blocks / inodes to a file

I'd like to save all free blocks / inodes from an ext4 file system to one or more files for further analysis and file recovery. It would be good to create one file for every contiguous set of free ...
3
votes
1answer
138 views

Where are my inodes going?

My root filesystem is running out of inodes. If this were an issue of disk space, I'd use du -s to get a top-level overview of where the space is going, then head down the directory tree to find ...
-2
votes
1answer
61 views

Create five copies of file with the same inode number

How can I create five copies of /etc/profile with the same inode number?
1
vote
1answer
54 views

Why are the first inode of the `/` mounted partition and inode of `/` different?

[~]$ stat -c %i / 2 As you can see in above, the inode for / is 2. But the First inode of /dev/sda2 is 11. [~]$ df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 ...
0
votes
1answer
68 views

Kernel current working directory and inode information placement

I'm reading some doc about UNIX but I don't understand two things: Why is important for the kernel to know the current working directory of the running process? Why not keeping the inode information ...
5
votes
2answers
516 views

Why does renaming a file with mv command alter an inode's “change” date & time?

A file hello.c is renamed to hi.c. As the output of stat command shows, [change] time stamp has been changed. usually it is changed when inode of file got modified. Why renaming with mv command ...
1
vote
0answers
37 views

keep same inodes metadata with rsync or ignore metadata with du

I'm trying to synchronize two folders from a remote computer. I want to use rsync to send the folder, and du to check if the space used is identical on the remote computer. The problem is even with a ...
2
votes
0answers
613 views

Exundelete can't restore the file

I'm trying to restore 2 important tar.gz files I know their directory but extundelete not restoring them although it's giving me the inode number. Loading filesystem metadata ... 2127 groups loaded. ...
2
votes
3answers
167 views

Manipulate multiple files by inode

I have a large number of files that contain backslashes \ that I would like to manipulate, but whenever I try something like: $ ls -li 2036553851 -rw-rw-r-- 1 user user 6757 May 20 00:10 ...
1
vote
2answers
217 views

ext4 file system tuning for storage partition

I searched the Internet, but I was not able to find a satisfying answer to my problem. The Problem I'm encountering currently is, that I'm transitioning my data from a NTFS Partition to a ext4 ...
2
votes
2answers
93 views

How many inodes do I need to access to read a file?

Imagine I want to access the blocks of file /hello/file. How many inodes should I walt through? I guess two, since I should not go through the root inode, right?
5
votes
0answers
148 views

Limit the inode cache used by a command

I want to run a task with limits on the kernel objects that they will indirectly trigger. Note that this is not about the memory, threads, etc. used by the application, but about memory used by the ...
2
votes
0answers
195 views

What does an inode for a socket contain?

I read somewhere that the inode for a TCP socket would contain the buffer space. Is that true, and if so, does it mean that the inode contains a memory address for the buffer space used by the ...
5
votes
2answers
143 views

Why does '/' have the inode 2?

On many *nix systems like OS X and Ubuntu, We can see the inode of root directory is 2. Then what is the inode 1 used for?
1
vote
1answer
180 views

How to setup boot scripts to save orphan inodes after improper shutdown?

after abnormal shutdown in dmesg I have [ 16.107445] EXT4-fs (dm-1): INFO: recovery required on readonly filesystem [ 16.107450] EXT4-fs (dm-1): write access will be enabled during recovery [ ...
2
votes
4answers
964 views

Does the inode change when renaming or moving a file?

in PHP the fileinode() functions returns the inode of a file. I was wondering if I can use it to determine if a file was renamed, moved or modified. I did some tests and it seems the inode stays the ...
4
votes
2answers
165 views

What is the downside of having many inodes?

Too few inodes can result in you not being able to store anymore files. What is the the downside of having many inodes ? (more than default)
1
vote
1answer
133 views

How to speed up directory listing on high-inode partitions?

I have almost 7,000 files in a single directory which makes loading that particular directory a tedious and time-consuming one. Is there any way to list and perform operations on files in that ...
1
vote
1answer
22 views

How to display metainformation for different kinds of time of a file ?

As far as I know each name within a path, e.g. /name1/name2/name3, is allocated to one inode. This inode is a collection of meta information for each name (file or directory). Some of these ...
2
votes
1answer
97 views

Should I increase inode count for a rsync backup volume?

Considering rsync used for incremental OS backup creates hardlink farms for all non-differing files, if I use it to backup a large, slowly-changing system regularly to a dedicated volume, I'm worried ...
5
votes
1answer
203 views

What are the implications of using an inode_ratio of 16384 in terms of storage use on ext4?

I'm assuming that this means that if the average file stored (including directories etc) is less than 16384 bytes, it may be possible to run out of inodes before using the full storage capacity of the ...
1
vote
1answer
87 views

How does one set up a Linode with a certain number of inodes?

Normally when one creates a Linode, they choose a plan, and then deploy a Linux distribution, and choose how much of the disk to allocate. Normally there is a swap partition and a main partition. But ...
-1
votes
1answer
15 views

Number of occupied inodes via Quota?

Need help in determining how to do the following: Using the quota command, what is the number of occupied inodes by you in your pool account home directory? Find them out, with what type of file how ...
3
votes
3answers
365 views

How to use all the inodes

Without creating a file can I use any inode which is free? I want to write a script that will use all free inodes in the system. is it possible?
1
vote
1answer
146 views

At Backup, when would the filesystems inode numbers matter?

background: Being somewhat of a coward I have up to now dd whole filesystems for backup. Major drawback has become the excessive use of memory for those complete backups (which unfortunatelly also ...
1
vote
2answers
445 views

Why does find -inum iterate through the whole filesystem tree?

It surprises me to see find iterate/walk through the complete filesystem when I do a simple find -inum 12345 Without background info it seems to me that there should be much easier ways for to tell ...
1
vote
1answer
221 views

How are large directories stored (one inode or many?)

I've been studying up on the ext2 file system and inodes, and I'm not quite understanding a few things. How big is an inode? The output from tune2fs says its 256 for my system, so is that 256 byes? ...
3
votes
1answer
1k views

Unreferenced inodes on EC2 linux instance

I have an Amazon EC2 instance which I am using as a NFS file server. It's using a 5x1TB volume RAID0 array. The system is very I/O intensive and files are being written/copied/deleted through the NFS ...