| Both sides previous revision Previous revision | Next revisionBoth sides next revision |
| zh-cn:doc:howto:usb.storage [2018/03/03 20:56] – ↷ Links adapted because of a move operation bobafetthotmail | zh-cn:doc:howto:usb.storage [2018/05/01 10:12] – link updated tmomas |
|---|
| 请参见[[zh-cn/doc/techref/flash.layout|doc/techref/flash.layout]]。 | 请参见[[zh-cn/doc/techref/flash.layout|doc/techref/flash.layout]]。 |
| |
| 设若您已取得了[[doc:howto:usb.essentials|基本USB支持]],现在,您也许想要连接USB存储设备到路由器上 (U盘,USB移动硬盘,等等)。这个条目将告诉您所需的步骤和要求。 | 设若您已取得了[[docs:guide-user:storage:usb-installing|基本USB支持]],现在,您也许想要连接USB存储设备到路由器上 (U盘,USB移动硬盘,等等)。这个条目将告诉您所需的步骤和要求。 |
| |
| ===== 准备工作 ===== | ===== 准备工作 ===== |
| 主要步骤如下: | 主要步骤如下: |
| - 在您的OpenWrt设备上获得[[doc:howto:usb.essentials|基本USB支持]]; | - 在您的OpenWrt设备上获得[[docs:guide-user:storage:usb-installing|基本USB支持]]; |
| - Install USB storage prerequisites as shown [[usb.storage#Required Packages for USB Storage|below]]). A connected USB storage device (e.g. hard disc) can now be recognised by the system; | - Install USB storage prerequisites as shown [[usb.storage#Required Packages for USB Storage|below]]). A connected USB storage device (e.g. hard disc) can now be recognised by the system; |
| - If not already done, partition the device and create the file systems you want (see [[Storage]] on how to do this from within OpenWrt). The device itself and its partitions should immediately be available as [[wp>Device file]]s under ''/dev/''. For example ''/dev/sda'' as the device, with ''/dev/sda1'', ''/dev/sda2'', ... , the partitions. Or, in case it is not partitioned with a partition table and it has a single file system it may be directly accessible under e.g. ''/dev/sda''. Subsequent devices you add will be ''/dev/sdb'', ''/dev/sdc'' and so on. Make sure that the file system requirements are satisfied by installing the proper kernel packages for specific file system support (see [[Storage]]); | - If not already done, partition the device and create the file systems you want (see [[Storage]] on how to do this from within OpenWrt). The device itself and its partitions should immediately be available as [[wp>Device file]]s under ''/dev/''. For example ''/dev/sda'' as the device, with ''/dev/sda1'', ''/dev/sda2'', ... , the partitions. Or, in case it is not partitioned with a partition table and it has a single file system it may be directly accessible under e.g. ''/dev/sda''. Subsequent devices you add will be ''/dev/sdb'', ''/dev/sdc'' and so on. Make sure that the file system requirements are satisfied by installing the proper kernel packages for specific file system support (see [[Storage]]); |
| |
| ===== 必须软件包 ===== | ===== 必须软件包 ===== |
| When your USB device is properly recognised by the system, using the proper driver kernel packages listed in [[doc:howto:usb.essentials|基本USB支持]], the following packages facilitate USB storage support: | When your USB device is properly recognised by the system, using the proper driver kernel packages listed in [[docs:guide-user:storage:usb-installing|基本USB支持]], the following packages facilitate USB storage support: |
| ***''kmod-usb-storage''** //required// ... Kernel support for USB Mass Storage devices. | ***''kmod-usb-storage''** //required// ... Kernel support for USB Mass Storage devices. |
| ***''kmod-fs-<file_system>''** //required// ... the file system you formatted your partition in. Common examples include kmod-fs-ext4, kmod-fs-hfs, kmod-fs-hfsplus, kmod-fs-msdos, kmod-fs-ntfs, kmod-fs-reiserfs and kmod-fs-xfs. | ***''kmod-fs-<file_system>''** //required// ... the file system you formatted your partition in. Common examples include kmod-fs-ext4, kmod-fs-hfs, kmod-fs-hfsplus, kmod-fs-msdos, kmod-fs-ntfs, kmod-fs-reiserfs and kmod-fs-xfs. |