Possible Duplicate:
How can I increase the number of inodes in an ext4 filesystem?
An old headless no-X backup server I use has a small hard drive with three primary ext4 partitions: /
, /home
and /swap
. The system is unable to run updates, as there are insufficient inodes available on the 1.5GB /
partition. There is unused space available on /home
.
Would resizing the /
partition from a live GParted environment solve this? Would more inodes be created by this process?
This answer indicates that it is not possible to create more inodes after a filesystem has been created. I assume that this does not involve resizing the partition. This answer suggests recreating the filesystem to obtain more inodes.
rsync -aE
will do this, and it can even be done over a network. But try gparted first, I'm sure if you shrink home it will lose inodes and when you grow / it will get them. You can check before and after withfsck
. – goldilocks Jan 30 '13 at 08:20mke2fs
explicitly states “it is not possible to expand the number of inodes on a filesystem after it is created”.tune2fs
can't do it.resize2fs
can't do it. So what makes you think against all odds that it is in fact possible? – Gilles 'SO- stop being evil' Jan 30 '13 at 23:02resize2fs
changes the number of data blocks. A data block stores a fragment of a file; with more data blocks, you can store files whose total size is larger, but you still need one inode per file so at some point you may run into the inode limit. – Gilles 'SO- stop being evil' Jan 31 '13 at 12:43mkfs
on a larger partition. Does resizing the file system = resizing the partition? – SabreWolfy Feb 01 '13 at 14:39man mkfs.ext4
, search for-i
option (bytes-per-inode). "Note that resizing a filesystem changes the numer of inodes to maintain this ratio." Verified experimentally, resizing from 1G to 10G and looking attune2fs /dev/X | grep Inode
. (It's easy to experiment like this if you installed your system using LVM partitions & left yourself free space to play with :). – sourcejedi Jan 07 '16 at 13:52