Linux 如何解释/proc/mounts?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18122123/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-07 00:30:02  来源:igfitidea点击:

How to interpret /proc/mounts?

linuxmemoryfilesystemshardwareembedded-linux

提问by New to Rails

When i do the following.

当我执行以下操作时。

"cat /proc/mounts".
tmpfs /export/ftp/import tmpfs rw,relatime,size=102400k 0 0
tmpfs /export/ftp/export tmpfs rw,relatime,size=10240k,mode=755 0 0

The documentation of embedded device said that import and export are located in DRAM

嵌入式设备的文档说进出口位于DRAM

However in other equipment

但是在其他设备中

ubi18_0 /nvdata1/temporary-download ubifs rw,sync 0 0
ubi18_0 /export/ftp/import ubifs rw,sync 0 0
ubi18_0 /export/http/import ubifs rw,sync 0 0
tmpfs /export/ftp/export tmpfs rw,size=10240k,mode=755 0 0

The documentation of embedded device said that import is located in NAND and export are located in DRAM.

嵌入式设备的文档说进口位于NAND,出口位于DRAM。

I really do not know what resides in DRAM, NAND, NOR.

我真的不知道 DRAM、NAND、NOR 是什么。

The basic knowledge i have in our equiment is that NOR has u-boot. NAND has kernel and rootfs.

我在我们的设备中的基本知识是 NOR 有 u-boot。NAND 有内核和 rootfs。

采纳答案by TheCodeArtist

Format of /proc/mounts

格式 /proc/mounts

The 1st column specifies the devicethat is mounted.
The 2nd column reveals the mount point.
The 3rd column tells the file-system type.
The 4th column tells you if it is mounted read-only (ro)or read-write (rw).
The 5th and 6th columns are dummy valuesdesigned to match the format used in /etc/mtab.

第一列指定安装的设备
第二列显示挂载点
第三列告诉文件系统类型
第 4 列告诉您它是以只读 (ro)读写 (rw) 方式安装的
第5和第6列是虚值设计为匹配中使用的格式/etc/mtab

More details on filesystem mount-points are available here.

有关文件系统挂载点的更多详细信息,请访问此处



tmpfs /export/ftp/import tmpfs rw,relatime,size=102400k 0 0
tmpfs /export/ftp/export tmpfs rw,relatime,size=10240k,mode=755 0 0

Meaning: Two independent tmpfs-es are mounted at both /export/ftp/importand /export/ftp/export. Any data stored into these directories is lost upon rebooting the kernel. tmpfsis essentially a ramdisk-like constructthat stores data in the RAM. Technically speaking tmpfs is mapped into virtual memory which uses RAM and swap (if present).

含义:两个独立的tmpfs-es 安装在/export/ftp/import和 上/export/ftp/export。重新启动内核后,存储在这些目录中的任何数据都会丢失。tmpfs本质上是一个类似于 ramdisk 的构造,它将数据存储在 RAM 中。从技术上讲,tmpfs 被映射到使用 RAM 和交换(如果存在)的虚拟内存中。



ubi18_0 /nvdata1/temporary-download ubifs rw,sync 0 0
ubi18_0 /export/ftp/import ubifs rw,sync 0 0
ubi18_0 /export/http/import ubifs rw,sync 0 0
tmpfs /export/ftp/export tmpfs rw,size=10240k,mode=755 0 0

Meaning: The same "partition" on the NAND device (ubi18_0) is mounted at 3 different mount-points. ubiis a intermediate file-system layerthat simplifies and optimises I/O with the underlying flash media devices. Also a temporary filesystem is mounted at /export/ftp/export.

含义:NAND 设备 ( ubi18_0)上的相同“分区”安装在 3 个不同的安装点。ubi是一个中间文件系统层,可简化和优化与底层闪存媒体设备的 I/O。还有一个临时文件系统安装在/export/ftp/export.