Skip navigation

I wanted to mount my windows Shares onto my VMware Sever (linux ubuntu) so that i can use it as an NFS and boot by VMs from the Windows Sever (since my windows server has a Raid Array) I tried several samba combinations but none seemed to work. CIFS seemed to do the trick.

Install smbfs

sudo aptitude install smbfs

Use the below command

mount.cifs //<ip address> </win_share> /mount/in/linux -o username=<username>,password=<password>

example:

mount.cifs //192.168.1.1/c$ /media/sdc1/ -o username=xxxxxxx,password=xxxxxxxxxxxx

To unmount use:

umount.cifs

To mount it permanently:

vi /etc/fstab

add this entry:

//Server_ip>/share_name /path_to/mount_in_linux username=server_user,password=server_password,netdev 0 0

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: