Fragmented Development

Mounting a Windows/Samba Share With the Mount Command

jacob | 04 March, 2010 16:03

Okay, quick note for myself later on - and anyone who may find it useful - about how to mount a Windows or Samba share in a Ubuntu Karmic/9.10 Minimal Install:

  • You'll need to install the "smbfs" and "smbclient" packages beforehand
  • Here's the mount syntax: mount -t cifs -o nounix,noserverino,username=DOMAIN\\user,password=*****,file_mode=0777,dir_mode=0777 \\\\server\\share /mount/point
  • In mount, don't forget to replace "DOMAIN" and "user" with your domain and username, "*****" with your actual password, "\\server\share" with the appropriate UNC path for the share, and "/mount/point" with the location on your local file system where you'd like everything to be mounted. Those backslashes are doubled-up for a reason, too: they have to be escaped or else bad stuff happens (I assume).
  • If at first this doesn't succeed, and you get the [INSERT ERROR HERE LATER, JAKE - nothing to see here yet, folks... ;)], you probably need to install more Samba packages. Try randomly installing stuff with the word "samba" or "smb" in it from the repos - the two listed in the first step were just the last two I tried, and might not do it on their own.

All content, graphics and, design © 2005 - 2008 Fragmented Development. All rights reserved, may contain peanuts. Powered by LifeType.

Admin