Skip to main content

Questions tagged [inode]

Data structures used to store metadata for each file on a Unix/Linux filesystem.

0 votes
0 answers
81 views

macOS: How do I find which file on an APFS disk is associated with a specific `doc-id` and/or `file-id`?

I am on macOS 14.5 with APFS formatted SSD. Disk Utility always reports the same error: error: doc-id tree: record exists for doc-id 1341220, file-id 8567077 but no inode references this doc-id. I ...
HirsuteJim's user avatar
0 votes
0 answers
173 views

How to get the total actual number of inodes for file system?

In the Linux terminal I can do df -i to show how the inodes are allocated. That is explicitly not what I need. What is the terminal command needed to reveal how many inodes are available to the file ...
John's user avatar
  • 2,147
0 votes
0 answers
182 views

ext4lazyinit and forcing to have similar times as an ext4 format time, advantages and disadvangages

I saw this question and while 2 years is a long time, can anybody share anything about any progress on ext4lazyinit. I am specifically interested in this statement by Ted Tso - So that is what the ...
shirish's user avatar
  • 479
0 votes
0 answers
467 views

Recovering inode connection on ext4 fs

I faced some non-standard behavior in ext4 partition on my external drive. After i disconnect my disk from laptop and reconnect again i witnesssed something odd: i somehow lost some of my files... Or ...
Mykola Kikets's user avatar
0 votes
0 answers
114 views

Can I force Linux to write data at the start of a file system?

TLDR; Is there a command to force Linux to write a file (for example a PDF file, MP3, anything really) at the start of a file system ? I don't thing that # dd does the trick, because the inode table ...
ChennyStar's user avatar
1 vote
1 answer
126 views

WSL Ubuntu. How to remove a file with 0 hardlinks?

I somehow managed to end up with the following: ls -la: total 0 drwxrwxrwx 1 umain umain 4096 Jan 30 12:32 . drwxr-xr-x 1 umain umain 4096 Jan 30 10:57 .. -rw-r--r-- 0 umain umain 0 Jan 30 12:32 ...
D.Mill's user avatar
  • 121
1 vote
1 answer
241 views

Are /var/mail/root and /var/spool/mail/root hardlinks for the same inode?

Just found out this: # diff /var/mail/root /var/spool/mail/root # (nothing) # ls -i /var/mail/root /var/spool/mail/root 1284 /var/mail/root 1284 /var/spool/mail/root Same content, same 1284 inode ...
colemar's user avatar
  • 61
2 votes
1 answer
35 views

Inconsistent behavior from 'find' on zfs under Linux

I was checking to see if I had multiple copies of python on my system today, and I got some super strange behavior from find: mark@neverland:~/repos/lpod-python$ ls -i /bin/python3.10 534638 /bin/...
MTippetts's user avatar
0 votes
1 answer
248 views

Can rsync --remove-source-files to the same drive reduce fragmentation?

I know that rsync with --remove-source-files (which I use instead of mv so I can merge directory hierarchies) creates new inodes: stat 2021_07_30_20_18_17.pdf~ rsync --remove-source-files ...
Sridhar Sarnobat's user avatar
0 votes
1 answer
44 views

Linux + what are the preferred options in order to resolve inodes that reached 100%

we have RHEL machine , and from df -i , we can see that some partitions are with 100% ( about inodes ) , in spite by df -h we have space Note - disks are VMDK disks df -h /dev/sdc ...
King David's user avatar
0 votes
1 answer
163 views

change windows partition device number as reported by cygwin stat

I have two partitions with the same device number: $ stat -c "%D" /cygdrive/c ec6d967e $ stat -c "%D" /cygdrive/g ec6d967e I believe this is because G: was restored from an image ...
cjfp's user avatar
  • 21
1 vote
1 answer
355 views

fix corrupt file with same inode than an other (linux, ntfs)

While copying thousands of images on a new disk with a pi (raspbian), rsync stopped with an error, impossible to move temp file to correct file name. The real file name actually exists but has the ...
cmbarbu's user avatar
  • 139
1 vote
1 answer
407 views

Trying to understand how the deletion of hard links relate to the freeing up of values in the inode table?

When a hard link is deleted, the link is removed but the contents of the file itself continue to exist (that is, its space is not deallocated) until all links to the file are deleted. My understanding ...
Usernamehere's user avatar
5 votes
2 answers
6k views

Will long time ext4lazyinit damage the drive? Why initializing inode tables in ext4 (no need any kinda init in NTFS)? etc

I never pay attention on ext4lazyinit before. But today, after I format my 4TB external USB harddrive and the first mount, the led light keeps blinking without any writes and reads. I figured out that ...
sgon00's user avatar
  • 1,005
0 votes
1 answer
2k views

How many inodes does a file, a folder take?

After checking a lot of information on the Internet, it is still not quite clear for me how many inodes a file and a folder takes. Also, I noticed that inodes are shown in kilobytes and not as ...
t7e's user avatar
  • 720
4 votes
2 answers
2k views

Why /proc and /sys have inode 1?

