CentOS 5, 6上使用mount.cifs/mount.nfs要安裝哪些套件

先前曾經 解決mount cifs時出現"is not a valid block device"的問題
原因是因為 mount -t cifs 無法掛載 cifs 的子資料夾,
後來找到在 CentOS 5.5只要安裝了 samba-client 就可以用 mount.cifs 掛載子資料夾了。
[root@demo ~]# yum install samba-client

最近在 CentOS 6.5遇到了同樣的問題,沒想到裝了 samba-client 卻沒有用,
仍然顯示 mount.cifs 指令找不到,更慘的是連 5.5原有的 mount.nfs 指令也不見了 @@
[root@demo ~]# mount.cifs
-bash: mount.cifs: command not found
[root@demo ~]# mount.nfs
-bash: mount.nfs: command not found
[root@demo ~]#

圖片來源:http://parallel-42.com/?p=37

後來透過 rpm.find 查到了 mount.cifs 在 CentOS 6系列需要裝的套件是 cifs-utils,

裝完之後就找得到 mount.cifs 指令囉 ^^
[root@demo ~]# yum install cifs-utils

......

Installed:
  cifs-utils.x86_64 0:4.8.1-19.el6                                                                      
Dependency Installed:
  keyutils.x86_64 0:1.4-4.el6                                                                          
Complete!
[root@demo ~]# mount.cifs
Usage:  mount.cifs <remotetarget> <dir> -o <options>
Mount the remote target, specified as a UNC name, to a local directory.

要使用 mount.nfs 流程也是一樣,
至 rpm.find 找到 mount.nfs 在 CentOS 6系列需要裝的套件是 nfs-utils,
(沒有出現 CentOS 5的套件,所以 CentOS 5 應該是內建的)。

裝完之後就找得到 mount.cifs 指令囉 ^^
[root@demo ~]# yum install nfs-utils

......

Installed:
  nfs-utils.x86_64 1:1.2.3-39.el6                                                                       

Dependency Installed:
  libevent.x86_64 0:1.4.13-4.el6      libgssglue.x86_64 0:0.1-11.el6  libtirpc.x86_64 0:0.2.1-6.el6_4 
  nfs-utils-lib.x86_64 0:1.1.5-6.el6  rpcbind.x86_64 0:0.2.0-11.el6  

Complete!
[root@demo ~]# mount.nfs
usage: mount.nfs remotetarget dir [-rvVwfnsih] [-o nfsoptions]  

本文出自符碼記憶,請勿全文轉載,部份轉載請註明出處 關鍵字:mount.cifs, mount.nfs, samba, cifs-utils, nfs-utils, CentOS5, CentOS6, 掛載, nfs, cifs
參考資料:

這個網誌中的熱門文章

【銀行代碼查詢】3碼銀行代碼列表、7碼分行代碼查詢

【博客來折價券】25/50/100/150現領現折+天天簽到換200+OP兩倍換!

【博客來折價券】博客來免費序號e-coupon分享(持續更新)

Gmail 無限分身術:產生無限 email 帳號

【新光卡攻略】台灣Pay單筆888送50+寰宇3%,LINE會員繳費10%!