Stack Exchange Network

Stack Exchange network consists of 175 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.

3
votes
2answers
51 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 ...
0
votes
2answers
109 views

How to move recursive files from one directory to another and same name files rename the older one appending its modification time

I need to move recursively all the files from one drive to another and the same path/name files rename if different the older by appending to the file name the modification time. Same path/name files ...
3
votes
1answer
2k views

How does a directory inode keep its file list?

Does a directory inode use a plain array storing ( filename, inode ) pairs, or some kind of associative array { filename: inode }to speed up file lookup, or any other optimizations on a plain array? ...
2
votes
1answer
915 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
118 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. ...
1
vote
1answer
2k 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-...
1
vote
1answer
201 views

How to change inode size on EXT2 file

I am running Ubuntu on my MacBook Pro as I need to reformat a hard drive to EXT2 with iNode size of 128 to use for DCP delivery.
1
vote
1answer
627 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 [ ...
0
votes
1answer
163 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,...
0
votes
1answer
50 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 ...
5
votes
0answers
4k 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. ...
3
votes
0answers
1k views

Difference in space reserved for inodes in ext4 and XFS partitions

I am formatting a couple of 60G Logical Volumes (vg01-logs and vg01-monitoring) in one of our servers. These partitions will hold a large number of small files, so I want them with more than the ...
3
votes
0answers
2k 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 ...
3
votes
0answers
1k 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 ...
2
votes
0answers
183 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 ...
2
votes
0answers
163 views

Does a file move operation over SAMBA preserve the inode number?

If I have a directory exposed over a SAMBA share and a user, from either a Linux or Windows system, moves a file from one place to another on that share, does SAMBA know to ask the operating system ...
2
votes
0answers
1k 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 socket,...
2
votes
0answers
232 views

bad inodes reappear after fsck() for vps guests

I have several vps guests that were created by virt-resize. I do daily backups on the guests by creating a snapshot and rsync file contents. But some of them don't have a clean disk image. As soon as ...
2
votes
0answers
1k views

Ran out of inodes on NFS

I have a RHEL 6 box with an NFS mount, mounted using autofs. I copied a big folder, with a lot of small files there, and used up all of my inodes, but I still have 80% of my storage space left, this ...
2
votes
0answers
651 views

Odd Inode/Ram cache drops happening in CentOS

I run a CentOS 5.7 machine (64bit) with 24GB ram and 4x SAS drives in RAID10 setup. This machine runs nginx/1.0.10, php-fpm & xcache. About a month back the RAM usage of this machine has changed. ...
1
vote
0answers
47 views
+50

Why do ext2 inodes only have 12 direct blocks?

I'm currently writing a hobby file-system for fun. I was wondering if anyone knows why or where I could get information on the design philosophy of ext2. Specifically, I was wondering why each inode ...
1
vote
0answers
12 views

I Node and Data Retrieval

Is there a way possible to open a data block without the file if we know the i node number that it's linked to ? Is it possible to open the content in data block without the file ?
1
vote
0answers
54 views

'No space left on device' error thrown when generating large amount of files, but there is no clear limit being reached

Running a python script to generate millions of empty text files just for fun on my Mint machine (18.1 Serena) before I wipe it. Recently the script failed with this error: OSError: [Errno 28] No ...
1
vote
0answers
84 views

cygwin: ls -i reports wrong inode number for files in UNC path

I have a multiple-version backup, that uses hard links for files that have not changed from version to version, in my QNAP NAS. The backup target is an external EXT4 disk connected via eSATA to the ...
1
vote
0answers
445 views

How do I get ext3/ext4 filesystem features to apply in mke2fs?

As many of you know, ext3/ext4 have filesystem features that make up the special functionalities that they have already, some of these features you can get them from "dumpe2fs", for example this ...
1
vote
0answers
361 views

ext4 or NTFS lost all files of the last 2 years. How can I recover them?

Problem Suddently, all the files from feb-2015 to nov-2016 have disappeared from the filesystem. Context Over the last 2 years, the system repeatedly terminated abruptly for power-fail reasons or ...
1
vote
0answers
230 views

Selinux inode security struct allocation

i'm trying to understand allocation of inode_security_struct in Selinux. I looked for a source code of selinux and there is only one allocation of this struct on line 230 in hooks.c file. This ...
1
vote
0answers
45 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 ...
1
vote
0answers
76 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
1k 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 ...
1
vote
0answers
193 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 ...
0
votes
0answers
118 views

Whose `I-Node` does `netstat -ap` for unix domain sockets refer to?

What does I-Node mean in the output of netstat -ap for unix domain sockets? It seems not the same as the inode of the socket file: $ netstat -ap ... Active UNIX domain sockets (servers and ...
0
votes
0answers
435 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
0answers
155 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!...
0
votes
0answers
125 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
43 views

Recover content of a directory when the block where directory file is located is corrupted?

A user has a Personal folder in it's /home/user folder. Bad sectors appeared on the hard drive. If I vi the Personal folder file it's empty and if I go into it and I do an ls, the system gets stuck ...
0
votes
0answers
1k 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 ...