1838634 Members
2338 Online
110128 Solutions
New Discussion

Re: mnttab and fstab

 
SOLVED
Go to solution
Omar Alvi_1
Super Advisor

mnttab and fstab

Hi,

I would like to know what the difference is between /etc/fstab and /etc/mnttab files

which one do we update manually? which is read by the mountall or mount-a commands?

Regards,

-Alvi
4 REPLIES 4
melvyn burnard
Honored Contributor

Re: mnttab and fstab

try doing man fstab and man mnntab.
The first paragraph in hte description section will tell you what you wish to know.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Sergejs Svitnevs
Honored Contributor
Solution

Re: mnttab and fstab

/etc/fstab file describes all possibly mounted filesystems. The mount program uses this file to mount at startup time of the system all the necessary filesystems.

The information about all the filesystems actually mounted is kept in a file system mount table named /etc/mnttab.

Regards,
Sergejs
Zeev Schultz
Honored Contributor

Re: mnttab and fstab

fstab is the one you should care about as
its the one referenced during mounts.mnttab
is a table updated by mount (and used by bdf for example).you don't edit mnttab but edit
fstab and put each mounted directory there with
mount specific options for the filesystem.

And as suggested read the man pages for more information.
So computers don't think yet. At least not chess computers. - Seymour Cray
Ameet_HP
Frequent Advisor

Re: mnttab and fstab

We need to update /etc/fstab file as it keeps information which filesystems to mount on boot. Also, if you updte this file with device & mount point, at # prompt you will not need to specify device, simple mount followed by mount point will work, device information will get picked up from /etc/fstab.

/etc/mnttab gets updated by system up on mounting each filesystems. For Administrative purpose, it is used to check which filesystems are mounted.