Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 have a few servers which i need to mount a windows server directory to it

I using the following command:

# mount -t cifs //ntserver/download -o username=vivek,password=myPassword /mnt/ntserver

There are no issue with most servers.

However I encounter the following error with two particular server

mount error: mount point /mnt/ntserver does not exist

Anyone know the reason and how to resolve it?

share|improve this question

migrated from stackoverflow.com Mar 18 '11 at 11:14

This question came from our site for professional and enthusiast programmers.

In Unix and its variants, such as Linux, file systems are not made available by giving them unique drive letters like in Windows; instead, there is a single hierarchal directory tree, and filesystems are made available by mounting them somewhere in that tree.

One of the filesystems will serve as the basis for everything else (/) and everything else is mounted somewhere below in a subdirectory. The directory where a filesystem is mounted must already exist, or the mount command will fail - if you ask me, it would be more logical and useful to require that it does not exist, but that's the way it is.

share|improve this answer

The directory /mnt/ntserver needs to exist on the machine before you can mount anything to it.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.