LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-20-2006, 09:03 AM   #1
cnm
Member
 
Registered: Nov 2006
Distribution: RHEL 4
Posts: 34

Rep: Reputation: 15
diference between /etc/fstab and /etc/mtab


what is the diference between /etc/fstab and /etc/mtab
which one do we have to change manualy.
 
Old 11-20-2006, 09:10 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
One has an "f"--the other has an "m"
Oh---sorry---that's not what you meant....

fstab tells you where and how things WILL be mounted (at startup or manually, depending on settings)

mtab tells you where things ARE mounted

fstab is the one to edit

man fstab, man mtab, and man mount for all the gory details
 
Old 11-20-2006, 10:43 PM   #3
kutty_prasad
Member
 
Registered: Sep 2006
Location: Bangalore,India
Distribution: RHEL,Fedora, CentOS, Slackware 12 & wrestling with LFS
Posts: 86

Rep: Reputation: 16
I would like to add one more. When you type mount at the command prompt, it shows all the mounted partitions. This info. is taken from /etc/mtab. Basically mtab is dynamic and it's contents changes whenever a partition is mounted/unmounted.
 
Old 11-21-2006, 01:30 AM   #4
cnm
Member
 
Registered: Nov 2006
Distribution: RHEL 4
Posts: 34

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by pixellany
One has an "f"--the other has an "m"
Oh---sorry---that's not what you meant....

fstab tells you where and how things WILL be mounted (at startup or manually, depending on settings)

mtab tells you where things ARE mounted

fstab is the one to edit

man fstab, man mtab, and man mount for all the gory details

ok does that mean, when ever we create a new partition we have to add a line to /etc/fstab and then after you run "mount -a" it will be displayed in /etc/mtab too.
 
Old 11-21-2006, 05:54 AM   #5
lurko
Member
 
Registered: Jun 2006
Location: Ontario, Canada
Distribution: Debian
Posts: 448

Rep: Reputation: 35
yes. except it might be better to run "mount /path/to/mountpoint" if everything else in fstab is already mounted. "mount -a" will certainly do the trick however.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fstab problem: mount: can't find dvd in /etc/fstab or /etc/mtab Nikon01 Slackware 5 11-17-2006 06:15 AM
mtab and fstab problems Henster Linux - General 4 08-31-2004 05:38 AM
/etc/fstab or /etc/mtab praveenv Linux - Newbie 1 08-17-2004 04:03 AM
use mtab as fstab?hi rgiggs Mandriva 5 06-08-2004 12:47 PM
How to reload fstab and mtab jon_k Linux - Software 2 06-03-2004 10:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration