Find the answer to your Linux question:
Results 1 to 7 of 7
Hi.. I have a drive opened up from a window machine, my Linux can see it under the network servers with the computer name and files in it. But where ...
  1. #1
    Just Joined!
    Join Date
    Jan 2007
    Posts
    5

    mount window Share

    Hi..
    I have a drive opened up from a window machine, my Linux can see it under the network servers with the computer name and files in it. But where do i access those files?
    I looked up in the web and seemed to me that i need to mount this drive...
    Mount a Windows share on Linux with Samba
    1. I was able to use # smbclient -L <windows-box> -U <username>
    to see win machine and folders that are sharing.
    2. # mount -t smbfs -o username=<username>,password=<password> //<win-box>/<share> /mnt/<name-of-mountpoint>
    => tried smbfs, unknown filesystem type 'smbfs', so i tried cifs
    => did not work either, the errors are "permission denied"
    => also tried using ip address, did not help either

    Does anyone has similar situation and know how to fix the problem?
    I have a redhat EL5 installed. already yum installed samba - 3.0.28-1.el5_2.1.i386.

    Thanks!!
    a total newbie

  2. #2
    Linux Guru jmadero's Avatar
    Join Date
    Jul 2007
    Location
    California
    Posts
    1,958
    any reason you want to mount this? You can just go to places, network and find the drive? I mounted one once and it was a pain, I forget even why I did it but haven't since then....if you need it mounted I'll try to look into it a bit more

  3. #3
    Just Joined!
    Join Date
    Jan 2007
    Posts
    5
    To access files...
    when i evoke programs, I can't see those shared drives...

  4. #4
    Linux Guru jmadero's Avatar
    Join Date
    Jul 2007
    Location
    California
    Posts
    1,958
    Well to begin with I would alter your smb.conf to be the most basic and add from there. This would mean that your network would have no username and password (which works for most people). It's a good way to troubleshoot:

    [global]
    workgroup = SIMPLE

    [test]
    comment = For testing only, please
    path = /export/samba/test
    read only = no
    guest ok = yes

    That's as simple as you can get for samba. The file to edit is /etc/samba/smb.conf (I recommend backing up that file before deleting everything in there and trying the simple method).

    From here use

    mount -t smbfs //location of networkd drive /mount point


    Unfortunately I no longer have a network up (but will as of tomorrow) so if that doesn't work I'll try a few things out as soon as I can.

  5. #5
    Just Joined!
    Join Date
    Jan 2007
    Posts
    5
    I had put this into my fstab... according to other readings on the web.. but still not seeing the drive...

    //<ip address of the window machine>/E /mnt/winshare cifs username=xxx,password=xxx,_netdev,uid=xxx,gid=user s 0 0

    Is this the correct direction?
    Not totally understand why to edit smb.conf because the samba is working. From windows I can see my share drives under Linux, no problem..


    Help ~~

  6. #6
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    you need to install smbfs package, its separate from samba server and samba client packages

  7. #7
    Just Joined!
    Join Date
    Jan 2007
    Posts
    5
    uhmm.. I am using rhel-i386-server-5
    I tried "yum install smbfs"..
    it said No package smbfs available....

    any other package name i should try?

Posting Permissions

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