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.
62
questions
35
votes
7
answers
33k
views
Find directories with lots of files in
So a client of mine got an email from Linode today saying their server was causing Linode's backup service to blow up. Why? Too many files. I laughed and then ran:
# df -ih
Filesystem Inodes ...
33
votes
2
answers
28k
views
False disk full error: apt-get unable to install or remove
I encountered the following error while upgrading my Ubuntu 12.04 server. Now apt-get is unable to install or removed any package.
Unpacking linux-headers-3.13.0-62 (from .../linux-headers-3.13.0-...
30
votes
4
answers
57k
views
Running out of inodes
I cannot update Ubuntu because I have 99% inode usage. What is the easiest way for me to alleviate this problem?
Thanks for your help.
17
votes
3
answers
27k
views
How can I create an EXT4 partition with an extra large number of inodes?
About inodes
In Ubuntu, each file and directory is a so-called inode. You can use df -i to check the number of inodes in use and available for all mounted filesystems.
Question
If you create a new ...
10
votes
5
answers
12k
views
/usr/src is eating up all inodes
It seems /usr/src (apparently old kernels) used up all my inodes:
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda4 489600 489600 0 100% /
devtmpfs ...
6
votes
1
answer
3k
views
How do I remove old kernels despite 100% inode use in /usr?
I was trying to update my packages today:
$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f ...
6
votes
1
answer
4k
views
Are there any drawbacks to creating ext4 file systems with maximum inodes?
Are there any drawbacks to creating ext4 file systems with 2^32-1 inodes?
I have a 1tb drive and I would like to store 800 million to 1.5 billion small files on it. It seems that the max is 4 billion,...
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 ...
4
votes
2
answers
7k
views
Is possible to increase inode in ubuntu 16.04?
df -i shows
Filesystem Inodes IUsed IFree IUse% Mounted on
udev 1745003 593 1744410 1% /dev
tmpfs 1760785 914 1759871 1% /run
/dev/sda1 ...
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 '...
3
votes
2
answers
7k
views
apt-get -f install No space left on device (Ubuntu 14.04)
I'm tring to run
sudo apt-get -f install
Output:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were ...
3
votes
2
answers
5k
views
How to list files and their inode numbers in current directory?
How can I obtain list of items and their inode numbers in the current working directory ?
3
votes
2
answers
953
views
Free space issue Ubuntu 14.04 not loging in after update
I have updated my desktop pc to kernel 4.4.0-38 from 4.4.0-36 (that was ok).
After restart I couldn't log in into my computer anymore.
With advanced from grub, i selected the old 4.4.0-36 kernel and ...
2
votes
1
answer
123
views
What does `fd01h/64769d` mean in Device and `142368` in Inode?
When I checked the state of a file:
[root@iz2ze9wve43n2nyuvmsfx5z ~]# stat test.py
File: ‘test.py’
Size: 33 Blocks: 8 IO Block: 4096 regular file
Device: fd01h/64769d Inode:...
2
votes
1
answer
9k
views
Ran out of inodes - 100% Full [duplicate]
I am using Ubuntu 16.04 on AWS EC2 instance which has been working fine until this problem.
My problem is that I've used 100% of available inodes, as I discovered with this command:
$ df -i
...
2
votes
1
answer
7k
views
Cannot create directory: No space left on device
I have a .tar file of 13 GB. When I am trying to extract it on a drive it is showing me an error after completing of 3 or 4 GB extract.
Error is:
Cannot create directory: No space left on device
...
2
votes
1
answer
795
views
how can I read the specific block of a file
Suppose I have a file /foo/bar. stat /foo/bar can show the inode information of it -- something like this:
Size: 9511068 Blocks: 18584 IO Block: 4096 regular file
Device: ca01h/51713d ...
2
votes
0
answers
849
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 ...
2
votes
0
answers
244
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
...
2
votes
0
answers
412
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 ...
2
votes
0
answers
797
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 ...
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 ...
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. ...
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, ...
1
vote
1
answer
3k
views
There is no space left on the device
sudo df -h
udev 982M 0 982M 0% /dev
tmpfs 200M 5.3M 195M 3% /run
/dev/vda2 40G 5.2G 33G 14% /
tmpfs 1000M 0 1000M 0% /dev/shm
tmpfs ...
1
vote
1
answer
2k
views
Increase number of inodes on a disk
Can I increase number of inodes on a disk? How can I increase it ?
I am out of inodes just because of so many small files in disk.
1
vote
1
answer
1k
views
apt-get unable to autoremove packages filling up Inodes
An old Ubuntu 10.04 server is complaining about unmet dependencies. When I run apt-get -f install I get back a "No space left on device" message:
$ sudo apt-get -f install
Reading package lists... ...
1
vote
2
answers
1k
views
Linux Headers not upgrading. It says "no space" when I have lots
Problems with my linux-headers in a Ubuntu 13.10 upgrade.
It says:
E: / var/cache/apt/archives/linux-headers-3.11.0-15_3.11.0-15.25_all.deb: unable to create `/ usr/src/linux-headers-3.11.0-15/arch/...
1
vote
2
answers
2k
views
How do you find out when a specific kernel version was last booted?
Find out when a Specific Kernel Version was last booted
For those who manually install kernel versions the /boot can grow large over time. I'd like find which kernel versions haven't been booted in a ...
1
vote
2
answers
604
views
Unattended-upgrades broke persistent live media
I made a boot/installation media of Mythbuntu 16.04 by mkusb 10.6.6. I run a persistent live session. Unattended-upgrades started to operate and install e.g. new kernel on the USB flash drive. The ...
1
vote
1
answer
177
views
Didn't return all hard links to a file
I failed to get all hard links to a file with find / -inum *.
linux-5.5.9$ ls -lai
total 856
1048577 drwxrwxr-x 24 root root 4096 Mar 12 14:18 .
linux-5.5.9$ sudo find / -inum 1048577
/home/...
1
vote
1
answer
876
views
how to know how many hardlink count an inode has and where are they located
I need to know how many hard-links pointing to a certain inode.
And where are those hard-links located in?
1
vote
0
answers
208
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 ...
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 ...
1
vote
0
answers
473
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
1
answer
247
views
Can a hard link refer to a file in a different filesystem?
Can a hard link refer to a file in a different filesystem? Why or why not?
0
votes
2
answers
170
views
a directory that can't be seen on command line but is visible on nautilus; and that cannot be deleted
Inside my video directory I've noticed today a new directory called [...]mp4__QhYixM
I can see it when I open the video directory on Nautilus, but it's invisible on Nemo and via command line.
On ...
0
votes
1
answer
6k
views
Make ext3 filesystem with 128 bytes inode size
I need to format external hard disks to EXT3 MBR with the iNode size set to 128 bits. This is for a very specific use, i.e. the delivery of DCP to digital cinema servers.
I'd like to be able to do ...
0
votes
2
answers
2k
views
Which Linux header(s) to remove?
I have run out of inodes (IUse% = 100%) and when I run the command from this answer, /usr/src contains the largest number of files (linux-headers*). Based on this answer, I want to remove the old ...
0
votes
1
answer
165
views
Inexperienced user needs help resolving boot issue
Summary of issue:
I had to hard power off my laptop while a program was working with a file, and, upon booting back up, Ubuntu attempted to fix the resulting file system issues. During this process, ...
0
votes
1
answer
9k
views
Ubuntu 20.04 won't boot (filesystem has errors), fsck didn't fix, recovery mode fails
In late November 2020, I installed Ubuntu 20.04 on an external hard drive,
and I was using it with no significant problems. Then when I tried to boot
it and log in (via the usual way) on Dec 21, it ...
0
votes
1
answer
400
views
Is metadata (dates) for hardlinked files shared or unique? Inodes and linked files!
I always assumed that the dates in each inode were maintained separately even with hardlinks.
However if I change (touch/slap) the date of a hardlink file all other hardlinks to the same file show ...
0
votes
2
answers
933
views
Booting to initramfs
I ran apt-get upgrade on Ubuntu 12.04 LTS and it did not finish due to an error (run out of free inodes). After reboot the GRUB menu appeared and when tried to boot my OS it displayed:
/dev/disk/by-...
0
votes
0
answers
21
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 ...
0
votes
0
answers
36
views
Says i'm out of storage but i'm not [duplicate]
When I try and run any app or tab auto complete it says I'm out of space ex. -bash: cannot create temp file for here-document: No space left on device
But when I run df -h it says I have 67% space ...
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 ...
0
votes
0
answers
32
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 ...
0
votes
0
answers
120
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), ...
0
votes
0
answers
151
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
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 ...