How to automatically mount a Windows shared folder on every boot up?
- by Zabba
I am able to access Windows' shared folder from Ubuntu 10.10 Nautilus like so:
Type into the Location Bar : smb://box/projects
Now, I can see the folder in Nautilus, create/read files in it. Also, on desktop I get a folder called "projects on box".
But, that folder on the desktop goes away when I reboot. So, I thought that I can automount the Windows' shared projects folder by adding this to my fstab:
//box/Projects /home/base/Projects smbfs rw,user,username=jack,password=www222,fmask=666,dmask=777 0 0
(base is my user name on Ubuntu)
Now, I get a folder called "Projects" in my home folder after boot up, but it is empty (cannot see the same files that I can see in Nautilus).
What's am I doing wrong?
Some more detail:
This is what I see of the Projects folder when I do ls -l in my home folder:
...
drwxr-xr-x 2 root root 4096 2011-01-01 10:22 Projects
drwxr-xr-x 2 base base 4096 2011-01-01 09:06 Public
...
Note the two "roots". Is that somehow the problem?