mounting network samba drive using cifs in /etc/rc.local file
I have a samba server (CENTOS 5.3). The server has a share called "export_name." For the purpose of this question, the share has no password.
I want to mount "export_name" automatically when I boot on a client (UBUNTU 9.4). The mountpoint is called "/home/my_local_user_name/export_name."
I have added this single line to the /etc/rc.local file on the UBUNTU client, saved it, and set the executable bit (chmod + /etc/rc.local). The line is as follows:
mount -o username=user //192.xxx.xxx.xxx/export_name /home/my_local_user_name/export_name
This rc.local file does not work on boot but works only when I open a terminal and type:
sudo sh /etc/rc.local
Last edited by rioguia; 09-06-2009 at 09:08 PM.
Reason: adding tags, clarifying the question, cleaning up grammar