O'Reilly logo

Essential System Administration Pocket Reference by Æleen Frisch

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Filesystems and Disks

Filesystem Configuration File

/etc/fstab

location mount-dir fs-type dump-freq fsck-pass options

Filesystem configuration file.

special-file

Filesystem location. For traditional local filesystems, this is the partition's block special file. A logical volume may also be specified if an LVM is in use. For NFS remote filesystems, the format is host:/path.

For Samba filesystems, the Linux format is //host/share. The FreeBSD format is //user@host/share.

mount-dir

Directory where the filesystem will be mounted.

fs-type

Filesystem type keyword.

dump-freq

Integer indicating the frequency this filesystem should be backed up by the dump utility.

fsck-pass

Integer indicating the order fsck should check filesystems.

options

Comma-separated list of options or the keyword defaults.

/etc/vfstab (Solaris)

block-dev char-dev mt-dir fs-type fsck-pass auto? opts

Similar syntax to the tradition fstab file, except:

  • Both block (for mounting) and character (for fcsk) special files are listed as the first two fields.
  • auto? is either yes or no, depending on whether the filesystem should be mounted automatically at boot time with mount -a.
  • The dump frequency field is not included.

/etc/filesystems (AIX)

mount-pt:    attribute =  value    ...

Attributes

dev = /dev/logical-volume

Logical volume.

vol = "name"

Descriptive label.

vfs = jfs2

Filesystem type: jfs2 for local, nfs for NFS.

log = /dev/log-vol

Device to use for filesystem log.

mount = true|false

Mount automatically?

check ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required