Usually, one of two things cause this. The first is that the NFS entry in
/etc/fstab is incorrect. To check this, follow these steps:
1) Log on as "root".
2) Edit the file /etc/fstab. This file lists all of the partitions which
should be automatically mounted when the system is booted into
multi-user mode.
3) As needed, add an entry for each NFS partition that you would like
mounted automatically. The format needed is displayed in /etc/fstab:
rhost_1:/filename /mnt ignore rw 0 0
rhost_1 is the name of the repote host. "filename" is the file system
to be mounted. /mnt is the mount point, the directory to which the file
system will be attached.
The other reason is that NFS file systems are mounted at startup only if the appropriate line has been altered in /etc/inittab. To see if yours is correct, follow these steps:
1) Log on as "root".
2) Enter the command:
grep mount /etc/inittab
You should see:
nfs8:2:once:/etc/mount -at nfs > /dev/syscon 2>&1
If this is not displayed, do these steps:
1) Edit the file /etc/inittab
2) Change the line
nfs8:2:off:/etc/mount -at nfs > /dev/syscon 2>&1
to
nfs8:2:once:/etc/mount -at nfs > /dev/syscon 2>&1
3) Save the file and quit the editor.
4) Shut the system down into single-user mode.
5) Bring the system back up into multi-user mode. The system will display
the names of the local and NFS partitions as they are mounted.
The other reason that this happens is because you are in single-user mode. To find your run level, type
who -r
This should be displayed:
run-level 2 Apr 14 09:59 2 0 S
The number in the second column of the output should be a "2".
If it is an "S", your system is in single-user mode and must be booted into multi-user mode. To boot into multi-user mode:
1) Enter the command:
init 2
This will start the system booting into multi-user mode. During the
booting process, it will ask if you'd like "the rest of the partitions"
checked by fsck.
2) Press "Y" and Return.
When the system is up in multi-user mode:
1) Log on as "root".
2) Enter the command: df
The output will list all currently-mounted partitions, both local and remote.
Article Change History:
06 Sep 1994 - Reviewed.
31 Aug 1992 - Reviewed.
Support Information Services