Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
zh-cn:doc:howto:usb.storage [2018/02/17 22:48] – ↷ Links adapted because of a move operation zh-cn:doc:howto:usb.storage [2018/05/01 10:12] – link updated tmomas
Line 2: Line 2:
 请参见[[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]]);
-  - These file systems can then be mounted and accessed, see [[Storage]]. Optionally, you can now configure automatic mounting at boot using ''[[docs:user-guide:storage:fstab|/etc/config/fstab]]'' and you can configure it as [[doc:howto:extroot|root file system using extroot]].+  - These file systems can then be mounted and accessed, see [[Storage]]. Optionally, you can now configure automatic mounting at boot using ''[[docs:guide-user:storage:fstab|/etc/config/fstab]]'' and you can configure it as [[docs:guide-user:additional-software:extroot_configuration|root file system using extroot]].
  
 ===== 必须软件包 ===== ===== 必须软件包 =====
-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.
   ***''kmod-usb-storage-extras''** //optional// ... Kernel support for some more drivers, such as for SmartMedia card readers.   ***''kmod-usb-storage-extras''** //optional// ... Kernel support for some more drivers, such as for SmartMedia card readers.
-  ***''block-mount''** //recommended// & //required (if using [[docs:user-guide:storage:fstab]] UCI configuration or [[luci]] Mount Points)// ... Scripts used to mount and check block devices (filesystems and swap) and hotplug capability (recognition when device is plugged in).+  ***''block-mount''** //recommended// & //required (if using [[docs:guide-user:storage:fstab]] UCI configuration or [[luci]] Mount Points)// ... Scripts used to mount and check block devices (filesystems and swap) and hotplug capability (recognition when device is plugged in).
   ***''kmod-scsi-core''** Any mass storage is a generic SCSI device.   ***''kmod-scsi-core''** Any mass storage is a generic SCSI device.
  
-| {{:meta:icons:tango:48px-outdated.svg.png?nolink}} | Before the [[about:history#timeline|Attitude Adjustment]] release, other optional packages included: ''block-hotplug'' for USB recognition upon plug-in and ''block-extroot'' required for [[doc:howto:extroot|rootfs on external storage]]. In [[https://dev.openwrt.org/changeset/26314/trunk|r26314]] the three opkg packages ''block-mount'', ''block-extroot'' and ''block-hotplug'' have been merged into a single package **''block-mount''**. |+| {{:meta:icons:tango:48px-outdated.svg.png?nolink}} | Before the [[about:history#timeline|Attitude Adjustment]] release, other optional packages included: ''block-hotplug'' for USB recognition upon plug-in and ''block-extroot'' required for [[docs:guide-user:additional-software:extroot_configuration|rootfs on external storage]]. In [[https://dev.openwrt.org/changeset/26314/trunk|r26314]] the three opkg packages ''block-mount'', ''block-extroot'' and ''block-hotplug'' have been merged into a single package **''block-mount''**. |
  
  
  • Last modified: 2019/08/26 16:40
  • by vgaetera