ext3 file system tweaks

One of my student asked me if he could create a file larger than 2GB on an ext3 file system. Thus started my research and it was pretty easy. While creating the file system specify the block size and that would do the trick. The table below shows the maximum file size for different block size.

Block size Max file size Max filesystem size
1KiB 16GiB 2TiB
2KiB 256GiB 8TiB
4KiB 2TiB 16TiB
8KiB 2TiB 32TiB

Now to create the file system use mke2fs.

mke2fs -j -b 2048 /dev/sda5

the above example creates a ext3 file system with block size 2kb (specified in bytes) on the /dev/sda5 partition.

Advertisements
ext3 file system tweaks

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s