View Single Post
Posts: 726 | Thanked: 345 times | Joined on Apr 2010 @ Sweden
#2
Put it in a script? Then all you need to do is run the script.

The script would be
Code:
#!/bin/sh
mount -t cifs //192.168.0.2/multimedia /home/user/MyDocs/tmp/ -o username=Lippivan,MYUSERNAME=MYPASSWORD,iocharset=utf8,file_mode=0777,dir_mode=0777
Call it something like smb_mount.sh and don't forget to set its execute bit
Code:
chmod 755 smb_mount.sh
The permanent solution is to find the right part of the start up mechanics and add a call to your script there.

But, remember that if you lose your network connection, booting might hang for a while. And if you lose network connection after mounting, that directory will be marked as mounted and you will get interesting timeouts for some file system operations.

Last edited by Joorin; 2010-05-21 at 12:03. Reason: Typo
 

The Following User Says Thank You to Joorin For This Useful Post: