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

    Sep 21, 2008

    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


    Jul 17, 2002
    Sure. Why not?
  3. rrpalma thread starter macrumors member

    Sep 21, 2008
    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


    Dec 22, 2009
    $ 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


    Oct 6, 2007
    Australia (WA)
    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

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

    Jun 22, 2006
    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