Questions tagged [inode]
For question pertaining to the inode (index node), a data structure in a Unix-style file system that describes a file-system object such as a file or a directory. Use this tag for questions about the inode data structure itself or questions about issues arising from querying or managing inodes in the scope of a filesystem.
344 questions
3
votes
1
answer
105
views
Is it a good idea to have inode size of 2048 bytes + inline_data on an ext4 filesystem?
I only recently "discovered" the inline_data feature of ext4, although it seems to have been around for 10+ years.
I ran a few statistics on various of my systems (desktop/notebook + server),...
1
vote
1
answer
82
views
Forensics to recover the second-to-last access timestamp of a file on btrfs on HDD
I searched online, to no avail. Is there some way to recover the access timestamp of my file on BTRFS, before the access timestamp which appears currently? Using HDD (not SSD). Please let me know. Is ...
0
votes
0
answers
87
views
Not able to modify inode metadata
I am working on a ext4 file-system tool that aims to delete files such that they are not recoverable later on. My goal is to clear the inode metadata of a deleted file, but despite my efforts, the ...
0
votes
0
answers
40
views
Unexpected network namespace inode when accessing /var/run/netns/ from pod in host network namespace
I'm running a Kubernetes cluster with RKE2 v1.30.5+rke2r1 on Linux nixos 6.6.56 amd64, using Cilium CNI.
Here's the setup:
I have two pods (yaml manifests at the bottom):
Pod A (xfrm-pod) is running ...
2
votes
0
answers
63
views
HDD Write Performance: Pre-allocate vs. Append (Inode Impact?)
When writing a large (10GB) file to an HDD, I'm considering two approaches for writing the data:
Pre-allocate: Create a 10GB file upfront and then write data sequentially (e.g., using fallocate on ...
2
votes
1
answer
120
views
Why does inode usage go from 1% to 100% on a single file creation?
Inode usage go from 1 to 100% on a single file creation in a raid array on Debian.
First, clean boot, then:
sudo cryptsetup luksOpen /dev/RaidVG/LVMVol CVol
sudo mount /dev/mapper/CVol /mnt/raid/
...
1
vote
2
answers
129
views
Two files with different contents in the linux overlay file system have the same inode
I'm learning about the linux overlay file system and I'm having a problem that's beyond my knowledge. Can anyone explain the technical rationale behind this?
mkdir ./{merged,work,upper,lower}
echo &...
0
votes
0
answers
41
views
Is there a way to use linux "find" and filter if specific process was the only one accessed it? [duplicate]
I am trying to find out a way to do incremental antivirus scan. My current approach under evaluation is using "find". You can see relevant question here: Is there a reason why I can't ...
0
votes
1
answer
228
views
Determine bytes per inode ratio of existing ext4 filesystem
I created a filesystem following this guide: https://wiki.archlinux.org/title/Ext4#Create_a_new_ext4_filesystem
However it looks like I made a mistake because the ratio for /dev/sdc doesn't add up:
...
1
vote
1
answer
522
views
resize2fs: New size results in too many block group descriptors
I want to replace the NVMe drive in an embedded computer that runs Linux. The original drive is a 256 GB gen 3 with 5 partitions. After cloning to a larger drive, partition 5, the data partition, ...
1
vote
0
answers
244
views
Kernel BUG at fs/inode.c:613 during installation of Debian 12.5.0
I used the Debian 12.5.0 ISO DVD image from the official website and wrote it to a USB flash drive via Rufus. During the "Load installer components from installation media" process got stuck,...
1
vote
1
answer
197
views
ext2 How to choose bytes/inode ratio
How approximately calc bytes-per-inode for ext2?
I have 7.3GB storage (15320519 sectors 512B each). I have made ext2 filesystem with block size 4096
mke2fs /dev/sda2 -i 524288 -m 0 -L "SSD" -...
1
vote
1
answer
265
views
Discrepancy between "df" and "du" on a CIFS network drive
When I run df -H, my network mount reports 100% usage:
user@system:/mnt/backup$ df -H
Filesystem Size Used Avail Use% Mounted on
...
//192.168.71.2/Linux-Database-...
0
votes
0
answers
79
views
Copying symlinks as symlinks
I’m attempting to copy a symlink of a file in one directory to another directory.
I need the copy to be a symlink, not a hard link or a broken symlink.
cp -A and cp -P generated broken (flashing) ...
0
votes
1
answer
676
views
Kali - ext4_find_entry checksumming directory block 0 freezing everything giving input/output error
I'm having some problems with Kali Linux installed on a Dell notebook. It is installed on half of my SSD in dual boot with Windows, but I installed Kali later, so GRUB is from the latter. Kali was ...