Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Distribution: Red Hat 7.2/8/9, Fedora Core 1/2/3, Smoothwall, Mandrake 7.0/10, Vecter 4, Arch 0.6, EnGuarde
Posts: 289
Original Poster
Rep:
Mount/MAP a Network Drive?
I have a program of which runs on Windows and saves a file there.
I would like to copy this file into Linux, where the server I host will load it up.
Currently, in order for me to get this file there, I must first restart the server in Windows 98, where I can MAP a network drive, then copy the file to a directory.
Then I restart the computer back into linux, where I can TELNET and initialize the server.
Currently, I'm using the nwserver (Neverwinter Nights Dedicated Server for Linux) software.
MAPPING is a DOS/Windows Term. It simply means to mount a Network Drive. (C:\ on Computer 1) = (Z:\ on Computer 2 (//mshome/computer_1/c)
________________________________
David. I heard samba was used for this type of thing. Could you give me a little detail on how I can mount drive C:\ from computer 1 w/ Windows, to /mnt/map_c on computer 2 /w Linux? Also in vis'versa if you know how? Windows 98 or Windows XP will do.
Share the drive on windows then create a mount point and mount the share:
mkdir /mnt/myshare
mount -t smbfs -o username=USERNAME,password=PASSWORD //winbox/myshare /mnt/myshare
If you want the share to be mounted on each boot then you can create an entry in /etc/fstab
If you want to map a linux directory to a windows drive then just create a share in smb.conf and follow your usual mount procedure as if it was another windows machine.
Distribution: Red Hat 7.2/8/9, Fedora Core 1/2/3, Smoothwall, Mandrake 7.0/10, Vecter 4, Arch 0.6, EnGuarde
Posts: 289
Original Poster
Rep:
I can not automatically mount a network drive on Linux because I do not know how to setup an automatic password with fstab.
When I mount the network drive manually, it request a password in order to gain access to my directory on my windows box. It works fine if I enter it.
However, after setting up fstab to auto-mount the network drive, this option is not being asked of me when Linux boots up. It waits for me to simply push enter and when done, it fails because it could not athenticate. I need to have the password automatically enter when it is auto-mounting with fstab.
How do I enter a password option in fstab so I may automatically map a network drive? Man pages were not very helpful...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.