Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Im trying to mount a remote drive and Im getting the error 'mount point does not exist'
I have added the server name in my hosts file and confirmed the directory exists. Command Im trying is:
mount /// /servername/music/ -o username=JohnDoe
So now Im a bit stuck. I do have samba setup for this same drive and can access via Windows, but not familiar with networking via linux. I have so many ideas but not sure which to try. Should I start reading up on NFS, does that 'music' directory need to be shared, or is there something simple I can be doing?
I eventually want to have this auto mount on boot but lets crawl before we run.
Your command is missing a mount point and the /// part is not correct. For example if you wanted to mount the share on your local /mnt/music then your command should be this.
Code:
mount -t cifs /servername/music /mnt/music -o username=JohnDoe
Last edited by stress_junkie; 09-06-2008 at 10:25 AM.
If that's the mount command you actually tried to use, there are several problem with what you've tried:
1) You have failed to specify the type of file system you're attempting to mount.
2) Your source location syntax in incorrect
3) Your destination location is missing
The error message you received means that there is no directory called servername in the root file system of your Linux system.
Try something like this:
sudo mount -t cifs ///severname/music/ /home/john/Music -o users,defaults,credentials=.credfile
Look at info mount for the options in the cifs or smbfs mount options for a descriptions of the credentials file format and contents. (The smbfs file system type has been depreciated for some time now, and I can't recall if Ubuntu still uses it or it they've moved to the cifs file system type, although I expect that they have.)
Note that the ///servername... is the source file system, and the /home... is the destination location where the source file system is to be connected to the Linux directory tree. That destination should be a directory that exists when the command is executed. If the destination location is not empty, its contents will be hidden until the attached file system is detached from that location. So, in your case, if you have something in your "Music" directory you want to access while you have your SMB directory attached, you should use the mkdir command to create an empty subdirectory of, say, your "Music" directory and then use that empty directory as your mount attach point.
Last edited by PTrenholme; 09-06-2008 at 10:44 AM.
Reason: Typos
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.