Q: How do I automount a drive in Solaris?
A:
Summary:
1) First, ensure that you can manually mount
the drive.
2) Edit and save the /etc/vfstab file.
3) Unmount the drive.
4) Reboot the machine to ensure that it will automount when you reboot.
Detailed:
1) First, ensure that you can manually
mount the drive.
Once you have been able to succesfully complete those steps, you are ready
to continue to step 2.
2) Edit and save the /etc/vfstab file.
(if you are unfamiliar with the vfstab or with using vi, see our pages
on each.
vfstab tutorial
vi basics
Type:
vi /etc/vfstab
Go to the bottom of the file and add a new line that looks like the following:
/dev/dsk/c0t1d0s0 /dev/rdsk/c0t1d0s0 /disk2 ufs 1 yes -
Be sure to replace the relevant information in the line above with that
appropriate to the disk and slice you are trying to automount.
Save the file and exit.
3) Unmount the slice mounted in Step 1.
Type:
umount /disk2
4) Reboot the machine to ensure that it will automount when you reboot.
When the machine reboots, open a terminal window and type:
df -k
In the output, you should see the the slice you just automounted. If not,
go back and check that you did all the steps correctly.