Mount Windows Share


Recommended Posts

I canno't get my windows share to mount correctly

in the /etc/fstab i have:

//192.168.1.105/movies /mnt/movies cifs exec,credentials=/etc/cifspw 0 0

and in the /etc/cifspw

username=theusername

password=thepassword

When i browse to mnt/movies the directory is empty....

Link to post
Share on other sites

since you say it is empty, that to me implies it is not mounted.

Have you tried mounting it with this command. You will need root privileges to do this

mount /mnt/movies

What does the output of the command mount show

mount

Edited by shanenin
Link to post
Share on other sites

When i do

mount /mnt/movies

it says that only root can mount //mycomp/Movies ob /mnt/movies

it also mentions that line 1 of etc/fstab is bad.... but i never touched that

anyways

do i have to change the directory it mounts to or what?

Link to post
Share on other sites

OK success!

The problem with the fstab was that i must have accidently hit a key before the first # [comment] so that was the error - that is now fixed

Now how i got the share to finally mount was

in /etc/fstab

//mycomp/Movies /home/mike/movies smbfs username=guest,password=guest,noauto 0 0

i moved it out of /mnt/movies - that didn't help, but now i will just leave it in my home directory.

After that i edited /etc/rc.local

mount /home/mike/movies

now it mounts when i startup

After 3 days of searching google i read that samba might not have started up when it was mounting everything so it never mounted properly and since rc.local is executed in the end samba is up and running and it mounts properly

=)

ohhh i still hate linux though :-p

Edited by fubz
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...