Both /etc/mtab
and /etc/fstab
contain data about mounted volumes, for example:
/etc/mtab
/dev/xvda1 / ext4 rw,discard 0 0
proc /proc proc rw,noexec,nosuid,nodev 0 0
...
/etc/fstab
LABEL=cloudimg-rootfs / ext4 defaults,discard 0 0
/dev/xvdf /home/ubuntu/logs ext4 rw 0 0
What is the difference between the files?