Mounting Windows share into Ubuntu Linux

Today my friend (Yeoh) ask me to help him to mount a windows share folder in to a Linux box running on VMware. He is using Ubuntu 7.02 with Deluge installed to download torrent. He don’t want to save the downloaded torrent file into the VMware but into the windows share folder.

So he ask me to help him to do the auto mount the windows share folder. To start off the configuration, make sure the windows pc have set as below:-

1) Windows firewall enable the “File and Printer Sharing”

2) Have share a folder with “Full access” and make sure there is no space in the shared name, try to use simple name.

If you have those set in the windows PC, then you can head to the Ubuntu box and mount the windows shared drive. If your Ubuntu does not have the smbfs type the following to install it:-

# apt-get install smbfs

after install then we create a mount point folder in “/mnt ” called download

# mkdir /mnt/download

# smbmount //<computer name>/<shared folder> /mnt/download -o password=”",rw,dmask=0775

This will mount the windows share folder into /mnt/download folder but will not auto mount after reboot, in order to do that i use the “/etc/rc.local” file to auto mount it. Add the following command in the file.

# /usr/bin/smbmount //<computer name>/<shared folder> /mnt/download -o password=”",rw,dmask=0775

if your windows share folder need username and password then use the following:-

# /usr/bin/smbmount //<computer name>/<shared folder> /mnt/download -o username=<username>,password=<password>,rw,dmask=0775

That’s all, now you can start using the /mnt/download folder.

September 6th, 2007 Posted in Linux howto

4 Responses to “Mounting Windows share into Ubuntu Linux”

  1. Wing Loon Says:

    Awesome, :D



  2. simonz Says:

    thx..will update more on my linux project..



  3. Eric Says:

    Eric…

    Man i love reading your blog, interesting posts !…



  4. Simon Says:

    Thank for visiting my blog, eric. Glad you like reading it.



Leave a Reply


XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Powered by WordPress | Blue Weed by Blog Oh! Blog | Entries (RSS) and Comments (RSS).