1834285 Members
3419 Online
110066 Solutions
New Discussion

Modify /etc/mnttab

 
O'lnes
Regular Advisor

Modify /etc/mnttab

Does it need to initiate after modify the file /etc/mnttab ?

Thanks
Andy
11 REPLIES 11
Michael Tully
Honored Contributor

Re: Modify /etc/mnttab

Hi,

You don't ever modify the /etc/mnttab file.

If you wish update it your run:

# rm /etc/mnttab
# mount -a

I'm not sure what your trying to achieve....

Michael
Anyone for a Mutiny ?
Bill Hassell
Honored Contributor

Re: Modify /etc/mnttab

Never edit or modify the /etc/mnttab file! To mount a filesystem, first add an entry into /etc/fstab, then use the mount command. The mnttab file is directly modified by syncer and the mount/umount commands. If there is a strange entry (such as /dev/root), then you have problems related to multiple boot drives and problems with the lvlnboot setup.

You can recreate /etc/mnttab by removing it and then immediately running: mountall


Bill Hassell, sysadmin
Michael Tully
Honored Contributor

Re: Modify /etc/mnttab

Please take the time to award points to people who assist you. They do so in their own free time using their own resources. Up to now, you have assigned zero points to 62 replies.

For more information about forum etiquitte please take the time to read this:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x022718276953d61190040090279cd0f9,00.html
Anyone for a Mutiny ?
O'lnes
Regular Advisor

Re: Modify /etc/mnttab

I have modified one of entry of /etc/fstab , then run mount -a , but the /etc/mnttab is still not update, does /etc/fstab need to be initiate after modify?

Thanks
Andy
T G Manikandan
Honored Contributor

Re: Modify /etc/mnttab

/etc/mnttab has information about the mounted file systems.

When you give the mount command it looks at this /etc/mnttab file and gives the output.

Just
#mv /etc/mnttab /etc/mnttab.old
then do a

#mount -a

to reread your /etc/fstab file .
V. V. Ravi Kumar_1
Respected Contributor

Re: Modify /etc/mnttab

hi,

try this, umount the file system for which u did modification and mount it again.
hope this helps
regds
Never Say No
melvyn burnard
Honored Contributor

Re: Modify /etc/mnttab

NEVER EVER modify mnttab!

you say you have changed fstab, done mount -a and mnttab has not changed.
What exactly have you changed, and what are you expecting to see differently in mnttab??
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Ravi_8
Honored Contributor

Re: Modify /etc/mnttab

Hi,

Don't take a chance of modifying /etc/mnttab.

if you wanted to mount new filesystem add a line in /etc/fstab and
# mount -a
never give up
O'lnes
Regular Advisor

Re: Modify /etc/mnttab

I change the /etc/fstab from "/dev/vg00/lvol5 /home hfs defaults 0 0" to "/dev/vg00/lvol5 /opt hfs quota 0 0" , then run " mount -a " , the /etc/mnttab is still "/dev/vg00/lvol5 /home hfs defaults 0 0" , so i think the file is not update, can some suggest what this happen ? thanks.
Andy
Frank Slootweg
Honored Contributor

Re: Modify /etc/mnttab

As others have mentioned, if you modify an *existing* entry in /etc/fstab (which you do) and that logical volume is already mounted (which it is in your case), then you have the first umount it and then re-mount it. The former must be done by umount. The latter can be done by mount (with parameters) or by "mount -a" (ignoring the messages for already mounted filesystems.

*BUT* are you sure you want to change /home to /opt? I.e. does the logical volume really contain the /opt filesystem?
harry d brown jr
Honored Contributor

Re: Modify /etc/mnttab


This member has assigned points to 6 of 74 responses to his/her questions.

To find your previous questions, either click on your profile or click below:

http://forums.itrc.hp.com/cm/TopSolutions/1,,CA759973!1!questions,00.html

live free or die
harry
Live Free or Die