3

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?

mcfan
  • 151
  • 1
  • 5

1 Answers1

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
mcfan
  • 151
  • 1
  • 5