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.
About this entry
You’re currently reading “ext3 file system tweaks,” an entry on /bin/bash
- Published:
- January 14, 2008 / 10:59 am
- Category:
- Tweaks
- Tags:
No comments yet
Jump to comment form | comments rss [?] | trackback uri [?]