![]() |
Mounting a samba Share
I am trying to mount a samba shared folder. I have a NAS box that I can access by browsing to:
Code:
smb://nas01Code:
/mnt/nasbox |
You can mount samba shares with below commands if smbfs/cifs package is already installed. If not install those using
Code:
sudo apt-get install smbfsCode:
$idCode:
#mount -t smbfs //nas01 /mnt/nasbox -o uid=userid,gid=groupidCode:
#mount -t smbfs //nas01/sharefolder /mnt/nasbox -o uid=userid,gid=groupidCode:
//nas01/nas_share /mnt/nasbox smbfs username=username_of_nas,password=password_of_nas,uid=your_id,gid=your_group_id 0 0Code:
#umount /mnt/nasbox |
Thanks for your reply! However when I run "yum install smbfs" centos returns a "no package available" error. I am running Centos 6.2.
|
Quote:
I just ran this below on Cent5.7 and could successfully mount samba share(192.168.0.1/Docs) with cifs. Code:
#yum install samba samba-common samba-clientCode:
#mount -t cifs //192.168.0.1/Docs /mnt//192.168.0.1/Docs /mnt cifs uid=500,gid=501 0 0 The permanent mount also is working fine for me. You make sure the host "nas01" is pinging from your cent machine, if not add that machine IP address to /etc/hosts file. IP_address_of_server nas01.something.com nas01 Then edit /etc/fstab file and append the following to the end as below Code:
//nas01/nas_share /mnt/nasbox cifs uid=your_id,gid=your_group_id 0 0Code:
//nas01/nas_share /mnt/nasbox cifs username=samba_username,password=samba_user_password,uid=your_id,gid=your_group_id 0 0#mount -a #df -h Now it should be mounted with /mnt/nasbox |
You da man! SOLVED!
|
| All times are GMT -5. The time now is 03:48 AM. |