element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum NAS mount on RPi
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 7 replies
  • Answers 2 answers
  • Subscribers 664 subscribers
  • Views 6435 views
  • Users 0 members are here
  • nas
  • nas mount
  • raspberry_pi
  • rpi
  • mount
Related

NAS mount on RPi

wolfgangfriedrich
wolfgangfriedrich over 5 years ago

Hello community,

 

I am having an impossible time trying to permanently connect my NAS to the RPi.

 

The RPi can see and connect to the NAS through the 'FileManager' menu Go>Network,like this:

image

 

Trying to use 'sudo mount' or adding an entry to the /etc/fstab file does not work for me.

Examples:

 

pi@raspberrypi:~ $ sudo mount //192.168.2.21/ls-wsgl5ab/Daten /home/pi/Daten/ -o user=Wolfgang,password=xxxxxx
mount error(112): Host is down

 

Entry in fstab:

//192.168.2.21/LS-WSGL5AB/Daten /mnt/RPiNAS cifsusername=Wolfgang,password=xxxxx   0  0

 

I have looked at a lot of forums and pages, they all say that it should work that way.

So I am guessing that I am missing something else.

 

What I don't understand, that one part does see the NAS, the other just does not want to cooperate. Welcome to Linux, I know.image

Did anybody have similar issues or a solution?

 

For crying out load.

Thanks,

- Wolfgang.

  • Sign in to reply
  • Cancel
  • shabaz
    0 shabaz over 5 years ago

    Hi Wolfgang,

     

    I don't know the answer, but I know how you can move the scenario to something which may have more success:

    Set up your NAS for NFS file share instead. There should be an option somewhere to configure shared folders, and you can then select NFS.

    image

     

    Then, you can type (as root user) something like:

     

    mkdir /mnt/share
    mount -t nfs ipaddr_of_nas:/volume/share /mnt/share -v

     

    where /volume/share can be replaced by the name configured or supplied by the NAS. The '-v' will help you troubleshoot if this doesn't function.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • wolfgangfriedrich
    0 wolfgangfriedrich over 5 years ago in reply to shabaz

    Hello shabaz,

     

    This is a very good lead.

    My NAS is an older model (still using IDE drives image) and it seems like it does not support NFS file share. Here are the setup options. I might be SOL for this one.

    Here is the answer to the mount command:

     

    pi@raspberrypi:~ $ sudo mount -t nfs 192.168.2.21:/LS-WSGL5AB/Daten /mnt/RPiNAS -v 
    mount.nfs: timeout set for Sun Jun  7 21:48:49 2020
    mount.nfs: trying text-based options 'vers=4.2,addr=192.168.2.21,clientaddr=192.168.2.24'
    mount.nfs: mount(2): Invalid argument
    mount.nfs: trying text-based options 'vers=4.1,addr=192.168.2.21,clientaddr=192.168.2.24'
    mount.nfs: mount(2): Connection refused
    mount.nfs: trying text-based options 'addr=192.168.2.21'
    mount.nfs: prog 100003, trying vers=3, prot=6
    mount.nfs: portmap query retrying: RPC: Unable to receive
    mount.nfs: prog 100003, trying vers=3, prot=17
    mount.nfs: portmap query failed: RPC: Unable to receive - Connection refused

     

     

    I'll keep digging.

    Thanks,

    - W.

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • shabaz
    0 shabaz over 5 years ago in reply to wolfgangfriedrich

    Hi Wolfgang,

     

    It may be worth trying your original mount command in your first post, but with -t cifs (as well as the -v) because the 'Host is down' error could be a symptom of an attempt to DNS-resolve the string of IP address and path. Maybe explicitly indicating cifs may solve it. I'm only guessing though, I have not done this.

    It is unfortunate there is no NFS setting in the NAS, it is a 1980's method. Maybe the developers considered NFS too old.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • Problemchild
    0 Problemchild over 5 years ago in reply to shabaz

    Something like below like Shabaz intimates  force the FStype with -t option afterall your Linux system isnt a mind reader and will assume NFS otherwise, make sure you have the SAMBA and Exfat stuff loaded in aswell

     

     

     

    mount -t cifs //10.10.1.100/share -o username=myUser,password=myPassword /mnt/win1

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • Problemchild
    0 Problemchild over 5 years ago in reply to shabaz

    Shabaz most toy NASs wont even think of NFS as really it's not their market share NFSv4 is thoroughly modern other wise you could call CIFS 80-90's . Since this is mostly directed to Windows Clients no reason to support NFS it might scare  people ;-)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • wolfgangfriedrich
    0 wolfgangfriedrich over 5 years ago in reply to Problemchild

    To close the loop: the -t cifs option did not work either. Still getting the

    mount error(112): Host is down

     

    I am almost ready to give up.

    - W.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • wolfgangfriedrich
    0 wolfgangfriedrich over 5 years ago in reply to wolfgangfriedrich

    shabaz @John_Alexander

    Sometimes giving up brings the solution:

    sudo mount -t cifs //192.168.2.21/Daten /mnt/RPiNAS -o username=Wolfgang,password=*********,vers=1.0

     

    I This command worked and the issue was from the beginning that I referenced my NAS as //192.168.2.21/LS-WSGL5AB/Daten, when the correct form was //192.168.2.21/Daten .

    Who knew...

    I am sure the -t cifs option also helped, not sure if I want to play around with it.

     

    Now I just have to enter this into the fstab and everything is perfect. Famous last words....

     

    Cheers,

    - W.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube