View Full Version : [ubuntu] Auto mount windows network drive
January 18th, 2009, 09:27 AM
Trying to auto mount a windows drive so I can clamscan and grsync to easy.
I have created a
then tried addig to fstab
//10.1.1.10/c /media/server auto ro,noauto,user,exec 0 0
i am using 8.10 any help would be appreciated.
Thanks in advance
January 18th, 2009, 10:14 AM
I used Smbafs to do this.
sudo apt-get install smbfs
Add this into your /etc/fstab to make it permanent:
//[server name or ip]/[share name] [directory to mount share into] smbfs username=[samba username],password=[samba password] 0 0
For a non-permanent solution, run this command:
mount -t smbfs //[server ip or domain name]/[server directory] [place that you want to mount the directory] -o username=[samba username],password=[samba password]
I made a quick Post (http://www.jonhoweonline.com/linux/how_to_mount_a_samba_share_to_your_computer_in_lin ux/) on it a while ago with more info:
January 19th, 2009, 09:12 PM
I've set up fstab so my ubuntu 8.10 box automatically mounts a share on a separate WIndows XP Home machine. No problem there. grsync can operate just fine updating the contents of subfolders below the root level of the share.
The problem is that grsync cannot create directories on the root of that share. Here is what fstab looks like:
//windows_box/share /mnt/photos cifs credentials=/path/to/creds,exec,rw 0 0
I have tried many different variations of dir_mod and file_mod and umask parameters, but when the share is mounted, an ls -l in /mnt shows something like:
dr-xr-xr-x photos blah blah
Doesn't matter what /mnt/photos is before the mount (drwxrwxrwx), it gets changed to the above perms when mounted.
So, can the share be mounted so I can create folders at the root level of the share, e.g. photos/new_folder ?
January 19th, 2009, 09:25 PM
This (http://ubuntuforums.org/showthread.php?t=288534) How-To provides a wealth of Samba information - mounting in particular.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.