I just installed and configured a Ubuntu 8.04 Server. I installed LAMP and the Samba File Server. I Know want to be able to access/mount a Windows Shared Network Drive. Is this possible? If so how? Any advice will be appreciated. Thanks.
I just installed and configured a Ubuntu 8.04 Server. I installed LAMP and the Samba File Server. I Know want to be able to access/mount a Windows Shared Network Drive. Is this possible? If so how? Any advice will be appreciated. Thanks.
Hello..my name is Nono
Linux User #415998
My prefered way is:
Add this line to /etc/fstab:
Create a file called .smbpasswd wich contains:Code://smbserver/sharename /mountpoint cifs credentials=/home/user/.smbpasswd,uid=user,gid=group 0 0
Now you can mount your share with:Code:username=user passwod=yourpass
Code:mount /mountpoint
That works, but it's an old school way. I prefer to use autofs, to automatically mount such network drives on demand, and automatically unmount them after some configurable idle period.
I find that if windows "shares" are statically mounted for too long, they go stale and start having I/O problems.
Here is a good How-To you should see.
Linux User #415691 Ubuntu User #8629
Iowa Team (LoCo): [Wiki] [Launchpad]
IRC channel: #ubuntu-us-ia on irc.freenode.net
Thank you very much for the advice. I will try them.
Hello..my name is Nono
Linux User #415998
I use pmount to auto mount ntfs drives
sudo apt-get install pmount
sudo apt-get install ntfs-3g
reboot
If auto-mount failed you can try to mount your drive manually with this command:
sudo pmount-hal /dev/sda1 (or whatever drive you are trying to mount)
Bookmarks