02.07.2013 Views

A/UX® Programmer's Reference Sections

A/UX® Programmer's Reference Sections

A/UX® Programmer's Reference Sections

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

fstab(4) fstab(4)<br />

NAME<br />

f stab - static information about file systems<br />

SYNOPSIS<br />

iinclude <br />

DESCRIPTION<br />

The file /etc/fstab describes the file systems and swapping<br />

partitions used by the local machine. It can be modified with a<br />

text editor by the system administrator. The file is read by commands<br />

that mount, unmount, and check the consistency of file systems;<br />

it is also read by the system in providing swap space. Because<br />

there is an appropriate mount request in the / etc / rc<br />

startup file, any file systems described in /etc/fstab (other<br />

than those of type ignore or with mount option noauto) are<br />

mounted automatically whenever multi-user mode is entered.<br />

1<br />

The /etc/fstab file consists of a number of lines in the following<br />

format<br />

fsname dir type opts freq passno<br />

For example<br />

/dev/xyOa / 5.2 rw,noquota 1 2<br />

The fieldfreq is optionally used by dump. bsd(lM) to help report<br />

which file systems need to be dumped. passno is used by<br />

fsck(lM) to help select which file systems to check. For example,<br />

fsck -p2 checks all the 5.2 file systems listed in<br />

/etc/fstab withpassno greater than or equal to 2.<br />

The entries from this file are accessed using the routines in<br />

getmntent(3), which returns a structure of the following form:<br />

struct mntent {<br />

char *mnt_fsname; /* file system name */<br />

char *mnt dir; /* file system path prefix */<br />

char *mnt _type; /* 4.2, 5.2, nfs, swap,<br />

or ignore */<br />

char *mnt _opts; /* rw, ro, noquota, quota, noauto,<br />

hard, soft */<br />

int mnt_freq; /* dump frequency, in days */<br />

int mnt _passno; /* pass i on parallel fsck */<br />

} ;<br />

Fields are separated by white space; a i as the first nonwhite character<br />

indicates a comment.<br />

February, 1990<br />

RevisionC

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!