Whenever you create NSS pools and volumes from the command line, their mount information is not added by default to the /etc/fstab configuration file. After creating the pool and volume, make sure to edit the /etc/fstab configuration file to add entries for them.
The /etc/fstab file is a configuration file that contains information about all the devices and partitions on your Linux computer. Each line is an entry that describes where and how to mount one device or one partition. The following table describes the field information needed for NSS pools and volumes.
Table E-1 Options in the /etc/fstab File
For information about completing the fields for an entry in the /etc/fstab file, see Section E.4.1, Understanding Entries in the /etc/fstab Configuration File.
Log in as the root user, or use the su command to become root.
In a text editor, open the /etc/fstab configuration file.
IMPORTANT:When working in /etc/fstab, make sure not to leave any stray characters or spaces in the file. This is a configuration file, and it is highly sensitive to such mistakes.
Locate the area in /etc/fstab where partitions are defined, then add a line defining the mount information for the NSS pool.
devname mountpoint fstype mountoptions dump# fsck#
For example, suppose you created POOL2 on device /dev/hda2 and mounted it at /mnt/.POOL2. In the /etc/fstab file, the line to add would be
/dev/hda2 /mnt/.POOL2 nsspool noauto,rw,name=POOL2 0 0
If you want to mount an NSS pool automatically after a system reboots, make sure to use the auto command.
Locate the area in /etc/fstab below where you entered pool information, then add a line defining the mount information for the NSS volume.
devname mountpoint fstype mountoptions dump# fsck#
Make sure to place the NSS volume entry after its pool entry to ensure that the pool is mounted before the volumes in it.
For example, suppose you created volume NSSV1 and mounted it at /media/nss/NSSV1. In the /etc/fstab, the line to add would be
NSSV1 /media/nss/NSSV1 nssvol noauto,rw,name=NSSV1 0 0
If you want to mount a non-encrypted NSS volume automatically after a system reboots, make sure to use the auto command on both the pool it is in and the volume.
Save the /etc/fstab file to accept your changes.