| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision |
| zh-cn:doc:howto:storage [2018/02/19 21:49] – ↷ Links adapted because of a move operation | zh-cn:doc:howto:storage [2018/02/25 15:05] – ↷ Links adapted because of a move operation |
|---|
| ====== 分区、格式化及安装存储设备 ====== | ====== 分区、格式化及安装存储设备 ====== |
| 请参见[[doc/techref/flash.layout]]。 | 请参见[[docs:techref:flash.layout]]。 |
| |
| |
| ===== 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 [[docs:user-guide:storage:fstab|Fstab Configuration]]. OpenWrt provides [[inbox:uci|UCI]] configuration of Fstab. The configuration file is ''[[docs:user-guide:storage: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: |
| |
| | {{: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]]** | |
| |
| |
| |
| 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. |
| |
| |