Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to interpret /proc/mounts?

Tags:

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.

like image 438
New to Rails Avatar asked Aug 08 '13 09:08

New to Rails


People also ask

What does proc mounts show?

The /proc/mounts file lists the status of all currently mounted file systems in a format similar to fstab: the system's name, mount point, file system type, etc. It is actually not a real file, but part of the virtual file system that represents the status of mounted objects as reported by the Linux kernel.

What is mount proc proc proc?

The proc file system is the process information pseudo-filesystem that the kernel uses to provide status information about the status of the system.

What is etc mtab?

The /etc/mtab file is the list of mounted file systems it is maintained by the mount and unmount programs. It's format is similar to the fstab file The columns arw. device the device or remote filesystem that is mounted. mountpoint the place in the filesystem the device was mounted.


1 Answers

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.

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/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.

like image 60
TheCodeArtist Avatar answered Nov 14 '22 13:11

TheCodeArtist