You are not logged in.
I can mount my cifs/samba share from terminal like this:
sudo mount -t cifs -o username=blaablaa,password=blaablaa //192.168.1.1/Media /media/MEDIA/server
So why doesn't it work as a command in autostart.sh like this?
sudo mount -t cifs -o username=blaablaa,password=blaablaa //192.168.1.1/Media /media/MEDIA/server &
Any clues? I'd rather not touch my fstab 
Offline
Ok, it seems that the problem is kinda very simple:
In the syslog my mount-command is executed before the Network manager "starts" the wired connection, so no wonder mounting a network share won't work 
The problem is, that I don't know how to make my mount command to be run AFTER the network manager has started the connection. (or network manager to be run earlier) Any help?
My mount-command is the very last in the autostart.sh, so I'm kinda stuck here 
Offline
you could try to 'sleep' for a few seconds before trying to connect to your samba shares:
(sleep 5s && sudo mount -t cifs -o username=blaablaa,password=blaablaa //192.168.1.1/Media /media/MEDIA/server) &
oh yeah? well, your momma dresses you funny and you need a mouse to delete files
Offline
On my cruncheee install, there's a a mountnfs script in /etc/network/if-ip.d/
That might be a good place to look.
Offline
Thanks
However, it seems that I actually got it working with no changes at all... I read something similar concerning samba shares and large number of files: it takes a while to "cache" them and show up in the mount directory. I'll test a bit further, but now it seems to work as I expected.
Offline
SUCCESS
I put a 5 second delay in the mount command in the autostart.sh and it works. Hope this helps some other people too 
Thank you pitje 
(sleep 5s && sudo mount -t cifs -o username=blaablaa,password=blaablaa //192.168.1.1/Media /media/MEDIA/server) &Offline
This method isn't working for me using #! Jaunty, and I'd like to use it rather than add mount info to /etc/fstab because that file is outside of my encrypted home directory. The shared directory isn't mounted, although if I paste the mount command into a terminal window it does work. I've tried increasing the wait time, but that doesn't seem to be the issue.
I also don't understand how a sudo command can be executed in autostart.sh without entering the password...?
Info on how to correct the neverending CIFS VFS shutdown error can be found here (I had to use K00 as a prefix on my laptop in order to avoid this error message):
http://blog.avirtualhome.com/2008/03/10 … s-related/
Offline
Hmm. If I add the command to my Openbox menu it works, although I have to enter my password into a terminal that opens up. Here's my menu entry:
<item label="Mount Tooga">
<action name="Execute">
<execute>
terminator --command="sudo mount -t cifs -o username=me,password=mypassword //192.168.0.120/archivos /mnt/tooga"
</execute>
</action>
</item>
Offline
I simply put this in autostart.sh
# Mount Network Shares
(sleep 15s && smbnetfs -o nonempty ~/Network) &My artwork at deviantART | My Tweet | My upcoming web page
Crea diem!
Lenovo ThinkPad E320 | 8GB | 120GB Samsung 840 SSD | Xubuntu 12.10 & #! Waldorf
Offline
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.