Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have an mtab file that looks nothing like the fstab file. I'm running CentOS 5.3 on Xen Source and am using HyperVM and Kloxo to administer the VM. Where should I be looking for assistance? XenSource, CentOS, or HyperVM documentation.


> /dev/sda1   /              ext3        defaults,usrquota,grpquota  1 1
> none        /dev/pts       devpts      gid=5,mode=620              0 0 
> none        /dev/shm       tmpfs       defaults                    0 0 
> none        /proc          proc        defaults                    0 0 
> none        /sys           sysfs       defaults                    0 0 
> /dev/sda2   swap           swap        defaults                    0 0


> /dev/simfs    /                         reiserfs    rw,usrquota,grpquota 0 0 
> /dev          /dev                      tmpfs       rw                   0 0 
> /proc         /proc                     proc        rw                   0 0
> /sys          /sys                      sysfs       rw                   0 0 
> none          /selinux                  selinuxfs   rw                   0 0 
> /proc/bus/usb /proc/bus/usb             usbfs       rw                   0 0 
> none          /dev/pts                  devpts      rw                   0 0 
> none          /dev/shm                  tmpfs       rw                   0 0 
> none          /proc/sys/fs/binfmt_misc  binfmt_misc rw                   0 0
share|improve this question
Could you clarify what you mean by "incorrect"? Are you experiencing issues? –  Andrew M. Aug 29 '10 at 5:47
No, I'm not experiencing issues. It's actually running, which also confuses me a bit. I don't know where it's getting the names for what mtab says is mounted. I'm actually trying to use some backup software that seems to be reading the mtab and complaining that /dev/sda1 isn't mounted, but the fstab is set up to mount it, and when I change the mtab, the backup software works. When I reboot though, the mount names return to the "incorrect" names. But the OS runs fine otherwise. –  frogstarr78 Aug 30 '10 at 15:45

2 Answers 2

up vote 1 down vote accepted

/etc/fstab is for specifying what to mount at boot time. /etc/mtab returns what is currently mounted.

/etc/mtab may not be 100% reliable in all situations, it's best to rely on the output of a plain mount command which provides the same information.

It's completely possible for the two to differ substantially and the system still be running normally.

I have the /dev/pts and /dev/shm in my mtab, but not in my fstab, and all is running normally.

share|improve this answer
Just to add to this, mount is not always reliable either as it reads from the disk (if the disk is readonly for example it will be wrong). cat /proc/mounts is a more accurate alternative. –  James L Aug 29 '10 at 9:17

The /etc/fstab is what you, the systems administrator, configures that is used to direct the mounting of the disks mostly at reboot time. It is quite possible that things in the kernel mount table, or the /etc/mtab file will be different. For example, some of your mounts specified in the /etc/fstab may not be mountable. This may be of concern.

However when you mount a device or disk, basically TWO special tables get changed: (1) the mount table resident in the kernel, and (2) /etc/mtab basically a standard file. In some cases, it is possible for /etc/mtab and the kernel mount table not to be in sync. If this is a problem you can delete /etc/mtab and reboot the system.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.