CIFS not automounting at boot
Just recently my CIFS shares in fstab are not being automounted at boot. However it does mount if I use mount -a as root.
It was working fine unil recently, Im not sure if it happened after an update. I am using Debian Lenny Here is my fstab Code:
# /etc/fstab: static file system information. |
Try adding the "_netdev" option.
quote from man mount: Quote:
Quote:
Code:
credentials=filename If the owner of the files in the target system has their username/password setup the same using the smbpasswd program, maybe the uid and gid options aren't necessary, unless it is a fat32 filesystem being shared. The ip= argument might help if the target services don't show up via browsing. This is like entering smb://192.168.1.100/allofus instead of smb://targetpc/allofus in konqueror. It is a bandaid approach if there is a browsing timeout problem. The IP addresses need to be persistant to be able to do this. If the target share is on a Windows 98 computer, or if an XP host has the old style browsing system enabled, explicitly indicating port 139 might speed up the process. Also make sure that the workgroup entry in smb.conf wasn't reset during an upgrade. I doubt that this is the case, since "mount -a" will work later on. That makes me think that it is a timing or timeout issue. |
The password is fake so that doesn't matter
It is a fat32 being shared so uid and gid are needed, even though that doesn't work (something with unix extensions) It does show up when browsing in Konqueror smb.conf is for server, and right workgroup is set Ill try the port 139 |
What about the "_netdev" option?
|
I don't see that in the manual page. How would I use this?
|
It is one of the generic options listed under -o description, before the filesystem specific options are listed.
You just include _netdev in the comma separated list of options in the /etc/fstab entry for the mount. |
oh ok, I did a man mount.cifs, so that's why I didn't see it. I give that a try
|
Nope. I tried it and it still doesn't work
|
Try hitting the logs. The log entries from samba or dmesg may indicate what the problem is.
|
All times are GMT -5. The time now is 07:12 PM. |