fstab cheatsheet

http://manpages.ubuntu.com/manpages/precise/man5/fstab.5.html

https://help.ubuntu.com/community/Fstab

http://manpages.ubuntu.com/manpages/precise/man8/mount.8.html

Examples

  • External USB-Harddisk
    • UUID=abc-123  /media/usbdisk  ext4  noatime,noexec,nobootwait,nofail  0  2

Options

  • file system
    • Get UUID: blkid
  • options
    • default
      • use default options: rw, suid, dev, exec,  auto,  nouser and async.
    • relatime
      • access times are only updated if they are (before the update) earlier than the modification time
    • noatime
      • turns off the tracking of access times
    • errors
    • user
      • Permit any user to mount the filesystem. This automatically implies noexec, nosuid,nodev unless overridden.
    • noauto
      • do  not  mount  when  "mount  -a" is given (e.g., at boot time)
    • exec /noexec
      • Permit/Prevent the execution of binaries from the filesystem.
    • suid/nosuid
      • Permit/Block the operation of suid, and sgid bits.
    •  
    • utf8
    • nobootwait
    • nofail
      • do not report errors for this device if it does not exist.
    • bg
  • dump
    • Legacy for backup. Not used. Use "0"
  • pass
    • 0 = no fscheck
    • 1 = primary check e.g. for root
    • 2 = not so important disks