I searched the Internet, but I was not able to find a satisfying answer to my problem. The Problem I'm encountering currently is, that I'm transitioning my data from a NTFS Partition to a ext4 partition. What surprised me was the fact, that I could store less data on the same harddrive with the ext4 filesystem. After investigating a little I found out that this might have something to do with the Inodes of ext4.
me@server:/media$ LANG=C df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda1 3815552 31480 3784072 1% /media/storage
/dev/sdb1 1905792 1452 1904340 1% /mnt
When running the command
me@server:~$ sudo find /mnt -type f | wc -l
1431
it tells me that I have 1431 files on the harddrive, each being around 4-8GB. So basically I have too much Inodes for very few files.
My questions are:
- How can I change the number of Inodes now?
- Is there maybe a better filesystem for just storing files?
tune2fs -l <device>
. As for a better filesystem for big files: people seem to like Xfs. Historically Xfs used to have various issues though. – lcd047 May 13 '15 at 17:50