Make sure you have met the prerequisites listed on "Prerequisites".
Mount the file systems listed in the /etc/vfstab file.
# mountall [-l | -r] [-F fstype] |
If no options are specified, all file systems listed in the /etc/vfstab file with yes in the mount at boot field are mounted.
-l |
Mounts all the local file systems listed in the /etc/vfstab file with yes in the mount at boot field. |
-r |
Mounts all the remote file systems listed in the /etc/vfstab file with yes in the mount at boot field. |
-F fstype |
Mounts all file systems of the type fstype listed in the /etc/vfstab file with yes in the mount at boot field. |
All the file systems with a device to fsck entry are checked and fixed, if necessary, before mounting.
This example shows the messages displayed if file systems are already mounted when you use the mountall command.
# mountall mount: /tmp already mounted nfs mount: mount: /usr/openwin: Device busy nfs mount: mount: /usr/man: Device busy |
This example mounts all the local systems listed in the /etc/vfstab file.
# mountall -l # mount / on /dev/dsk/c0t3d0s0 read/write/setuid/largefiles on ... /usr on /dev/dsk/c0t3d0s6 read/write/setuid/largefiles on ... /proc on /proc read/write/setuid on Fri May 16 11:39:05 1997 /dev/fd on fd read/write/setuid on Fri May 16 11:39:05 1997 /tmp on swap read/write on Fri May 16 11:39:07 1997 |
This example mounts all the remote file systems listed in the /etc/vfstab file.
# mountall -r # mount / on /dev/dsk/c0t3d0s0 read/write/setuid/largefiles on ... /usr on /dev/dsk/c0t3d0s6 read/write/setuid/largefiles on ... /proc on /proc read/write/setuid on Fri May 16 11:39:05 1997 /dev/fd on fd read/write/setuid on Fri May 16 11:39:05 1997 /tmp on swap read/write on Fri May 16 11:39:07 1997 /nfs/mars.dist on mars:/usr/dist intr/remote on ... /nfs/mars.mail on mars:/var/mail intr/noac/remote on ... |