Questions tagged [inode]

An inode (index node) is a data structure found in many Unix file systems. Each inode stores all the information about a file system object (file, device node, socket, pipe, etc.), except data content and file name.

27 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
0 answers
3k views

orphaned inodes on root file system (ext4); persistent problem

On my trusty systems (VMs under vmWare, desktops, and laptops), we have the following issue. The root file system seems to have inodes that are never marked as "free". After a month of a working ...
mathic's user avatar
  • 51
4 votes
2 answers
2k views

How to prevent users from deleting files that are already in use?

Consider this scenario: User is executing a command on a file. This file becomes 'in-use' now. $ tail -f somefile.log In another shell, user deletes the file. $ rm somefile.log Now, this file is '...
Shaakunthala's user avatar
2 votes
0 answers
762 views

How to delete a corrupted directory, can't see the inode

"Something happened" many months ago and a folder was corrupted. I want to delete that folder - or rather, I want to remove the inode that points to the space that was assigned to that ...
TonyG's user avatar
  • 187
2 votes
0 answers
230 views

My inode count is drastically larger than file and folder count in a mounted partition

I've been dealing with an issue whereby df is reporting a much larger usage of an exfat partition mounted onto my system from a USB drive. df -h gives: Filesystem Size Used Avail Use% Mounted on ...
Jesal Rajdev's user avatar
2 votes
0 answers
365 views

Ubuntu Server 20.04.1 EXT4-fs error (device sdb1)

This comes from Main HD is full. Home Assistant on Docker installation After deleting /var/log/kern.log (which was about 8GB) I started monitoring it (tail) and nothing was written to it. All I can ...
vazquezjm's user avatar
2 votes
0 answers
770 views

Reason for orphaned inodes and boot failure fixable by manual fsck?

my first post here. I am running 18.04.1 and I have recently gotten an error while booting - the screen remains black after POST and nothing happens. I went into recovery mode and found that my root ...
Michal Tomaszuk's user avatar
2 votes
1 answer
3k views

How to increase space allocated to inode in XFS filesystem

We are facing a problem with a ceph osd node which uses an XFS file system. The mount has become non-writeable. It gives the following error: root@fab-prod-ceph-h3:/var/lib/ceph/osd/ceph-6# touch ...
Hrushikesh's user avatar
2 votes
1 answer
1k views

16.04 Can't login after sleep - Clearing orphaned inode

I put my computer in sleep before going home from work. When I got in the next morning moving the mouse and hitting the keyboard wouldn't wake it up. So I held the power button for a hard shutdown. ...
Under-qualified NASA Intern's user avatar
2 votes
2 answers
5k views

Booting problem? Need to fsck every time in order to make everything work!

