Issue Mounting NAS

8,505

Solution 1

Solution: sudo mount -t cifs //10.0.0.210/data -o username=xxxx,password=xxxx,rw,nounix,iocharset=utf8,file_mode=0644,dir_mode=0755 /mnt/nas

Solution 2

I'd try issuing the command eliding options one by one, this way finding which one is incorrect; that would be a step forward in finding out the actual problem.

Share:
8,505

Related videos on Youtube

Andrew Rhyne
Author by

Andrew Rhyne

Software Developer at HealthTrust Software in Nacogdoches, TX. We provide high quality CRM SaaS to the medical industry, geared towards at home health and compliance.

Updated on September 18, 2022

Comments

  • Andrew Rhyne
    Andrew Rhyne over 1 year

    I am trying to mount a NAS on one of my servers:

    htadmin@testing:~$ showmount -e 10.0.0.210
    Export list for 10.0.0.210:
    /humanresources         
    /Web                    
    /Usb                    
    /Recordings             
    /Public                 
    /Network Recycle Bin 1  
    /Multimedia             
    /Download               
    /Data
    

    Now I try to mount it:

    sudo mount -o soft,intr,user_name=administrator,password=xxxxxxxx \
    ,rsize=8192,wsize=8192 10.0.0.210:/Data /mnt/nas
    

    And I am presented with the following error message:

    mount.nfs: an incorrect mount option was specified
    

    Any help here would be great. Thanks!

    • Bill McCracken
      Bill McCracken about 11 years
      Try without the user_name and password options. I don't think that's how NFS authentication works
    • daniel kullmann
      daniel kullmann about 11 years
      Try adding the filesystem type to the command line: -t nfs. nfs is not supported by the normal mount command.
    • daniel kullmann
      daniel kullmann about 11 years
      I don't think NFS supports giving a username/password. The access control is done on the server, which specifies which IP addresses to allow mounting an exported directory
    • Rodrigo Martins de Oliveira
      Rodrigo Martins de Oliveira about 11 years
      Did you created /mnt/nas directory? all the directories you will be using you need to create before, like: sudo mkdir /mnt/nas
    • Christoph
      Christoph about 11 years
      could also be a problem with NFS version - ubuntu default is NFSv4 as far as I know, and some NASes (Synology, looking at you!) only support NFS3. I remember having problems with that, and falling back to samba as a consequence.