How to Mount Windows Share on Linux
Here’s a quick guide on how to connect and mount a windows share on a linux box.

First, create a mount point directory. This is where you will mount the windows share you intend to access.
m kdir ⁄mnt⁄<mount-point-directory-name>
After the mount point directory has been created, you are now ready to mount the windows share on the linux box.
mount -t smbfs -o username=share-username,password=share-password ⁄⁄<windows-box>⁄<share-name> ⁄mnt⁄<mount-point-directory-name>
If you encounter a problem that says:
mount: wrong fs type, bad option, bad superblock on ⁄⁄mywindows⁄myshare,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a ⁄sbin⁄mount.<type> helper program)
In some cases useful info is found in syslog - try
dmesg …
The error above means you do not have the required smb filesystem installed on your system or your kernel wasn’t compiled with smbfs support. If you are using Ubuntu or Debian Linux then you can install the smbfs straight from the repository. Other distro may need to recompile their kernels to support smb filesystem.
sudo apt-get install smbfs
Once installed, you should be able to mount and access the windows share alright.
Spread the word
del.icio.us Digg Furl Google StumbleUpon Technorati Windows Live Yahoo! Help












Leave a Comment