The directories /proc and /sys have inode value 1 even though it means "bad block". Both of them are functioning and I have another linux machine that in addition to these two, /boot also has inode 1. ...
Adam Katav's user avatar
3 votes
0 answers
294 views

Analyse allocated space in Ext4 partition to improve data recovery efficiency

I'm trying to use Lubuntu to recover as much data as possible from a failing 4TB hard disk drive. According to GParted the main partition, formatted in Ext4, contains only 553GB of data. I attempted ...
GabrielB's user avatar
  • 855
0 votes
0 answers
212 views

On NFS, are multiple opens of a file guaranteed to get the same inode?

I'm having a hard time finding information on this. Most people seem to care if inodes are unique, which is not my concern. What I need to know is whether opening a file multiple times from a process ...
Dana Robinson's user avatar
1 vote
0 answers
518 views

Reading log files using logstash which rotates every day

I am reading a log file using file input plugin in logstash and sending this logs to elastic search. Log file is rotated at every 00:00. When I rotate log file, the file is zipped and moved to a ...
iamvishnuks's user avatar
0 votes
1 answer
638 views

Remove files with strange name, no inode name, and not shown by ls

It all started in windows , where I found on a USB stick key several files with no name or with strange names, listed as created in 1980 and that could not be removed, as shown below . The error ...
Fabio Marroni's user avatar
3 votes
1 answer
10k views

Inodes that were part of a corrupted orphan linked list found. How to understand what caused it and how to solve?

I bought a Centurion Nano from the now defunct Alpha Computers, it ships with Alpha OS (that is essentially a tampered Ubuntu): $ cat /etc/os-release NAME="Alpha OS" VERSION="1.0.0 Polaris" ID="alpha-...
Arjuna Del Toso's user avatar
1 vote
3 answers
2k views

remove a file with corrupted name

So this happened: $ ls ''$'\342\200''abc2.16.5' $ ls | od -c 0000000 342 200 a b c 2 . 1 6 . 5 \n $ ls -il 76236897 -rw-rw-r-- 1 mob users 0 Aug 16 17:52 ''$'\342\200''abc2.16.5' ...
mob's user avatar
  • 262
4 votes
1 answer
324 views

What is the fastest way to make daily backups for 500k+ files?

We have an application that has generated so far over 540k images. The images are kept in a tree structure which is using 5 million Inodes so far. We would like to backup the data daily in a remote ...
raullarion's user avatar
1 vote
0 answers
265 views

How do I modify an ext filesystem item given its inode number?

How do I modify a file/directory given their inode numbers? Those inodes do not appear on a mounted filesystem as traversable directories / readable files and as such are undiscoverable by find ...
PF4Public's user avatar
  • 366
0 votes
1 answer
558 views

accidentally clobbered directory using `mv` instead of `mv -t`

