1833847 Members
2218 Online
110063 Solutions
New Discussion

Re: fstab

 
andi_1
Frequent Advisor

fstab

Hi,

If I have an entry in /etc/fstab file does it guarantee that this entry is mounted?

Thank you.
7 REPLIES 7
Sanjay_6
Honored Contributor

Re: fstab

Hi,

an entry in /etc/fstab does not mean that the filesystem is mounted, if it is commented out by a "#" in the first column on the line.

Also any filesystem, automatically mounted using fstab can be manually unmounted.

Hope this helps.

Regds
andi_1
Frequent Advisor

Re: fstab

Hi,

So, unless an entry is preceded by an #, an entry is mounted. Am I correct?

Thank you!
BFA6
Respected Contributor

Re: fstab

Hi,

No it doesn't necessarily mean the filesystem is mounted.
The file could be edited & a new filesystem entry put in without mounting the filesystem, or file systems could be manually unmounted.

Hilary
nancy rippey
Trusted Contributor

Re: fstab

Also if you would have any type of syntax error in the fstab the filesystem may not mount. Also if the directory is not present the filesystem is unable to mount. In other words if the entry in /etc/fstab is set up correctly and not commented out it will mount but there are various things that can keep it from mounting.
nrip
Sandip Ghosh
Honored Contributor

Re: fstab

It is not necessary that it will be mounted.
Better check with bdf whether it is mounted or not.

Sandip
Good Luck!!!
Sanjay_6
Honored Contributor

Re: fstab

Hi,

Yes if there is an entry without a "#" in the first column and if the syntax of the entry is correct the lv will get mounted at the bootup of the system.

Hope this helps.

Regds
Darrell Allen
Honored Contributor

Re: fstab

If you want the filesystem to mount at boot time, the proper method is to have an entry for it in /etc/fstab. Even so, that doesn't guarantee it will be mounted as there could be errors with fstab, the filesystem, or the volume group itself.

Darrell
"What, Me Worry?" - Alfred E. Neuman (Mad Magazine)