Results 1 to 5 of 5
Hi All,
I have the following line in my fstab:
//192.168.2.100/e:/video /mnt_win_video ntfs defaults 0 0
And when I try:
mount -t cifs -o username=usr,password=secert //192.168.2.100/e:/video /mnt/mnt_win_video
I get: mount ...
- 05-27-2010 #1Just Joined!
- Join Date
- Aug 2009
- Posts
- 6
Mounting to a windoes 7 shared directory
Hi All,
I have the following line in my fstab:
//192.168.2.100/e:/video /mnt_win_video ntfs defaults 0 0
And when I try:
mount -t cifs -o username=usr,password=secert //192.168.2.100/e:/video /mnt/mnt_win_video
I get: mount error: can not change directory into mount target /mnt/mnt_win_video
What am I doing wrong?
Thanks,
Nahum
- 05-27-2010 #2
you need to create a samba share on the machine you are sharing from to the directory you want to share
also, i would remove the : in the directory name, it may or may not cause problems, but i wouldn't use it anyway
- 05-27-2010 #3Just Joined!
- Join Date
- May 2009
- Posts
- 13
First:
Your fstab references the following DIR:
/mnt_win_video
Whereas your manual mount command references
/mnt/mnt_win_video
You might want to alter your fstab to reflect the latter directory, as its common practice to mount things into /mnt/<some directory> rather than just in to some directory in the root.
(This is most likely what is causing your error above)
Second:
If you want to use your fstab for mouting this folder, you need to substitute out "defaults" for " -o username=usr,password=secret"
This will then enable you to simply type "mount /mnt/mnt_win_video" and it will take care of mounting to the correct dir, as well as passing the credentials to the windows box
Third:
You need to make sure that directory exists and is empty (so that you can mount in to it)
Fourth:
Ensure that you have a user account within your windows PC for the credentials you are supplying in your mount command
Fifth:
Ensure that you have shared the drive on your windows computer that you want to access from your linux box. I would also recommend not using a colon ":" in the same, and simply share your E: drive as E, this would change the //192.168.2.100/e:/ to //192.168.2.100/e/
- 05-28-2010 #4
- 06-02-2010 #5Just Joined!
- Join Date
- Aug 2009
- Posts
- 6
Thanks
To all of you that replied


Reply With Quote
