Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I typically mount the "drive" in question in Windows with an address. In Linux (Ubuntu 10.04), I tried adding the following entry to /etc/fstab to no avail: /mnt/sharename cifs username=myusername,password=mypassword 0 0

When I mount /mnt/sharename, I see this error:

mount, wrong fs type, bad option, bad superblock on

How can I mount this path in Ubuntu 10.04?

share|improve this question
up vote 2 down vote accepted

http: is usually used for WebDAV shares, so:

  • If you use Ubuntu, you'll probably have GNOME or KDE. Both accept URLs like dav://host/path in their file managers.

    (GNOME also lets you gvfs-mount dav://address from terminal.)

  • If you want to skip the GVFS and Kio layers, you will want davfs.

    (cifs, which you are trying to use, is purely for the Windows file sharing protocol.)

share|improve this answer

Probably not. fstab isn't magic, it's just a list of file systems that your computer will try to mount at start time (and other times, but start time is usually where it's read). The file is read, and then various mount utilities are used, depending on the file system type. And CIFS as a protocol isn't remotely close to the http protocol. It's like you're writing 'plug the Nintendo 64 cartridge into the XBox360' and assuming it will just work. You need something that actually speaks http in this instance.

Do you really need file system over http, or do you want to just read/write files on a webserver that you control? If it's the latter, you need to figure out how those files are served on a fileserver (cifs, nfs) and configure that.

Do you really want to serve over http? It wasn't designed (though can be forced into it) as a file system protocol. Look into WebDav, and there are some ( true drivers for webdav.

share|improve this answer
I don't have specific access to the box hosting the mapped drives currently in use by my Windows users. So, it's not a "do you need" or "do you want" question, it's a "have this, how do I make it work" :) – gr33d Aug 27 '10 at 20:15

That is not a HTTP share in Windows, either. It's a CIFS share.

Instead just use

 // /mnt/sharename cifs username=myusername,password=mypassword 0 0
share|improve this answer
It just times out. Does the username need a domain or anything? – gr33d Aug 27 '10 at 12:18
CIFS is not served over HTTP. – grawity Aug 28 '10 at 10:16

Mine works like this:

office:/OurDocs$  /mnt/home/our_docs  cifs  user,_netdev,noatime,nodiratime,user=myusername

or$  /mnt/home/our_docs  cifs  user,_netdev,noatime,nodiratime,user=myusername
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .