Differences

This shows you the differences between two versions of the page.

doc:howto:usb.storage [2012/12/22 23:56]
freier.radikaler
doc:howto:usb.storage [2013/02/13 19:31] (current)
stephenc01 fix formatting link
Line 11: Line 11:
| <HTML><font size="6"; color="green">✔</font> </HTML> | We recommend the file systems **[[wp>ext2]]**, **[[wp>ext3]]**, or **[[wp>ext4]]** (all supported by **kmod-fs-ext4**) | | <HTML><font size="6"; color="green">✔</font> </HTML> | We recommend the file systems **[[wp>ext2]]**, **[[wp>ext3]]**, or **[[wp>ext4]]** (all supported by **kmod-fs-ext4**) |
-If you are planning on sharing your USB storage with Samba, and/or using it to share large multimedia content over UPnP, e.g. with ushare, you should use ext3 or ext4 rather than ext2.  Default Ext2 partitions will be limited to files of no more than 4 Gb, but this restriction is eliminated with the newer filesystems.  To retain good performance with the newer filesystems, particularly on flash USB storage, you should also consider disabling journaling with the "-O ^has_journal" when using mkfs.ext4 to format the filesystem.  Also for ext4, the "extent" formatting option (e.g. "-O ^has_journal,extent") will make filesystem access to large files more performant.+If you are planning on sharing your USB storage with Samba, and/or using it to share large multimedia content over UPnP, e.g. with ushare, you should use ext3 or ext4 rather than ext2.  Default Ext2 partitions will be limited to files of no more than 4 Gb, but this restriction is eliminated with the newer filesystems.  To retain good performance with the newer filesystems, particularly on flash USB storage, you should also consider disabling journaling with the "''-O ^has_journal''" when using ''mkfs.ext4'' to format the filesystem.  Also for ext4, the "extent" formatting option (e.g. "''-O ^has_journal,extent''") will make filesystem access to large files more performant.
Line 51: Line 51:
| kmod-fs-cifs        | Kernel module for CIFS support                            | | kmod-fs-cifs        | Kernel module for CIFS support                            |
| kmod-fs-exportfs    | Kernel module for exportfs. Needed for some other modules. | | kmod-fs-exportfs    | Kernel module for exportfs. Needed for some other modules. |
-| kmod-fs-ext4        | Kernel module for [[wp>ext2]], [[wp>ext3]] and [[wp>ext4]] filesystem support((But then ext2 or ext3 partition has to be mounted as ext4 partition.))  |+| kmod-fs-ext4        | Kernel module for [[wp>ext2]], [[wp>ext3]] and [[wp>ext4]] filesystem support((But then on Backfire ext2 or ext3 partition has to be mounted as ext4 partition, see Troubleshooting.))  |
| kmod-fs-hfs        | Kernel module for HFS filesystem support                  | | kmod-fs-hfs        | Kernel module for HFS filesystem support                  |
| kmod-fs-hfsplus    | Kernel module for HFS+ filesystem support                  | | kmod-fs-hfsplus    | Kernel module for HFS+ filesystem support                  |
Line 199: Line 199:
Actually there are packages in the OpenWrt repositories with which you can partition, format and check filesystems: Actually there are packages in the OpenWrt repositories with which you can partition, format and check filesystems:
  ***''fdisk''**  (//for help with **partitioning** see [[http://www.tldp.org/HOWTO/Partition/fdisk_partitioning.html|TLDP]]//)   ***''fdisk''**  (//for help with **partitioning** see [[http://www.tldp.org/HOWTO/Partition/fdisk_partitioning.html|TLDP]]//)
-  ***''e2fsprogs''** Contains the essential ext2 filesystem utilities ''e2fsck'', ''mke2fs'', ''debugfs'', ''dumpe2fs'' and ''tune2fs'', and also most of the other core ext2 filesystem utilities available. //for help with **formatting** see [[http://www.tldp.org/HOWTO/Partition/fdisk_partitioning.html|TLDP]]//+  ***''e2fsprogs''** Contains the essential ext2 filesystem utilities ''e2fsck'', ''mke2fs'', ''debugfs'', ''dumpe2fs'' and ''tune2fs'', and also most of the other core ext2 filesystem utilities available. //for help with **formatting** see [[http://www.tldp.org/HOWTO/Partition/formatting.html|TLDP]]//
:!: **Note:** In order to perform a ''e2fsck'' on 1 GiB partition, you will need at least 1 MiB of RAM.(([[http://www.openbsd.org/faq/faq14.html#LargeDrive|Source]].)) The same is true for ''mke2fs''. You can solve this by mounting a SWAP partition (or by using a device with enough RAM). :!: **Note:** In order to perform a ''e2fsck'' on 1 GiB partition, you will need at least 1 MiB of RAM.(([[http://www.openbsd.org/faq/faq14.html#LargeDrive|Source]].)) The same is true for ''mke2fs''. You can solve this by mounting a SWAP partition (or by using a device with enough RAM).
Line 344: Line 344:
==== kmod-fs-ext4 won't mount ext2 or ext3 partition ==== ==== kmod-fs-ext4 won't mount ext2 or ext3 partition ====
-**Symptoms**: You are trying to mount **ext2** or **ext3** partition and you have installed only **kmod-fs-ext4**. Neither ''mount'' command nor ''fstab'' works.+**Symptoms**: You are trying to mount **ext2** or **ext3** partition and you have installed only **kmod-fs-ext4**. Neither ''mount'' command nor ''fstab'' works. The kmod-fs-ext4 issue definitely applies to Backfire, but is not an issue for Attitude Adjustment (tested on Attitude Adjustment RC1).
**Solution a)**: you have to make sure that you are trying to mount the ext2 or ext3 partition like it was ext4 partition. Example [[doc:uci:fstab|/etc/config/fstab]] config and mount command follows: **Solution a)**: you have to make sure that you are trying to mount the ext2 or ext3 partition like it was ext4 partition. Example [[doc:uci:fstab|/etc/config/fstab]] config and mount command follows:
Line 359: Line 359:
<code>mount -t ext4 /dev/sda1 /mnt -o rw,sync</code> <code>mount -t ext4 /dev/sda1 /mnt -o rw,sync</code>
-FIXME The kmod-fs-ext4 issue above definitely applies to Backfire, but __may not be__ issue for Attitude Adjustment. Could Att. Adj. user confirm this? +**Solution b)**: install ''kmod-fs-ext3'' or ''kmod-fs-ext2'' filesystem.
- +
-**Solution b)**: install ''kmod-fs-ext3'' or ''kmod-fs-ext2'' filesystem. This is not (probably) available for Attitude Adjustment.+
<code> <code>

Back to top

doc/howto/usb.storage.1356216961.txt.bz2 · Last modified: 2012/12/22 23:56 by freier.radikaler