2

I have a USB HDD formatted in NTFS connected to my router, all my PC(Windows,Os X,Linux) can use it, also Raspberry works on it using the file manager.This is the situation

enter image description here

I try to mount the folder torrent by raspberry's terminal using

sudo mount -t ntfs-3g //192.168.0.1/torrent /home/NAS -o username=***,password=***,workgroup=WORKGROUP,file_mode=0777,dir_mode=0777,uid=pi,gid=pi,forceuid,forcegid 0 0

but its outcome is

enter image description here

I try also with cifs instead of ntsf

sudo mount -t cifs //192.168.0.1/torrent /home/NAS -o username=***,password=***,workgroup=WORKGROUP,file_mode=0777,dir_mode=0777,uid=pi,gid=pi,forceuid,forcegid 0 0

But also this time it fails, the result is

enter image description here

I am not able to find the mistake. Someone can help me?

  • Is the pi running Raspbian? That may be part of your problem. – AwesomeUser Jan 5 '14 at 2:18
  • Yes! Raspbian is my os, since I'm new on raspberry and reading some forums, they said that Raspbian is the most user friendly OS. I need to use the Raspberry as cloud server and media center. Which os you recommend me? – mcfan Jan 5 '14 at 13:39
  • I'm trying to solve the problem, in a forum I have found the hint of updating the firmware of pi using the command sudo rpi - update but also this doesn't work. I haven't more ideas! I'm waiting your help! – mcfan Jan 6 '14 at 1:12
2

Eventually I have solved my problem with two steps:

  1. updating my pi's firmware by

    sudo rpi-update
    sudo reboot
    
  2. putting sec=ntlm in the options of call to mount

So the final command that I use is:

sudo mount -t cifs //192.168.0.1/torrent /home/NAS -o uid=1000,iocharset=utf8,username="YOURUSERNAME",password="YOURPASSWORD",sec=ntlm

To use the /etc/fstab to mount automatically at every reboot the correct line is

//192.168.0.1/torrent /home/NAS cifs iocharset=utf8,username= YOURUSERNAME,password= YOURPASSWORD,sec=ntlm 0 0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.