如何解释/ proc / mounts? [英] How to interpret /proc/mounts?
问题描述
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
嵌入式设备的说明文件表示导入和导出位于DRAM
然而在其他设备中,
ubi18_0 / nvdata1 /临时下载ubifs rw,同步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
我真的不知道在DRAM,NAND,NOR中存在什么。
我们的设备是
NOR有u-boot。
NAND有内核和rootfs。
/ proc / mounts
$ b $ p $第一列指定已加载的设备。
第二列显示挂载点。
第三列告诉文件系统类型。
第四列告诉你它是否被挂载只读(ro)或读写(rw)。
第5列和第6列是虚拟值匹配 / etc / mtab
中使用的格式。
$ b $ pre $ t $ tmpfs / export / ftp / import tmpfs rw,relatime,size = 102400k 0 0
tmpfs / export / ftp / export tmpfs rw,relatime,size = 10240k,mode = 755 0 0
含义:在 / export / ftp / import
中加载了两个独立的 tmpfs <和 / export / ftp / export
。存储在这些目录中的数据在重新启动内核时会丢失。 tmpfs 本质上是一个类似ramdisk的构造,用于将数据存储在RAM中。从技术上讲,tmpfs映射到使用内存和交换(如果存在)的虚拟内存中。
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
含义:NAND设备上的同一个分区( ubi18_0
)被安装在3个不同的安装点上。 ubi 是一个中间文件系统层,可以简化和优化底层闪存的I / O媒体设备。还有一个临时文件系统安装在 / export / ftp / export
。
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
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.
I really do not know what resides in DRAM, NAND, NOR.
The basic knowledge i have in our equiment is that
NOR has u-boot.
NAND has kernel and rootfs.
解决方案 Format of /proc/mounts
The 1st column specifies the device that 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 values designed to match the format used in /etc/mtab
.
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/import
and /export/ftp/export
. Any data stored into these directories is lost upon rebooting the kernel. tmpfs is essentially a ramdisk-like construct that stores data in the RAM. Technically speaking tmpfs is mapped into virtual memory which uses RAM and swap (if present).
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. ubi is a intermediate file-system layer that simplifies and optimises I/O with the underlying flash media devices. Also a temporary filesystem is mounted at /export/ftp/export
.
这篇关于如何解释/ proc / mounts?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
/ export / ftp / import
中加载了两个独立的 tmpfs <和 / export / ftp / export
。存储在这些目录中的数据在重新启动内核时会丢失。 tmpfs 本质上是一个类似ramdisk的构造,用于将数据存储在RAM中。从技术上讲,tmpfs映射到使用内存和交换(如果存在)的虚拟内存中。 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
ubi18_0
)被安装在3个不同的安装点上。 ubi 是一个中间文件系统层,可以简化和优化底层闪存的I / O媒体设备。还有一个临时文件系统安装在 / export / ftp / export
。"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
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
/proc/mounts
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 values designed to match the format used in
/etc/mtab
. tmpfs /export/ftp/import tmpfs rw,relatime,size=102400k 0 0
tmpfs /export/ftp/export tmpfs rw,relatime,size=10240k,mode=755 0 0
/export/ftp/import
and /export/ftp/export
. Any data stored into these directories is lost upon rebooting the kernel. tmpfs is essentially a ramdisk-like construct that stores data in the RAM. Technically speaking tmpfs is mapped into virtual memory which uses RAM and swap (if present).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
ubi18_0
) is mounted at 3 different mount-points. ubi is a intermediate file-system layer that simplifies and optimises I/O with the underlying flash media devices. Also a temporary filesystem is mounted at /export/ftp/export
.