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.
I'm not exactly new to the forums but this is the first thread I've posted.
I've searched the forums for a solution on this but nothing actually works.
How do I mount a Windows network share on my linux box? I'm using Ubuntu 5.10 and I've also tried a Gentoo box. I'm sure it's a syntax problem. I can ping the box with the share but it won't hit the Windows share. Below is an example of my syntax and the error I'm getting:
mount -o user=justin 192.168.100.113:/doc/ /test/
unknown nfs mount parameter: user=0
I've also tried adding the "-t ntfs" switch. I've tried adding " " around my username but it won't allow me to do it. If I take the user=justin option out, it gives me the below error. Most likely because no username was supplied and won't authenticate.
mount: RPC: Remote system error - Connection refused
My Windows network share does definately exist and my username '
Last week I was doing Red Hat training, and I was mounting nfs shares all week as root with no problems but this is the first time I've tried mounting to my own Windows network share at home.
Distribution: Slackware, CentOS. Red Hat Enterprise Linux
Posts: 216
Rep:
You mount Windows shares using the smbmount program from the Samba package. This is because the way they connect is different and the code is not built into mount. To use the smbmount program, you can do this (borrowing from your example):
Notice that the remote share is referenced using a Windows UNC style name (with forward slashes instead of backslashes). Also you with be prompted for the Windows password at mount time unless you embed the paasword in the mount command, thus:
Hi Justin,
Mount command can take the following form:
mount -t smbfs -o username=Justin,password //192.168.100.113/c$ /mnt/c
Notes: 1.You don't have to type password=&type the password, rather if you just typed username=justin,password, it will accept it at the moment then it will ask you about it later on & it will be encrypted.
2. the source can be in the computer name from windows, you can get it by right click on my computer & properties, there will be few tabs including computer name.
3. c$ is the partition or file you want to mount in full path & should end by ($)
4. /mnt/c is the mount point.
Good luck!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.