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:storage [2015/12/30 11:16] – link fixed tmomaszh-cn:doc:howto:storage [2018/02/25 15:05] – ↷ Links adapted because of a move operation
Line 1: Line 1:
 ====== 分区、格式化及安装存储设备 ====== ====== 分区、格式化及安装存储设备 ======
-请参见[[doc/techref/flash.layout]]。+请参见[[docs:techref:flash.layout]]。
  
  
-向OpenWrt系统添加存储设备是一个非常有价值的选项,因为嵌入式设备上的闪存容量通常很有限。Having ample storage for applications and other data can therefore greatly expand OpenWrt functionality. For example you can turn your device into a full [[wp>NAS]] by adding a hard drive for storing media files. You can also add storage to increase the available storage for the root file system in an overlay configuration by employing [[doc:howto:extroot]]. +向OpenWrt系统添加存储设备是一个非常有价值的选项,因为嵌入式设备上的闪存容量通常很有限。Having ample storage for applications and other data can therefore greatly expand OpenWrt functionality. For example you can turn your device into a full [[wp>NAS]] by adding a hard drive for storing media files. You can also add storage to increase the available storage for the root file system in an overlay configuration by employing [[docs:user-guide:additional-software:extroot_configuration]]. 
  
 Before the system can find your device it has to be properly recognised, which is done by installing the correct drivers for the device. For most devices the connection will be through USB, so you first have to install [[usb.essentials|USB support]] and then provide [[usb.storage|storage support over USB]]. Other devices are possible too, like SATA, IDE and flash memory cards, see [[doc:howto:sata.essentials]], [[doc:howto:ide.essentials]] and [[doc:howto:cf.essentials]], respectively. This article will assume that your storage device is already installed correctly with the correct drivers and ready for use. Before the system can find your device it has to be properly recognised, which is done by installing the correct drivers for the device. For most devices the connection will be through USB, so you first have to install [[usb.essentials|USB support]] and then provide [[usb.storage|storage support over USB]]. Other devices are possible too, like SATA, IDE and flash memory cards, see [[doc:howto:sata.essentials]], [[doc:howto:ide.essentials]] and [[doc:howto:cf.essentials]], respectively. This article will assume that your storage device is already installed correctly with the correct drivers and ready for use.
Line 115: Line 115:
 ===== Automatic Mount on Boot ===== ===== Automatic Mount on Boot =====
  
-:!: see [[doc:techref:block_mount]]+:!: see [[docs:techref:block_mount]]
  
-It is convenient to be able to mount your file systems on boot. The package ''block-mount'' will take care of this and also enable automatic mount when device is plugged in through use of [[doc/techref/ubox|ubox]]. As is typical in Linux, this is handled with [[doc:uci:fstab|Fstab Configuration]]. OpenWrt provides [[doc/uci|UCI]] configuration of Fstab. The configuration file is ''[[doc:uci:fstab|/etc/config/fstab]]''.+It is convenient to be able to mount your file systems on boot. The package ''block-mount'' will take care of this and also enable automatic mount when device is plugged in through use of [[docs:techref:ubox|ubox]]. As is typical in Linux, this is handled with [[docs:user-guide:storage:fstab|Fstab Configuration]]. OpenWrt provides [[docs:user-guide:base-system:uci|UCI]] configuration of Fstab. The configuration file is ''[[docs:user-guide:storage:fstab|/etc/config/fstab]]''.
  
-For a technical background in which Fstab works, see [[doc/techref/block_mount]]. Note the information box below mentioning the new block-mount packages which works in conjunction with ubox.+For a technical background in which Fstab works, see [[docs:techref:block_mount]]. Note the information box below mentioning the new block-mount packages which works in conjunction with ubox.
  
 Example settings in ''fstab'' for mounting to ''/mnt/share'' with automatic detection of the file system: Example settings in ''fstab'' for mounting to ''/mnt/share'' with automatic detection of the file system:
Line 137: Line 137:
 <code>/etc/init.d/fstab enable</code> <code>/etc/init.d/fstab enable</code>
  
