The file system may have run out of inode . You can view the situation on them for all mounted file systems using the df -i command. example output (in the fifth column, the percentage of inodes used):
$ df -i Filesystem Inodes IUsed IFree IUse% Mounted on /dev/dm-0 920272 207134 713138 23% / udev 497545 440 497105 1% /dev tmpfs 499982 769 499213 1% /run tmpfs 499982 3 499979 1% /dev/shm tmpfs 499982 7 499975 1% /run/lock tmpfs 499982 14 499968 1% /sys/fs/cgroup /dev/sda1 124496 335 124161 1% /boot tmpfs 499982 9 499973 1% /run/user/1000
for a specific file system, you can specify the mount point (the author - / mnt / sdb1):
$ df -i /mnt/sdb1
or, even if the file system is not mounted, with the command sudo tune2fs -l /dev/sdb1 | grep -i inode sudo tune2fs -l /dev/sdb1 | grep -i inode . example output:
Filesystem features: has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize Inode count: 920272 Free inodes: 713166 Inodes per group: 8144 Inode blocks per group: 509 First inode: 11 Inode size: 256 Journal inode: 8 First orphan inode: 1863 Journal backup: inode blocks
Pay attention to the inode count and free inodes .
Unfortunately, after creating the ext * file system, it is no longer possible to change the number of inodes in it. It is necessary to re-create the file system (after saving all its contents somewhere), specifying, for example, a different type of use of the file system.
You can set the type with the -T usage-type mkfs.ext4 program.
For a list of types, see /etc/mke2fs.conf .
A very large number of inodes will be created, for example, for the type news (the smaller the inode_ratio , the more the inode will be created, and the file system will be broken up into a larger number of smaller pieces).
but you can, without specifying the type of use, transfer directly to the mkfs.ext4 program the desired inode_ratio using the -i parameter.
for example:
$ sudo mkfs.ext4 -i 4096 /dev/sdb1
warning : just don’t get carried away with inode_ratio reduction: each inode “selects” several bytes (set using inode_size , which is better not to change) the “useful capacity” for “service” information.
dmesg -T|tail -n 25and show us. - Ergil Osin