I own an old laptop (model emachines e525) with 4GB of RAM and I installed Ubuntu 16.04. Everything was fine during and after the installation. I updated it and installed just a few apps (vlc, ...
Gordana Marcetic's user avatar
1 vote
0 answers
193 views

How many inodes does a folder use?

I'm on Ubuntu 18.04. I have a folder with lots (several hundreds thousands) files. I would like to see how many inodes does this folder use on the file system. How to achieve that? The df -i command ...
s.k's user avatar
  • 1,280
1 vote
0 answers
91 views

Laptop freezing on shut down [Ubuntu 16.04.01]

I have a problem with my laptop, which is freezing every time I shut it down. The issue began a couple of weeks ago but I cannot think of any change I made nor application I installed which might have ...
secan's user avatar
  • 11
1 vote
0 answers
464 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 ...
bob dylan's user avatar
  • 371
0 votes
0 answers
15 views

What is the field inside the struct ext4_inode responsible for providing pointers to where data is actually located on disk?

I've been reading the ext4 documentation on kernel.org and in the struct ext4_inode section it is show a field named i_block. It says "Block map or extent tree". Does this field contain ...
Kode1000's user avatar
0 votes
0 answers
27 views

After replacing the charging port on a pavilion laptop I'm getting system freezes and orphaned inodes showing up during reboot

The time to failure is highly variable with the longest operating run being ~13 hours fsck never reports any problems and shutting down before a freeze happens produces a clean restart with no ...
noah healy's user avatar
0 votes
0 answers
31 views

Intermitently lossing touchpad and cursor

Ubuntu 22.04.2 LTS From time to time the cursor disappears and I cannot get it back and the system doesn't respond to the touchpad either. The only way I can get around this is to reboot. Whenever I ...
MitcheCA's user avatar
0 votes
0 answers
93 views

How can I remove a folder that cannot be deleted (two folders in the same directory have the same inode number)?

I have tried using rm with various flags, such as -d and -r (-r was successful as folder is now empty), tried moving to trash through GUI (which produces error that file cannot be moved to trash), ...
001121100's user avatar
0 votes
0 answers
132 views

How to save orphaned inodes?

Is there a way to have fsck save the orphaned inodes so I can inspect what they were instead of having them cleared? Thanks
Jack's user avatar
  • 125
0 votes
1 answer
5k views

Having issues with fixing /dev/sda2 recovering journal

Today I saw that Ubuntu was cleaning up orphaned inodes. Here's the boot log message: /dev/sda2: clearing orphaned inode 396229 uid=1000 gid=1000 mode 0100600 ,si /dev/sda2: clearing orphaned inode ...
GravvyBoiiz 's user avatar
0 votes
0 answers
46 views

How do we diagnose delays After large number of files are deleted?

This one needs a Linux/Ubuntu guru. A runaway program generated a large number (at least a million?) of files into /var/log. Even after deleting all (?) rogue files, any query on the folder/tree now ...
TonyG's user avatar
  • 187
0 votes
1 answer
273 views

Broken inodes on Ubuntu 18.04 due to software bug or degrading hardware?

Since a week or so I encounter spontaneous errors like system freeze of the desktop or the system only boots into recovery mode and complains about broken inodes. Once my root-partition was even ...
oystermanu's user avatar
0 votes
0 answers
73 views

User directory inside home directory MISSING

I tried resizing the partitions while the system was on and when I restarted the system, I was unable to login. Eventually when I could, I couldn't find my data. Since I haven't reinstalled the ...
Rajat Jain's user avatar
0 votes
0 answers
1k views

Is it safe to delete linux header file manually?

I recently have inode full issue on a production server. What I have done are: Sort folders according to how many files they have by: sudo find / -xdev -printf '%h\n' | sort | uniq -c | sort -k 1 -n ...
Mars Lee's user avatar
  • 101
0 votes
0 answers
375 views

Ubuntu takes much time to boot cause of cleaning orphaned inodes

So usually my system boots almost instantly (I have a fast SSD) but for some time now after some freezes that seem to now to have disappeared it used to take like 2 minutes or so maybe more to the ...
papajo's user avatar
  • 2,987
0 votes
1 answer
2k views

fsck results in a lost+found file that causes fsck to fail and cannot be removed

I have an external drive with a single partition and ext4 filesystem with some corruption. A previous fsck was aborted by an unexpected power loss, and now I have a bad directory in lost+found that ...
Jordan Gates's user avatar
0 votes
1 answer
1k views

Running out of inodes constantly, sessionclean throwing up errors

I keep running out of inodes (Ubuntu 14.04). In my root mail I get the following message: From [email protected] Sun May 29 04:09:01 2016 Return-Path: <[email protected]> X-Original-To: root ...
Matt's user avatar
  • 111
0 votes
2 answers
2k views

Recovering from apt-get upgrade gone wrong due to a full disk

I was performing an apt-get upgrade on an Ubuntu 12.04.5 LTS box that hadn't been updated in a little while and the upgrade failed due to 'No space left on device'. After a little while I worked out ...
Peter's user avatar
  • 1
-1 votes
1 answer
520 views

help free inode but no space with weird percentage

i'm kindof a newbie at this , but when i list the disk usage with df command ,i get that the percentage of inodes used is 1 percent (%iused = 1%)but the 99% of the filesystem is used ( only 1 percent ...
xxxx's user avatar
  • 1