1

How do I create an EXT4 file system with block size 1024 and no reserved blocks?

5
mke2fs -b 1024 -m 0 -t ext4 /dev/whatever

or

mkfs.ext4 -b 1024 -m 0 /dev/whatever

-b gives the block size and -m gives you the reserved blocks percentage.

Replace /dev/whatever with the partition you want to format.

| improve this answer | |
  • 1
    To anyone reading this, 5% reserved blocks (default on most ext* filesystems) means non-root users cannot use any more disk space once the disk is 95% full - in effect the "disk space" they see is 5% less than actual - but root users can continue to use the remain disk space. This prevents bad things happening with some crucial system services when they can no longer write to disk. You probably don't need any reserved blocks for a partition that is only going to be used for user files. – thomasrutter Nov 7 '14 at 4:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.