Is it possible to do a mount like this in Mac OS X?

Discussion in 'macOS' started by rrpalma, Dec 27, 2009.

  1. rrpalma macrumors member

    Joined:
    Sep 21, 2008
    #1
    Hello,

    I'm a heavy Linux user that's starting to get into Mac OS X recently. In Linux, I use a command similar to this to mount my remote Samba / Windows shares:

    mount -t cifs //dlinknas01/Volume_1 /home/rrpalma/dlinknas01 -o username=myUserID,password=myPasswd

    Can I do the same in Mac OS?
     
  2. MisterMe macrumors G4

    MisterMe

    Joined:
    Jul 17, 2002
    Location:
    USA
    #2
    Sure. Why not?
     
  3. rrpalma thread starter macrumors member

    Joined:
    Sep 21, 2008
    #3
    well, it doesn't work. apparently, Mac OS X doesn't recognize either smb or cifs as valid file system types.:confused:
     
  4. seepel macrumors 6502

    seepel

    Joined:
    Dec 22, 2009
    #4
    Code:
    $ mount_smbfs --help
    mount_smbfs: illegal option -- -
    usage: mount_smbfs [-Nh] [-d mode] [-f mode]
                       //[domain;][user[:password]@]server[/share] path
    
    How does this sound to you?

    Another option would be to install avahi-daemon and advertise the samba share over zerconf. I like to this, then the shares just show up in the finder side bar.

    Hope it helps.
     
  5. toolbox macrumors 68020

    toolbox

    Joined:
    Oct 6, 2007
    Location:
    Australia (WA)
    #5
    This is a nas right? You should have the option to turn on smb or AFP which means the mac will see the nas in the finder and let you mount it that way without terminal commands
     
  6. rrpalma thread starter macrumors member

    Joined:
    Sep 21, 2008
    #6
    Thanks!! Sounds like a good idea. I'll give it a try.
     
  7. mmulin macrumors 6502

    Joined:
    Jun 22, 2006
    #7
    mount -t smbfs //username:password@smbserver/directory localdir

    As mentioned above, if you need just GUI access, you can find Windows shares in the sidebar of the Finder or connect directly to a server by pressing command-K (Go -> Connect to server.. menu) in Finder and enter the address smb://smbserver. You will be prompted for un/pw.
     

Share This Page