Question about mounting
Hi,
In Linux systems permanent mounting is done by adding an entry is /etc/fstab. Can anyone tell which files stores information about temporary mount. For example : If I mount /dev/sdb1 to /test1 using below command : mount /dev/sdb1 /test1 Which file will store this mount information. Thank you. |
Read the manpage for mount.
|
Quote:
|
Not really. Read it again, and run this
Code:
ls -l /etc/mtab |
Is it /etc/mtab.tmp
[root@localhost ~]# ls -l /etc/mtab -rw-r--r-- 1 root root 193 Aug 12 19:48 /etc/mtab [root@localhost ~]# |
Interesting. What distro and kernel (uname -a) are you running ?.
|
Quote:
Code:
$ cat /etc/mtab |
Until very recently in Gentoo mtab was a real file, for instance.
|
On my Centos 6.7, /etc/mtab is a real file, but as its updated by the kernel, you shouldn't mess with it.
Also, the content lists the same mount pts, but in a different format, from that returned by 'mount' . |
Quote:
|
Check /proc/mounts
|
All times are GMT -5. The time now is 04:59 PM. |