Mobil Mewah

Salah satu sumber Inspirasi.

Mobil Sport terbaik

Anda pasti bisa memilikinya.

Bermain dengan pesawat

Salah satu ide yang gila, Balapan di udara.

Bermain di angkasa

Apakah ini salah satu Goals dalam hidup anda? anda pasti bisa mencapainya

Thursday, 7 April 2022

Mount a Network share from Linux

 Most server are using some sort of NAS or remote storage. The simple path is using SMB or cifs on linux machine to access the network storage.

To enable , you need make sure install cifs tools.

# yum install cifs.tools

Then you will able to mount any NAS storage using SMB protocol.

Some caveat are the version difference implementation on cifs. As recently there are security concern on previous version of SMB especially version 1, now we have until SMB version 3.0 

Usually we want the mount will be available after server reboot, so we need to add it on /etc/fstab

Here are sample for centos 6.6

//192.168.1.215/moview /movies cifs username=movies,password=movies,netdev 0 0

And for centos 7.9 release

//192.168.1.215/moview /movies cifs username=movies,password=movies,vers=2.0,_netdev 0 0

If you need more control on the protocol, can look some options from the documentation 

$ man mount.cifs



Twitter Delicious Facebook Digg Stumbleupon Favorites More