<h1 class=”title”>Mount NAS Storage in Linux
OverviewMounting
your NAS Storage to a device that runs on a Linux-based Operating
System can be done using a series of simple commands in the shell or
terminal within the OS. This procedure outlines the steps required to
mount NAS Storage on any of the following operating systems:
- RedHat Enterprise Linux
- CentOS
- CloudLinux
- Debian
- Ubuntu
Please note that while the majority of steps apply to all of the
operating systems listed above,the commands required to determine if
your CIFS utility is installed on Debian and Ubuntu are unique. Follow
the steps below to mount NAS Storage to your Linux-based OS.
Mount NAS Storage
- Determine if the OS on your device is RedHat Enterprise Linux,CentOS or CloudLinux -OR- Debian or Ubuntu.
- Create the directory and mount the device using the following commands:
mkdir /local/mountpointmount
-t cifs //Hostname/Username -o
username=username,password=password,rw,nounix,iocharset=utf8,file_mode=0644,dir_mode=0755
/mnt Example: root@slnastest [~]# mkdir /mnt/nas
root@slnastest [~]# mount -t cifs
//nas05.service.softlayer.com/SL12345-1 -o
username=SL12345-1,password=NASPASSWORD
rw,dir_mode=0755 /mnt/nas root@slnastest [~]# df -Th /mnt/nas/Filesystem Type Size Used Avail Use% Mounted on //nas05.service.softlayer.com/SL12345-1 cifs 54T 49T 5.3T 91% /mnt/nas - Determine if the NAS should mount on reboot.
- Unmount and mount the NAS to verify that the fstab was edited
correctly. Refer to the table below for the unmount and mount commands.