USB storage in OpenWrt

USB storage in OpenWrt

The openwrt system
# cat /etc/openwrt_version 
12.09
# uname -a
Linux OpenWrt 3.3.8 #1 Sat Mar 23 16:49:30 UTC 2013 mips GNU/Linux


Look for usb related kernel modules
# lsmod |grep usb
ledtrig_usbdev          2032  0 
usbcore                99200  4 ohci_hcd,ledtrig_usbdev,ehci_hcd
usb_common               480  1 usbcore
nls_base                4640  1 usbcore


Install USB storage support
# opkg install kmod-usb-storage


Available file systems and their OpenWrt packages
# opkg list "kmod-fs*"
kmod-fs-autofs4 - 3.3.8-1 - Kernel module for AutoFS4 support
kmod-fs-btrfs - 3.3.8-1 - Kernel module for BTRFS support
kmod-fs-cifs - 3.3.8-1 - Kernel module for CIFS support
kmod-fs-exportfs - 3.3.8-1 - Kernel module for exportfs. Needed for some other modules.
kmod-fs-ext4 - 3.3.8-1 - Kernel module for EXT4 filesystem support
kmod-fs-hfs - 3.3.8-1 - Kernel module for HFS filesystem support
kmod-fs-hfsplus - 3.3.8-1 - Kernel module for HFS+ filesystem support
kmod-fs-isofs - 3.3.8-1 - Kernel module for ISO9660 filesystem support
kmod-fs-minix - 3.3.8-1 - Kernel module for Minix filesystem support
kmod-fs-msdos - 3.3.8-1 - Kernel module for MSDOS filesystem support
kmod-fs-nfs - 3.3.8-1 - Kernel module for NFS support
kmod-fs-nfs-common - 3.3.8-1 - Common NFS filesystem modules
kmod-fs-nfsd - 3.3.8-1 - Kernel module for NFS kernel server support
kmod-fs-ntfs - 3.3.8-1 - Kernel module for NTFS filesystem support
kmod-fs-reiserfs - 3.3.8-1 - Kernel module for ReiserFS support
kmod-fs-udf - 3.3.8-1 - Kernel module for UDF filesystem support
kmod-fs-vfat - 3.3.8-1 - Kernel module for VFAT filesystem support
kmod-fs-xfs - 3.3.8-1 - Kernel module for XFS support


links:
http://wiki.openwrt.org/doc/howto/usb.essentials
http://wiki.openwrt.org/doc/howto/storage