Mount a Windows Drive on Ubuntu Using Samba

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!

Tags: , , , ,

  • StumbleUpon
  • Reddit
  • Twitter
  • RSS

Leave a Reply