OpenWrt Forum Archive

Topic: Recommended filesystem for external USB flashdrive

The content of this topic has been archived on 7 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

It looks like XFS, doesn't work very well with opnewrt, I had problems with an USB harddrive and an USB flashdrive. So which filesystem should I choose especially for movies and minidlna?

I found:

http://wiki.openwrt.org/doc/howto/usb.storage
We recommend the file systems ext2, ext3, or ext4 (all supported by kmod-fs-ext4)

and http://wiki.openwrt.org/doc/techref/filesystems

So is ext4 recommended or do I better use ext3 or ext2 with an USB flashdrive?

ext4 w/o journaling or ext2.
ext4 has better performance.
ext3 = ext2+journaling

So, that's just up to you, kmod-fs-ext4 support them all.

How do I disable journaling with ext4? Since I use a slow flashdrive (Lexar 64GB), I would like to use the fastest possibility.

It won't increase bitrates.
On the other hand it doesn't need high read/write, so performance won't be a problem.
I just use an old 16MB flashdrive.

format under linux use mkfs.ext4 -O ^has_journal

Does this work with openwrt?

http://fenidik.blogspot.com/2010/03/ext … urnal.html

#on linux pc
mkfs.ext4 /dev/sda10
tune2fs -o journal_data_writeback /dev/sda10
tune2fs -O ^has_journal /dev/sda10
e2fsck -f /dev/sda10
dumpe2fs /dev/sda10 |more

#on wrt device
fstab opions: data=writeback,noatime,nodiratime

Hi,
with 10.03.01 on wl-500gp I've tried ext2,3 and 4 for a USB stick for external package installation destination.
I've found more and more corruption trouble with ext2 and ext3 and stability only with ext4.

wbtit wrote:

Hi,
with 10.03.01 on wl-500gp I've tried ext2,3 and 4 for a USB stick for external package installation destination.
I've found more and more corruption trouble with ext2 and ext3 and stability only with ext4.

Which options did you use with ext4? Did you leave journaling or remove it?

The discussion might have continued from here.