Auto mount storage on Linux


Below example is for CIFS storage on CentOS. The commands are similar for other storage types on Linux

1.Open terminal

# making sure we have cifs tools installed
sudo yum install samba-client samba-common cifs-utils 
cd /mnt 
# create a mount point
sudo mkdir MOUNT_POINT
#Open fstab to add the auto mount 
sudo nano /etc/fstab 

2. Edit fstab, and add

//PATH_TO_SHARE     /mnt/MOUNT_POINT   cifs    username=USERNAME,password=PASSWORD,netdev,0,0


Information on the Tufts IT Knowledgebase is intended for IT Professionals at Tufts.
If you have a question about a Tufts IT service or computer/account support, please contact your IT support group.