On Sun, Mar 15, 2015 at 11:29 AM, Andrei Borzenkov
В Sun, 15 Mar 2015 11:14:38 -0600 Chris Murphy
пишет: 'mke2fs /dev/hdb' results in ext2 with 4KiB block size, so that's the default for ~13 years. However, I was allowed to format with blocksize 1KiB and I could read and write to it. But I can't think of any reason why you'd do this on purpose.
To reduce wasted space with small files?
Fair enough. For a 102MB partition: # mkfs.ext3 /dev/sdb1 mke2fs 1.42.11 (09-Jul-2014) Creating filesystem with 104388 1k blocks and 26104 inodes # mkfs.ext4 /dev/sdb1 mke2fs 1.42.11 (09-Jul-2014) Creating filesystem with 104388 1k blocks and 26104 inodes For a 5.94g LV: # mkfs.ext4 /dev/mapper/VolGroup00-LogVol00 mke2fs 1.42.11 (09-Jul-2014) Creating filesystem with 1556480 4k blocks and 389376 inodes # mkfs.ext4 -b 1024 /dev/mapper/VolGroup00-LogVol00 mke2fs 1.42.11 (09-Jul-2014) Creating filesystem with 6225920 1k blocks and 389120 inodes # mke2fs -b 1024 /dev/mapper/VolGroup00-LogVol00 mke2fs 1.42.11 (09-Jul-2014) Creating filesystem with 6225920 1k blocks and 389120 inodes Weird, I don't know why -b 1024 gave me an error with a much older e2fsprogs from CentOS 4.0, but that's ancient times so I'm not going to try and find out what's going on. Anyway, clearly the default for a long time now is 4KiB on anything other than a small partition. -- Chris Murphy -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org