-:!: **Note:** If you are having trouble with fstab, see [[doc:uci:fstab#troubleshooting|fstab troubleshooting]].+:!: **Note:** If you are having trouble with fstab, see [[docs:user-guide:storage:fstab#troubleshooting|fstab troubleshooting]].
  
 UCI CLI commands: UCI CLI commands:
Line 160: Line 160:
  
 | {{:meta:icons:tango:48px-outdated.svg.png?nolink}} | In [[https://dev.openwrt.org/changeset/26314/trunk|r26314]] the three opkg packages ''block-mount'', ''block-extroot'' and ''block-hotplug'' have been merged into **''block-mount''**. | | {{:meta:icons:tango:48px-outdated.svg.png?nolink}} | In [[https://dev.openwrt.org/changeset/26314/trunk|r26314]] the three opkg packages ''block-mount'', ''block-extroot'' and ''block-hotplug'' have been merged into **''block-mount''**. |
-| {{:meta:icons:tango:48px-outdated.svg.png?nolink}} | In [[https://dev.openwrt.org/changeset/36988|r36988]] **''[[doc/techref/ubox]]''** is a dependency of the opkg package ''block-mount''. block-mount now contains the executable ''block''. ''block <info|mount|umount|detect>'' |+| {{:meta:icons:tango:48px-outdated.svg.png?nolink}} | In [[https://dev.openwrt.org/changeset/36988|r36988]] **''[[docs:techref:ubox]]''** is a dependency of the opkg package ''block-mount''. block-mount now contains the executable ''block''. ''block <info|mount|umount|detect>'' |
 | {{:meta:icons:tango:48px-emblem-important.svg.png?nolink}} | **[[https://lists.openwrt.org/pipermail/openwrt-devel/2013-July/020591.html|2013-07-04: new block mount howto]]**  | | {{:meta:icons:tango:48px-emblem-important.svg.png?nolink}} | **[[https://lists.openwrt.org/pipermail/openwrt-devel/2013-July/020591.html|2013-07-04: new block mount howto]]**  |
  
Line 208: Line 208:
  
  
-Usually the devices that you use are [[wp>Device_file#Block_devices|block devices]]. In OpenWrt, extra utilities for block devices such as automatic mounting are provided with a collection of tools for [[doc/techref/block_mount|block devices]], see also below. +Usually the devices that you use are [[wp>Device_file#Block_devices|block devices]]. In OpenWrt, extra utilities for block devices such as automatic mounting are provided with a collection of tools for [[docs:techref:block_mount|block devices]], see also below. 
  
  
Line 215: Line 215:
   * Use [[extroot]]. This will allow you to use your device as a root, by using it in an overlay configuration over the original root.    * Use [[extroot]]. This will allow you to use your device as a root, by using it in an overlay configuration over the original root. 
  
-  * Once you successfully mounted your partition, you may want to install packages onto it. Please see [[doc:techref:opkg#Installation.Destination]] for that.+  * Once you successfully mounted your partition, you may want to install packages onto it. Please see [[docs:user-guide:additional-software:opkg#Installation.Destination]] for that.
  
   * :!: Do not install kernel modules on USB, see [[https://dev.openwrt.org/ticket/10739]]   * :!: Do not install kernel modules on USB, see [[https://dev.openwrt.org/ticket/10739]]
Line 305: Line 305:
  
 If you want to install packages into this virtual disk, see: If you want to install packages into this virtual disk, see:
-[[doc:techref:opkg#installation_destinations|opkg installation destinations]]+[[docs:user-guide:additional-software:opkg#installation_destinations|opkg installation destinations]]
  
 ===== Troubleshooting ===== ===== Troubleshooting =====
Line 316: Line 316:
 **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). **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 [[docs:user-guide:storage:fstab|/etc/config/fstab]] config and mount command follows:
  
 |''config mount |''config mount
  • Last modified: 2018/03/03 20:56
  • by bobafetthotmail