Linux Windows

Mount a Windows Drive on Ubuntu Using Samba

February 24, 2009

Ever wonder how you can mount a Windows share on your Linux box?  Well it’s actually quite simple.  I typically set up a special user for my windows shares, so in this example we’ll use a user with both a name and password of “lan” with a folder called “shared” which has been set up so that it is shared for that specific user.

Now on the linux box, just type in:

sudo mkdir /mnt/shared
sudo mount -t cifs -o username=lan,password=lan,rw // /mnt/shared

Just make sure to replace the IP with your own and it should work flawlessly!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.