大佬教程收集整理的这篇文章主要介绍了Mount NAS Storage in Linux Overview 转载,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
<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:
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.
@H_916_0@mount NAS StorageIf your device is running…
</td>
<td valign="top" width="613">
Then…
</td>
</tr>
<tr>
<td valign="top" width="399">
RedHat Enterprise Linux,CentOS or CloudLinux
</td>
<td valign="top" width="613">
Determine if the cifs-utils utility is installed by running the following command:
root@slnastest [~]# rpm -q cifs-utilsNote: If cifs-utils is not installed,the following message will appear:
package cifs-utils is not installed
root@slnastest [~]# yum
install cifs-utils
</td>
</tr>
<tr>
<td valign="top" width="399">
Debian or Ubuntu
</td>
<td valign="top" width="613">
Determine if the cifs-utils utility is installed by running the following command:
root@slnastest:~# dpkg-query -S cifs-utils
Note: If cifs-utils is not installed,the following message will appear:
dpkg-query: no path found matching pattern *cifs-utils*.
root@slnastest [~]# apt-get install
cifs-utils
root@slnastest:~# dpkg-query -S cifs-utils
cifs-utils: /usr/share/doc/cifs-utils
cifs-utils: /usr/share/doc/cifs-utils/changelog.gz
cifs-utils: /usr/share/doc/cifs-utils/NEWs.Debian.gz
cifs-utils: /usr/share/doc/cifs-utils/changelog.Debian.gz
cifs-utils: /usr/share/doc/cifs-utils/copyright
</td>
</tr>
If the NAS should…
</td>
<td valign="top" width="613">
Then…
</td>
</tr>
<tr>
<td valign="top" width="399">
</td>
<td valign="top" width="613">
Add the following command to the /etc/fstab file:
//nas05.service.softlayer.com/SL12345-1 /mnt/nas cifs defaults,username=SL12345-1,password=NASpassworD 0 0
</td>
</tr>
<tr>
<td valign="top" width="399">
Not mount on reboot
</td>
<td valign="top" width="613">
Proceed to the next step.
</td>
</tr>
@H_450_129@
Action
</td>
<td valign="top" width="613">
<p align="center">Command
</td>
</tr>
<tr>
<td valign="top" width="399">
Unmount the NAS
</td>
<td valign="top" width="613">
root@slnastest [~]# umount /mnt/nas/
root@slnastest [~]# df -Th /mnt/nas
Filesystem Type Size Used Avail Use% Mounted on
/dev/xvda2 ext3 25G 4.6G 19G 20% /
</td>
</tr>
<tr>
<td valign="top" width="399">
</td>
<td valign="top" width="613">
root@slnastest [~]# mount /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
</td>
</tr>
以上是大佬教程为你收集整理的Mount NAS Storage in Linux Overview 转载全部内容,希望文章能够帮你解决Mount NAS Storage in Linux Overview 转载所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。