Find the answer to your Linux question:
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 ...
  1. #1
    Just 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

  2. #2
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    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

  3. #3
    Just 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/

  4. #4
    Linux Enthusiast Mudgen's Avatar
    Join Date
    Feb 2007
    Location
    Virginia
    Posts
    623
    Quote Originally Posted by zindello View Post
    Third:

    You need to make sure that directory exists and is empty (so that you can mount in to it)
    Empty is not strictly necessary, although a good practice.

  5. #5
    Just Joined!
    Join Date
    Aug 2009
    Posts
    6

    Thanks

    To all of you that replied

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...