I accidentally did mv file /an/important/directory instead of mv file /an/important/directory/ or mv file -t /an/important/directory, so it now looks like /an/important/directory/ is clobbered. (I ...
isomorphismes's user avatar
2 votes
1 answer
11k views

What is the difference between FAT and Inode?

Since both are used to map the usage of disk space then how are they different from each other?
Rashid's user avatar
  • 139
0 votes
1 answer
101 views

Ubuntu 14.04: "Home" inode on desktop

Ubuntu 14.04.5 I have an unwanted icon on my desktop, that opens Nautilus in the home directory. My home directory has not actually moved to the desktop. Still is in place under /home/myUserName. ...
Christos's user avatar
0 votes
1 answer
1k views

How do I determine the physical inode limit?

How do I determine the maximum number of inodes physically possible? Or is this a software limit? I work on a GPFS file system. According to /usr/lpp/mmfs/bin/mmlsfileset gpfs0 -i I have a ...
irritable_phd_syndrome's user avatar
1 vote
1 answer
74 views

copying file from hfs+ to remote samba - preserving ownership and permissions

I've started backing up my file from my local OSX machine to remote samba filesystem. however, it seems that it doesn't copy the permission alright : here's my mount configuration: /Volumes/myvol (...
Zohar81's user avatar
  • 283
1 vote
2 answers
10k views

Tar directory to file in the directory being tar'ed

I have a mount-point, /media/xvdf1 which I use bindfs to mount at /var/lib/jenkins/jobs with user/group jenkins. I wish to back it up, but I do not have enough space on the other partition. After ...
Janus Troelsen's user avatar
13 votes
1 answer
31k views

What is the difference between a disk block and a sector?

I know that a sector is the unit in which a track is splitted, but I had this doubt since I was looking for information about the maximum number of pointers that an inode can support. I found that ...
alberto's user avatar
  • 197
2 votes
1 answer
265 views

On OS X, saving breaks hard links

I'm using OS X 10.10.5, and I'm seeing a strange issue with hardlinked files. When I update one of the linked files and save the change, the other linked file becomes blank -- a zero-byte file. This ...
soldrinero's user avatar
1 vote
0 answers
333 views

How many inodes I need?

I'm running a Buildroot image that has not the -i flag for df. I have near 100 MB of free space, but when I try to add a nodejs module using npm install I get the error "no free space left". I guess ...
Mark's user avatar
  • 438
0 votes
1 answer
352 views

Can't find why inodes running out

I have a Xen VPS with Debian Linux installed with ext4 filesystem. Once I found that all inodes are used. I checked this: ~# df -i Filesystem Inodes IUsed IFree IUse% Mounted on rootfs ...
Ticksy's user avatar
  • 173
0 votes
2 answers
99 views

Is it possible to prevent an application remove a file but allow it write on OS X?

I'm installing Xcode from Mac App Store but sadly fails every time near finish with Xcode failed to download Use the Purchases page to try again. message. Except once that I copied pkg inside $...
Al3n's user avatar
  • 184
0 votes
1 answer
53 views

Discrepancy finding and counting all files on the system

I have been researching the different methods of counting up all files on my system. In my case, I want all the files starting at / and going into subfolders. Here is what I have come up with so far: ...
user53029's user avatar
  • 191
9 votes
2 answers
32k views

"Disk quota exceeded" when writing to /tmp, but plenty of space (linux)

i have a VPS. It's managed with the notorious parallels plesk. today i started seeing messages (via wordpress at first, but also from the command line shell), saying: "Disk quota exceeded". user@...
Berry Tsakala's user avatar
0 votes
1 answer
339 views

Is there a way to set the number of inodes in VirtualBox when creating a VDI?

Using VirtualBox 4.3.26 in a Windows 7 host to create Ubuntu 14.04 guest. One of my main reasons to do so is process large numbers of small files, taking advantage of a SSD drive on the host. I was ...
Jacob Zwiers's user avatar
1 vote
0 answers
2k views

Is it possible to limit the number of inodes for a user?

I want to limit the resources available to user by setting a limit on the number of inodes they can create. Is there a way to do this?
user420733's user avatar
2 votes
1 answer
3k views

"No space left on device" when writing to NTFS on Ubuntu

I'm on Ubuntu 12.04 and want to backup data to my external hard drive which is NTFS. When running cp -rp or rsync, I get no space left errors like this: `rsync: mkstemp "/media/Expansion Drive/.../...
Philipp's user avatar
  • 201
1 vote
1 answer
2k views

How to remove directory flag?

I have a .trp video container witch is shown as a directory. Is there a quick way to remove the directory bit from the inode, so the folder is shown as a file? (Not sure if this solves my problem but ...
altf4's user avatar
  • 11
1 vote
1 answer
1k views

Which file attributes are stored in the directory entries and which in the inodes?

I want to do some deduplication of old files, replacing duplicates with hardlinks. To minimize loss of metadata, I want to set the directory entry attributes of each new hardlink to the attributes of ...
ShadSterling's user avatar
  • 1,519
6 votes
2 answers
6k views

XFS Incorrect statement of "No space left on device"

I have a server setup of an XFS partition on LVM on a Ubuntu 14.04.1 LTS. While copying files to the home partition, "No space left on device" is displayed. df -h displays sufficient space: /dev/...
Purf's user avatar
  • 63
1 vote
1 answer
549 views

Can a file be created from an inode?

There is an apache process which logs to an access and error log. The two log files have been deleted, but the apache process has not been restarted or reloaded so it still has open filehandles for ...
Matthew Franglen's user avatar
0 votes
0 answers
478 views

All of the NTFS hard links damaged, where are those 0kb hardlinks stored and how to recover them?

This is Windows 7 x64 sp1 on a NTFS file system. All hardlinks within C:\Windows\System32 folder disappear, and the Windows can't boot, because even the osloader, C:\Windows\System32\boot\Winload.exe ...
Rex's user avatar
  • 101
2 votes
1 answer
4k views

From where comes the inode number of a file mounted through NFS?

I asked a question on codereview to know if I could safely replace the following code: :inode => [stat.ino, stat.dev_major, stat.dev_minor], which threw NotImplementedError because of jruby not ...
Aldian's user avatar
  • 143
2 votes
1 answer
751 views

Can inode numbers be reused in HFS+?

Does the HFS+ file system reuse inode numbers after entries are fully deleted? I am trying to determine if the inode number always grows or if the numbers are reused.
BobaFett's user avatar
0 votes
0 answers
337 views

Traversing through the inode to find the contents of the file stored in different data blocks

I am reading about the EXT2 filesystem and I got an understanding about it. Every file system comprises of data and metadata (inode). The file system is divided into a number of blocks with 4 main ...
Angus's user avatar
  • 119
4 votes
1 answer
1k views

Zero inodes even after formatting hard disk

I have an external 1Tb harddisk which due to some reason was showing following under df -i Filesystem Inodes IUsed IFree IUse% Mounted on /dev/sdb1 0 0 0 - ...
user13107's user avatar
  • 303
0 votes
1 answer
2k views

Difference between 'du' and 'du -b'?

root@host:/var/log/apache2# du access.log -bh 753M access.log root@host:/var/log/apache2# du access.log -h 1.2G access.log Why is there such a huge difference in size for the same file?
kn330's user avatar
  • 123

15 30 50 per page